Update deconz.markdown (#4494)
* Update deconz.markdown Added description and example of new service data attribute * Update deconz.markdown
This commit is contained in:
parent
ebc2094347
commit
1adb48b0a4
1 changed files with 5 additions and 0 deletions
|
@ -75,10 +75,15 @@ Set attribute of device in Deconz using [Rest API](http://dresden-elektronik.git
|
||||||
| Service data attribute | Optional | Description |
|
| Service data attribute | Optional | Description |
|
||||||
|-----------|----------|-------------|
|
|-----------|----------|-------------|
|
||||||
| `field` | No | String representing a specific device in deCONZ. |
|
| `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. |
|
| `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"} }
|
{ "field": "/lights/1", "data": {"name": "light2"} }
|
||||||
|
|
||||||
|
{ "entity": "light.light1", "data": {"name": "light2"} }
|
||||||
|
|
||||||
{ "field": "/config", "data": {"permitjoin": 60} }
|
{ "field": "/config", "data": {"permitjoin": 60} }
|
||||||
|
|
||||||
## {% linkable_title Remote control devices%}
|
## {% linkable_title Remote control devices%}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue