From 089d89798c4248d7810527babb604a402e1fcf18 Mon Sep 17 00:00:00 2001 From: Leonardo Brondani Schenkel Date: Fri, 26 Oct 2018 10:24:33 +0200 Subject: [PATCH] Attributes 'entity' and 'field' can both be used (#7078) --- source/_components/deconz.markdown | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/_components/deconz.markdown b/source/_components/deconz.markdown index db8927e9a4e..ab6c32740f1 100644 --- a/source/_components/deconz.markdown +++ b/source/_components/deconz.markdown @@ -59,12 +59,14 @@ Set attribute of device in deCONZ using [Rest API](http://dresden-elektronik.git | `entity` | No | String representing a specific Home Assistant 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. +Either `entity` or `field` must be provided. If both are present, `field` will be interpreted as a subpath under the device path corresponding to the specified `entity`: { "field": "/lights/1", "data": {"name": "light2"} } { "entity": "light.light1", "data": {"name": "light2"} } +{ "entity": "light.light1", "field: "/state", "data": {"on": true} } + { "field": "/config", "data": {"permitjoin": 60} } #### {% linkable_title Service `deconz.refresh_devices` %}