{"id":14985301,"url":"https://github.com/jamesridgway/devdeck-home-assistant","last_synced_at":"2025-04-10T23:51:03.841Z","repository":{"id":46411417,"uuid":"324814734","full_name":"jamesridgway/devdeck-home-assistant","owner":"jamesridgway","description":"Home Assistant controls for DevDeck.","archived":false,"fork":false,"pushed_at":"2023-04-22T08:19:34.000Z","size":68,"stargazers_count":15,"open_issues_count":2,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-09T23:23:29.276Z","etag":null,"topics":["devdeck","home-assistant"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamesridgway.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"jamesridgway"}},"created_at":"2020-12-27T17:36:16.000Z","updated_at":"2023-04-03T12:55:32.000Z","dependencies_parsed_at":"2024-09-25T00:30:44.163Z","dependency_job_id":null,"html_url":"https://github.com/jamesridgway/devdeck-home-assistant","commit_stats":{"total_commits":13,"total_committers":4,"mean_commits":3.25,"dds":0.3076923076923077,"last_synced_commit":"e7f658298d1ff5502a2d8dc2147116784d02540a"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesridgway%2Fdevdeck-home-assistant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesridgway%2Fdevdeck-home-assistant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesridgway%2Fdevdeck-home-assistant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesridgway%2Fdevdeck-home-assistant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamesridgway","download_url":"https://codeload.github.com/jamesridgway/devdeck-home-assistant/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248317707,"owners_count":21083528,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devdeck","home-assistant"],"created_at":"2024-09-24T14:10:40.739Z","updated_at":"2025-04-10T23:51:03.820Z","avatar_url":"https://github.com/jamesridgway.png","language":"Python","funding_links":["https://github.com/sponsors/jamesridgway"],"categories":[],"sub_categories":[],"readme":"# DevDeck - Home Assistant\n![CI](https://github.com/jamesridgway/devdeck-home-assistant/workflows/CI/badge.svg?branch=main)\n\nHome Assistant controls for [DevDeck](https://github.com/jamesridgway/devdeck).\n\n## Installing\nSimply install *DevDeck - Home Assistant* into the same python environment that you have installed DevDeck.\n\n    pip install devdeck-home-assistant\n\nYou can then update your DevDeck configuration to use decks and controls from this package.\n\n## Controls\n\n* `CallServiceControl`\n\n   Can be used to call any Home Assistant service\n\n* `SwitchToggleControl`\n\n   Can be used to toggle the state of a switch entity\n\n* `LightToggleControl`\n\n   Can be used to toggle the state of a light entity\n\n## Configuration\n\nExample configuration:\n\n    decks:\n      - serial_number: \"ABC123\"\n        name: 'devdeck.decks.single_page_deck_controller.SinglePageDeckController'\n        settings:\n          controls:\n            - name: 'devdeck_home_assistant.light_toggle_control.LightToggleControl'\n              key: 0\n              settings:\n                api_key: 'YOUR_API_KEY_GOES_HERE'\n                entity_id: 'light.your_light_entity_id'\n                url: 'htts://homeassistant:8123'\n            - name: 'devdeck_home_assistant.switch_toggle_control.SwitchToggleControl'\n              key: 1\n              settings:\n                api_key: 'YOUR_API_KEY_GOES_HERE'\n                entity_id: 'switch.your_switch_entity_id'\n                url: 'htts://homeassistant:8123'\n            - name: 'devdeck_home_assistant.call_service_control.CallServiceControl'\n              key: 2\n              settings:\n                api_key: 'YOUR_API_KEY_GOES_HERE'\n                url: 'htts://homeassistant:8123'\n                service: scene.turn_on\n                data:\n                  entity_id: scene.work_mode\n                emoji: ':laptop:'\n            - name: 'devdeck_home_assistant.call_service_control.CallServiceControl'\n              key: 3\n              settings:\n                api_key: 'YOUR_API_KEY_GOES_HERE'\n                url: 'htts://homeassistant:8123'\n                service: media_player.media_play_pause\n                data:\n                  entity_id: media_player.office_sonos\n                state_entity: media_player.office_sonos\n                state_map:\n                  playing:\n                    emoji: ':pause_button:'\n                  paused:\n                    emoji: ':play_button:'\n                  idle:\n                    emoji: ':watch:'\n            - name: 'devdeck_home_assistant.call_service_control.CallServiceControl'\n              key: 4\n              settings:\n                api_key: 'YOUR_API_KEY_GOES_HERE'\n                url: 'htts://homeassistant:8123'\n                service: script.noop\n                state_entity: media_player.office_sonos\n                state_map:\n                  _default:\n                    entity_image: media_player.office_sonos\n\n\n## Prerequisites\n\nYou must have the API enabled by having an `api` entry in your home assistant configuration:\n\n```\napi:\n\n```\n\nSee the [Home Assistant API docs](https://www.home-assistant.io/integrations/api/) for more details.\n\nYou will also need a **Long-Lived Access Token** which can be generated from the profile page (`/profile`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesridgway%2Fdevdeck-home-assistant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamesridgway%2Fdevdeck-home-assistant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesridgway%2Fdevdeck-home-assistant/lists"}