Skip to content

Commit e7efa68

Browse files
committed
Add logo, update configuration sample, and update conf variables
1 parent f8ce204 commit e7efa68

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

source/_components/light.decora.markdown

+10-7
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,28 @@ sharing: true
99
footer: true
1010
ha_category: Light
1111
ha_iot_class: "Local Polling"
12-
featured: false
12+
logo: leviton.png
1313
ha_release: 0.37
1414
---
1515

16-
Support for the Decora Bluetooth dimmer switch [Leviton](http://www.leviton.com/OA_HTML/SectionDisplay.jsp?section=76697&minisite=10251). To enable these lights, add the following lines to your `configuration.yaml` file:
16+
Support for the Decora Bluetooth dimmer switch [Leviton](http://www.leviton.com/OA_HTML/SectionDisplay.jsp?section=76697&minisite=10251).
17+
18+
The API key can be obtained by downloading [this git repository](https://github.com/mjg59/python-decora) and running the `read_key.py` script with the Bluetooth address of the switch as the first argument. Hold the switch in the off position until the green status LED starts flashing before running the script. The output is the API key.
19+
20+
To enable these lights, add the following lines to your `configuration.yaml` file:
1721

1822
```yaml
1923
# Example configuration.yaml entry
2024
light:
2125
- platform: decora
2226
devices:
2327
00:21:4D:00:00:01:
24-
name: Light 1
2528
api_key: 0x12345678
26-
00:21:3D:20:00:a1:
27-
name: Bulb 2
28-
api_key: 0x54321876
2929
```
3030
3131
Configuration variables:
3232
33-
- **devices**: A list of devices with their bluetooth address, a custom name to use in the frontend and the API key. The API key can be obtained by downloading [this git repository](https://github.com/mjg59/python-decora) and running the read_key.py script with the Bluetooth address of the switch as the first argument. Hold the switch in the off position until the green status LED starts flashing before running the script. The output is the API key.
33+
- **devices** array (*Required*): A list of lights to use.
34+
- **[mac address]** (*Required*): The bluetooth address of the switch.
35+
- **name** (*Optional*): The custom name to use in the frontend.
36+
- **api_key** (*Required*): The API key to acces the device.
91.7 KB
Loading

0 commit comments

Comments
 (0)