Skip to content

Commit 943b2e3

Browse files
Kane610MartinHjelmare
authored andcommitted
Add deCONZ component documentation (home-assistant#3967)
* Deconz hub documentation * Add binary sensor documentation * Add sensor documentation * Add light documentation * Improve description * Add information about HASS events from ZHASwitch buttonpresses * Added description about how entity id naming works * Added links to dresden elektronik, deconz and deconz rest api Added automation examples for a IKEA Trådfri dimmer and input number Added list of supported device types Added lists of verified to work devices Removed references to Axis component * Changed description of how to generate API key * Added information about configuration variables username and password * Updated lists of verified devices * Links from list of supported device to sub modules * Remove documentation for api_key_generation since functionality has been removed * Add documentation for configure service * Documentation for scenes * Bumped HASS release version to 0.59 * Added Xiaomi Aqara Smart Wireless Switch to list of verified to work devices * Added improved automation example by simonporter007 * Added information about deCONZ configurator * Fix raw code * Added more lights to supported list * Make description about entity id same in all types * Updated installation instructions * Added Dresden Elektroniks logo * Added Tseels verified to work devices * Bump ha_release string * Added information about groups Added additional verified lights * Link to information about switch not being an entity on main hub page * Improved information about switches not being normal entities * It should be api_key not api-key * Removed specifying deconz version * Bump version to 0.61 * Fix typos * Use configuration tags to describe configuration parameters * Fix martinhjelamares comments * Rename parameter service data attribute
1 parent da754f4 commit 943b2e3

File tree

6 files changed

+273
-0
lines changed

6 files changed

+273
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
layout: page
3+
title: "deCONZ Binary Sensor"
4+
description: "Instructions on how to integrate Zigbee binary sensors from deCONZ into Home Assistant."
5+
date: 2017-11-12 16:30
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
logo: deconz.jpeg
11+
ha_category: Binary Sensor
12+
ha_release: "0.61"
13+
ha_iot_class: "Local Push"
14+
---
15+
16+
See the [deCONZ main component](/components/deconz/) for configuration instructions.
17+
18+
The following sensor types are supported:
19+
20+
* Open/Close detection
21+
* Presence detection
22+
23+
Entity ids will be binary_sensor.device_name, where device_name is defined in deCONZ.
24+
25+
#### {% linkable_title Verified to be supported binary sensors %}
26+
27+
- Open/Close Detection
28+
- Xiaomi Smart Home Security Door & Window Contact Sensor
29+
- Presence Detection
30+
- IKEA Trådfri Motion Sensor
31+
- Philips Hue Motion Sensor
32+
- Xiaomi Motion Sensor
33+
- Xiaomi Smart Home Aqara Human Body Sensor

source/_components/deconz.markdown

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
---
2+
layout: page
3+
title: "deCONZ"
4+
description: "Instructions on how to setup Conbee/Raspbee devices with deCONZ from Dresden Elektronik within Home Assistant."
5+
date: 2017-11-12 16:30
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
logo: deconz.jpeg
11+
ha_category: Hub
12+
ha_release: "0.61"
13+
ha_iot_class: "Local Push"
14+
---
15+
16+
[deCONZ](https://www.dresden-elektronik.de/funktechnik/products/software/pc/deconz/) by [Dresden Elektronik](https://www.dresden-elektronik.de) is a software that communicates with Conbee/Raspbee Zigbee gateways and exposes Zigbee devices that are connected to the gateway.
17+
18+
[deCONZ REST API](http://dresden-elektronik.github.io/deconz-rest-doc/).
19+
20+
Home Assistant will automatically discover deCONZ presence on your network, if `discovery:` is present in your `configuration.yaml` file.
21+
22+
If you don't have the API key, you can generate an API key for deCONZ by using the one-click functionality similar to Philips Hue. Go to Menu->Settings->Unlock Gateway in deCONZ and then use the deCONZ configurator in Home Assistant GUI to create an API key. When you've generated the API key from Home Assistant, the API key will be stored in deconz.conf inside the home-assistant folder.
23+
24+
You can add the following to your configuration.yaml file if you are not using the `discovery:` component:
25+
26+
```yaml
27+
# Example configuration.yaml entry
28+
deconz:
29+
host: IP ADDRESS
30+
```
31+
32+
#### {% linkable_title Supported Device types %}
33+
34+
- [Zigbee Lights](/components/light/deconz/)
35+
- [Humidity Sensors](/components/sensor/deconz/)
36+
- [Light Level Sensors](/components/sensor/deconz/)
37+
- [OpenClose Detectors](/components/binary_sensor/deconz/)
38+
- [Presence Detectors](/components/binary_sensor/deconz/)
39+
- [Pressure Sensors](/components/sensor/deconz/)
40+
- [Switches (Remote Controls)](/components/sensor/deconz/)
41+
- [Temperature Sensors](/components/sensor/deconz/)
42+
43+
{% configuration %}
44+
host:
45+
description: The IP address of your deCONZ web server.
46+
required: false
47+
type: string
48+
api_key:
49+
description: The API key to access your deCONZ web server.
50+
required: false
51+
type: string
52+
port:
53+
description: Configure port deCONZ web server is accessible from.
54+
required: false
55+
default: 80
56+
type: int
57+
{% endconfiguration %}
58+
59+
A full configuration could look like this:
60+
61+
```yaml
62+
# Example configuration.yaml entry
63+
deconz:
64+
host: 127.0.0.1
65+
api_key: 0123456789
66+
port: 80
67+
```
68+
69+
## {% linkable_title Device services %}
70+
Available services: `configure`.
71+
72+
#### {% linkable_title Service `deconz/configure` %}
73+
Set attribute of device in Deconz using [Rest API](http://dresden-elektronik.github.io/deconz-rest-doc/rest/).
74+
75+
| Service data attribute | Optional | Description |
76+
|-----------|----------|-------------|
77+
| `field` | No | String representing a specific device in deCONZ. |
78+
| `data` | No | Data is a JSON object with what data you want to alter. |
79+
80+
{ "field": "/lights/1", "data": {"name": "light2"} }
81+
82+
{ "field": "/config", "data": {"permitjoin": 60} }
83+
84+
## {% linkable_title Remote control devices%}
85+
86+
Remote controls (ZHASwitch category) will be not be exposed as a regular entity, but as events named 'deconz_event' with a payload of 'id' and 'event'. Id will be the device name from deCONZ and Event will be the momentary state of the switch. However, a sensor entity will be created that shows the battery level of the switch as reported by deCONZ, named sensor.device_name_battery_level.
87+
88+
Typical values for switches, the event codes are 4 numbers where the first and last number are of interest here.
89+
90+
| Switch code | Description |
91+
|-------------|-------------|
92+
| 1XXX | Button #1 up to #8 |
93+
| XXX1 | Button hold |
94+
| XXX2 | Button short release |
95+
| XXX3 | Button long release |
96+
97+
Where for example on a Philips Hue Dimmer, 2001 would be holding the dim up button.
98+
99+
## {% linkable_title Examples %}
100+
101+
### {% linkable_title Step up and step down input number with wireless dimmer %}
102+
103+
```yaml
104+
automation:
105+
- alias: 'Toggle lamp from dimmer'
106+
initial_state: 'on'
107+
trigger:
108+
platform: event
109+
event_type: deconz_event
110+
event_data:
111+
id: remote_control_1
112+
event: 1002
113+
action:
114+
service: light.toggle
115+
entity_id: light.lamp
116+
117+
- alias: 'Increase brightness of lamp from dimmer'
118+
initial_state: 'on'
119+
trigger:
120+
platform: event
121+
event_type: deconz_event
122+
event_data:
123+
id: remote_control_1
124+
event: 2002
125+
action:
126+
- service: light.turn_on
127+
data_template:
128+
entity_id: light.lamp
129+
brightness: {% raw %}>
130+
{% set bri = states.light.lamp.attributes.brightness | int %}
131+
{{ [bri+30, 249] | min }}{% endraw %}
132+
133+
- alias: 'Decrease brightness of lamp from dimmer'
134+
initial_state: 'on'
135+
trigger:
136+
platform: event
137+
event_type: deconz_event
138+
event_data:
139+
id: remote_control_1
140+
event: 3002
141+
action:
142+
- service: light.turn_on
143+
data_template:
144+
entity_id: light.lamp
145+
brightness: {% raw %}>
146+
{% set bri = states.light.lamp.attributes.brightness | int %}
147+
{{ [bri-30, 0] | max }}{% endraw %}
148+
```
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
layout: page
3+
title: "deCONZ lights"
4+
description: "Instructions on how to integrate Zigbee lights from deCONZ into Home Assistant."
5+
date: 2017-11-12 16:30
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
logo: deconz.jpeg
11+
ha_category: Light
12+
ha_release: "0.61"
13+
ha_iot_class: "Local Push"
14+
---
15+
16+
See the [deCONZ main component](/components/deconz/) for configuration instructions.
17+
18+
Entity Ids names will be light.device_name, where device_name is defined in deCONZ. Light groups created in deCONZ will be created in Home Assistant as lights named light.group_name_in_deconz, allowing the user to control groups of lights with only a single API call to deCONZ.
19+
20+
#### {% linkable_title Verified to be supported sensors %}
21+
22+
- IKEA Trådfri bulb E14 WS opal 400lm
23+
- IKEA Trådfri Bulb E27 WS Opal 980lm
24+
- IKEA Trådfri Bulb E27 WS Opal 1000lm
25+
- IKEA Trådfri Bulb GU10 W 400lm
26+
- OSRAM Flex RGBW
27+
- OSRAM Gardenpole RGBW
28+
- Philips Hue White A19
29+
- Philips Hue White Ambiance A19
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
layout: page
3+
title: "deCONZ scenes"
4+
description: "Instructions on how to integrate deCONZ scenes into Home Assistant."
5+
date: 2017-11-19 20:00
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
logo: deconz.jpeg
11+
ha_category: Scene
12+
ha_release: "0.61"
13+
ha_iot_class: "Local Push"
14+
---
15+
16+
See the [deCONZ main component](/components/deconz/) for configuration instructions.
17+
18+
Entity Ids will be scene.group_scene_name, where group is which group the scene belongs to and the name of the scene, both group and name are defined in deCONZ.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
layout: page
3+
title: deCONZ Sensor
4+
description: "Instructions on how to integrate Zigbee sensors from deCONZ into Home Assistant."
5+
date: 2017-11-12 16:30
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
logo: deconz.jpeg
11+
ha_category: Sensor
12+
ha_release: "0.61"
13+
ha_iot_class: "Local Push"
14+
---
15+
16+
See the [deCONZ main component](/components/deconz/) for configuration instructions.
17+
18+
The following sensor types are supported:
19+
20+
* Humidity sensor
21+
* Light level sensor
22+
* Pressure sensor
23+
* Switches
24+
* Temperature sensor
25+
26+
Entity ids will be sensor.device_name, where device_name is defined in deCONZ. Switches aren't exposed as ordinary entities, see the [deCONZ main component](/components/deconz/) for more details.
27+
28+
#### {% linkable_title Verified to be supported sensors %}
29+
30+
- Humidity Sensor
31+
- Xiaomi Aqara Humidity/Temperature Sensor
32+
- Xiaomi MiJia Smart Temperature & Humidity Sensor
33+
- Light Level Sensor
34+
- Pressure Sensor
35+
- Switches
36+
- IKEA Trådfri Wireless Dimmer
37+
- Philips Hue Motion Sensor
38+
- IKEA Trådfri Remote
39+
- Philips Hue Dimmer Switch
40+
- Xiaomi Cube
41+
- Xiaomi Aqara Smart Light Switch
42+
- Xiaomi Aqara Smart Wireless Switch
43+
- Xiaomi Smart Home Wireless Switch
44+
- Temperature Sensor
45+
- Xiaomi Temperature/Humidity Sensor
11.9 KB
Loading

0 commit comments

Comments
 (0)