* Improve service by allowing to reference entity id instead of deconz id * Change from having access to full entities to only store entity id together with deconz id * Don't use eval, there is a dict type for voluptuous * Use entity registry instead of keeping a local registry over entity ids * Removed old code * Add test for get_entry * Bump dependency to v28 Fixed call to protected member * Use chain to iterate over dict values * Cleanup * Fix hound comment * Cleanup * Follow refactoring of entity * Revert to using a local registry * Remove unused import * self.hass is automatically available when entity is registered in hass
14 lines
504 B
YAML
14 lines
504 B
YAML
|
|
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'
|
|
data:
|
|
description: Data is a json object with what data you want to alter.
|
|
example: '{"on": true}'
|