deCONZ: configure service can now use 'field' as a subpath together with 'entity' (#17722)

Allow both 'entity' and 'field' to be used simultaneously, where 'field' is used as a sub-path of the device path that is defined by 'entity'.
This commit is contained in:
Leonardo Brondani Schenkel authored and Robert Svensson committed 2018-10-26 09:15:26 +02:00
1 parent b7b62a90e2
commit 47003fc04f
3 files changed
+71 -20

No files matched your search

@@ -1,12 +1,15 @@
configure:
description: Set attribute of device in deCONZ. See https://home-assistant.io/components/deconz/#device-services for details.
fields:
field:
description: Field is a string representing a specific device in deCONZ.
example: '/lights/1/state'
entity:
description: Entity id representing a specific device in deCONZ.
example: 'light.rgb_light'
field:
description: >-
Field is a string representing a full path to deCONZ endpoint (when
entity is not specified) or a subpath of the device path for the
entity (when entity is specified).
example: '"/lights/1/state" or "/state"'
data:
description: Data is a json object with what data you want to alter.
example: '{"on": true}'