Skip to main content

Home Assistant controls for DevDeck.

Project description

DevDeck - Home Assistant

CI

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

devdeck_home_assistant-1.0.1.tar.gz (3.4 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page