Home Assistant controls for DevDeck.
Project description
DevDeck - Home Assistant
Home Assistant controls for DevDeck.
Installing
Simplify install DevDeck - Home Assistant into the same python environment that you have installed DevDeck.
pip install devdeck-home-assistant
You can then update your DevDeck configuration to use decks and controls from this package.
Controls
-
SwitchToggleControl
Can be used to toggle the state of a switch entity
-
LightToggleControl
Can be used to toggle the state of a light entity
Configuration
Example configuration:
decks:
- serial_number: "ABC123"
name: 'devdeck.decks.single_page_deck_controller.SinglePageDeckController'
settings:
controls:
- name: 'devdeck_home_assistant.light_toggle_control.LightToggleControl'
key: 0
settings:
api_key: 'YOUR_API_KEY_GOES_HERE'
entity_id: 'light.your_light_entity_id'
url: 'htts://homeassistant:8123'
- name: 'devdeck_home_assistant.switch_toggle_control.SwitchToggleControl'
key: 1
settings:
api_key: 'YOUR_API_KEY_GOES_HERE'
entity_id: 'switch.your_switch_entity_id'
url: 'htts://homeassistant:8123'
Prerequisites
You must have the API enabled by having an api
entry in your home assistant configuration:
api:
See the Home Assistant API docs for more details.
You will also need a Long-Lived Access Token which can be generated from the profile page (/profile
).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for devdeck_home_assistant-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b4d523c4972b0aebca40fcf8c35e239f482b867b2d6e2fca1669181c5c3b074 |
|
MD5 | f8172021d0aaad6f4871ec5454661ab6 |
|
BLAKE2b-256 | 93997d7885b2df747a7b76b085a61944b641cc461a231128c92c92264d02d1d8 |
Hashes for devdeck_home_assistant-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fc94455c9a7dac5dcc0373ce4099af71a5ff6fd4bed3a9a2ba07a7d4779285f |
|
MD5 | 6e2c8a36ffef047b1a276921910fdf10 |
|
BLAKE2b-256 | 0b2b871b90150ee4058f9bb0585ca8b7a9aa69271cca12d08429fb4058ef2064 |