Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Leviton Decora configuration to new style #6810

Merged
merged 2 commits into from
Oct 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions source/_components/light.decora.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,25 @@ light:
api_key: 0x12345678
```

Configuration variables:

- **devices** array (*Required*): A list of lights to use.
- **[mac address]** (*Required*): The bluetooth address of the switch.
- **name** (*Optional*): The custom name to use in the frontend.
- **api_key** (*Required*): The API key to access the device.
{% configuration %}
devices:
description: A list of lights to use.
required: true
type: map
keys:
mac_address:
required: true
description: The bluetooth address of the switch.
type: string
name:
description: The name to use in the frontend.
required: false
type: string
api_key:
description: The API key to access the device.
required: true
type: string
{% endconfiguration %}

<p class='note'>
If you get an error looking like this:
Expand Down