Skip to content

Commit 1adb48b

Browse files
Kane610c727
authored andcommitted
Update deconz.markdown (home-assistant#4494)
* Update deconz.markdown Added description and example of new service data attribute * Update deconz.markdown
1 parent ebc2094 commit 1adb48b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/_components/deconz.markdown

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,15 @@ Set attribute of device in Deconz using [Rest API](http://dresden-elektronik.git
7575
| Service data attribute | Optional | Description |
7676
|-----------|----------|-------------|
7777
| `field` | No | String representing a specific device in deCONZ. |
78+
| `entity` | No | String representing a specific HASS entity of a device in deCONZ. |
7879
| `data` | No | Data is a JSON object with what data you want to alter. |
7980

81+
Field and entity are exclusive, i.e you can only use one in a request.
82+
8083
{ "field": "/lights/1", "data": {"name": "light2"} }
8184

85+
{ "entity": "light.light1", "data": {"name": "light2"} }
86+
8287
{ "field": "/config", "data": {"permitjoin": 60} }
8388

8489
## {% linkable_title Remote control devices%}

0 commit comments

Comments
 (0)