From 8707317bc37d9ba2a4c7e381dadab079d9772159 Mon Sep 17 00:00:00 2001 From: Kane610 Date: Mon, 22 Jan 2018 22:36:49 +0100 Subject: [PATCH 1/2] Update deconz.markdown Added description and example of new service data attribute --- source/_components/deconz.markdown | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/_components/deconz.markdown b/source/_components/deconz.markdown index 6b65b0866499..35b3398a0481 100644 --- a/source/_components/deconz.markdown +++ b/source/_components/deconz.markdown @@ -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%} From c925ad03c3741bd5591820032452f9711dd40eb6 Mon Sep 17 00:00:00 2001 From: Kane610 Date: Mon, 22 Jan 2018 22:39:09 +0100 Subject: [PATCH 2/2] Update deconz.markdown --- source/_components/deconz.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_components/deconz.markdown b/source/_components/deconz.markdown index 35b3398a0481..8f9c85f58e2d 100644 --- a/source/_components/deconz.markdown +++ b/source/_components/deconz.markdown @@ -82,7 +82,7 @@ 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"}} +{ "entity": "light.light1", "data": {"name": "light2"} } { "field": "/config", "data": {"permitjoin": 60} }