You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Home Assistant will automatically discover deCONZ presence on your network, if `discovery:` is present in your `configuration.yaml` file.
34
+
35
+
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 frontend 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 `.homeassistant` folder.
36
+
37
+
You can add the following to your configuration.yaml file if you are not using the `discovery:` component:
38
+
39
+
```yaml
40
+
# Example configuration.yaml entry
41
+
deconz:
42
+
host: IP_ADDRESS
43
+
```
44
+
43
45
{% configuration %}
44
46
host:
45
47
description: The IP address of your deCONZ web server.
@@ -66,10 +68,24 @@ deconz:
66
68
port: 80
67
69
```
68
70
71
+
## {% linkable_title Debugging component %}
72
+
73
+
If you have problems with deCONZ or the component you can add debug prints to the log.
74
+
75
+
```yaml
76
+
logger:
77
+
default: info
78
+
logs:
79
+
pydeconz: debug
80
+
homeassistant.components.deconz: debug
81
+
```
82
+
69
83
## {% linkable_title Device services %}
84
+
70
85
Available services: `configure`.
71
86
72
-
#### {% linkable_title Service `deconz/configure` %}
87
+
#### {% linkable_title Service `deconz.configure` %}
88
+
73
89
Set attribute of device in Deconz using [Rest API](http://dresden-elektronik.github.io/deconz-rest-doc/rest/).
74
90
75
91
| Service data attribute | Optional | Description |
@@ -86,7 +102,7 @@ Field and entity are exclusive, i.e you can only use one in a request.
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.
92
108
@@ -107,6 +123,7 @@ For the IKEA Tradfri remote, 1 is the middle button, 2 is up, 3 is down, 4 is le
107
123
108
124
### {% linkable_title Step up and step down input number with wireless dimmer %}
109
125
126
+
{% raw %}
110
127
```yaml
111
128
automation:
112
129
- alias: 'Toggle lamp from dimmer'
@@ -133,9 +150,9 @@ automation:
133
150
- service: light.turn_on
134
151
data_template:
135
152
entity_id: light.lamp
136
-
brightness: {% raw %}>
153
+
brightness: >
137
154
{% set bri = states.light.lamp.attributes.brightness | int %}
138
-
{{ [bri+30, 249] | min }}{% endraw %}
155
+
{{ [bri+30, 249] | min }}
139
156
140
157
- alias: 'Decrease brightness of lamp from dimmer'
141
158
initial_state: 'on'
@@ -149,7 +166,8 @@ automation:
149
166
- service: light.turn_on
150
167
data_template:
151
168
entity_id: light.lamp
152
-
brightness: {% raw %}>
169
+
brightness: >
153
170
{% set bri = states.light.lamp.attributes.brightness | int %}
0 commit comments