mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
parent
a1e51cc46b
commit
41a1a06af1
@ -17,19 +17,7 @@ ha_iot_class: "Local Push"
|
|||||||
|
|
||||||
[deCONZ REST API](http://dresden-elektronik.github.io/deconz-rest-doc/).
|
[deCONZ REST API](http://dresden-elektronik.github.io/deconz-rest-doc/).
|
||||||
|
|
||||||
Home Assistant will automatically discover deCONZ presence on your network, if `discovery:` is present in your `configuration.yaml` file.
|
### {% linkable_title Supported device types %}
|
||||||
|
|
||||||
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.
|
|
||||||
|
|
||||||
You can add the following to your configuration.yaml file if you are not using the `discovery:` component:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
# Example configuration.yaml entry
|
|
||||||
deconz:
|
|
||||||
host: IP ADDRESS
|
|
||||||
```
|
|
||||||
|
|
||||||
#### {% linkable_title Supported Device types %}
|
|
||||||
|
|
||||||
- [Zigbee Lights](/components/light.deconz/)
|
- [Zigbee Lights](/components/light.deconz/)
|
||||||
- [Humidity Sensors](/components/sensor.deconz/)
|
- [Humidity Sensors](/components/sensor.deconz/)
|
||||||
@ -40,6 +28,20 @@ deconz:
|
|||||||
- [Switches (Remote Controls)](/components/sensor.deconz/)
|
- [Switches (Remote Controls)](/components/sensor.deconz/)
|
||||||
- [Temperature Sensors](/components/sensor.deconz/)
|
- [Temperature Sensors](/components/sensor.deconz/)
|
||||||
|
|
||||||
|
## {% linkable_title Configuration %}
|
||||||
|
|
||||||
|
Home Assistant will automatically discover deCONZ presence on your network, if `discovery:` is present in your `configuration.yaml` file.
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
You can add the following to your configuration.yaml file if you are not using the `discovery:` component:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Example configuration.yaml entry
|
||||||
|
deconz:
|
||||||
|
host: IP_ADDRESS
|
||||||
|
```
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
host:
|
host:
|
||||||
description: The IP address of your deCONZ web server.
|
description: The IP address of your deCONZ web server.
|
||||||
@ -66,10 +68,24 @@ deconz:
|
|||||||
port: 80
|
port: 80
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## {% linkable_title Debugging component %}
|
||||||
|
|
||||||
|
If you have problems with deCONZ or the component you can add debug prints to the log.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
logger:
|
||||||
|
default: info
|
||||||
|
logs:
|
||||||
|
pydeconz: debug
|
||||||
|
homeassistant.components.deconz: debug
|
||||||
|
```
|
||||||
|
|
||||||
## {% linkable_title Device services %}
|
## {% linkable_title Device services %}
|
||||||
|
|
||||||
Available services: `configure`.
|
Available services: `configure`.
|
||||||
|
|
||||||
#### {% linkable_title Service `deconz/configure` %}
|
#### {% linkable_title Service `deconz.configure` %}
|
||||||
|
|
||||||
Set attribute of device in Deconz using [Rest API](http://dresden-elektronik.github.io/deconz-rest-doc/rest/).
|
Set attribute of device in Deconz using [Rest API](http://dresden-elektronik.github.io/deconz-rest-doc/rest/).
|
||||||
|
|
||||||
| Service data attribute | Optional | Description |
|
| Service data attribute | Optional | Description |
|
||||||
@ -107,6 +123,7 @@ For the IKEA Tradfri remote, 1 is the middle button, 2 is up, 3 is down, 4 is le
|
|||||||
|
|
||||||
### {% linkable_title Step up and step down input number with wireless dimmer %}
|
### {% linkable_title Step up and step down input number with wireless dimmer %}
|
||||||
|
|
||||||
|
{% raw %}
|
||||||
```yaml
|
```yaml
|
||||||
automation:
|
automation:
|
||||||
- alias: 'Toggle lamp from dimmer'
|
- alias: 'Toggle lamp from dimmer'
|
||||||
@ -133,9 +150,9 @@ automation:
|
|||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
data_template:
|
data_template:
|
||||||
entity_id: light.lamp
|
entity_id: light.lamp
|
||||||
brightness: {% raw %}>
|
brightness: >
|
||||||
{% set bri = states.light.lamp.attributes.brightness | int %}
|
{% set bri = states.light.lamp.attributes.brightness | int %}
|
||||||
{{ [bri+30, 249] | min }}{% endraw %}
|
{{ [bri+30, 249] | min }}
|
||||||
|
|
||||||
- alias: 'Decrease brightness of lamp from dimmer'
|
- alias: 'Decrease brightness of lamp from dimmer'
|
||||||
initial_state: 'on'
|
initial_state: 'on'
|
||||||
@ -149,7 +166,8 @@ automation:
|
|||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
data_template:
|
data_template:
|
||||||
entity_id: light.lamp
|
entity_id: light.lamp
|
||||||
brightness: {% raw %}>
|
brightness: >
|
||||||
{% set bri = states.light.lamp.attributes.brightness | int %}
|
{% set bri = states.light.lamp.attributes.brightness | int %}
|
||||||
{{ [bri-30, 0] | max }}{% endraw %}
|
{{ [bri-30, 0] | max }}
|
||||||
```
|
```
|
||||||
|
{% endraw %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user