Update deconz.markdown (#4494)

* Update deconz.markdown

Added description and example of new service data attribute

* Update deconz.markdown
This commit is contained in:
Kane610 2018-02-21 16:09:26 +01:00 committed by c727
parent ebc2094347
commit 1adb48b0a4

View File

@ -75,10 +75,15 @@ Set attribute of device in Deconz using [Rest API](http://dresden-elektronik.git
| Service data attribute | Optional | Description |
|-----------|----------|-------------|
| `field` | No | String representing a specific device in deCONZ. |
| `entity` | No | String representing a specific HASS entity of a device in deCONZ. |
| `data` | No | Data is a JSON object with what data you want to alter. |
Field and entity are exclusive, i.e you can only use one in a request.
{ "field": "/lights/1", "data": {"name": "light2"} }
{ "entity": "light.light1", "data": {"name": "light2"} }
{ "field": "/config", "data": {"permitjoin": 60} }
## {% linkable_title Remote control devices%}