From 0b94e91aeb93458476533fe2af468735d8f1ab3b Mon Sep 17 00:00:00 2001 From: markharleman <50380925+markharleman@users.noreply.github.com> Date: Tue, 1 Oct 2019 12:56:01 +0200 Subject: [PATCH] Fixes code fencing in DeConz documentation (#10523) --- source/_components/deconz.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/_components/deconz.markdown b/source/_components/deconz.markdown index 6053523d910..b9911f6f776 100644 --- a/source/_components/deconz.markdown +++ b/source/_components/deconz.markdown @@ -79,13 +79,21 @@ Set attribute of device in deCONZ using [Rest API](http://dresden-elektronik.git 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`: +```json { "field": "/lights/1", "data": {"name": "light2"} } +``` +```json { "entity": "light.light1", "data": {"name": "light2"} } +``` +```json { "entity": "light.light1", "field: "/state", "data": {"on": true} } +``` +```json { "field": "/config", "data": {"permitjoin": 60} } +``` #### Service `deconz.device_refresh`