Need help from the expert’s community!
At the moment I am stuck with the following problem:
The light.turn_on service has numerous attributes. My ‘client’ automations pass data to my script carring the desired state of the light - brightness, rgb, hue and ect. and this script has to set the light to the desired state. I do not know what data attributes would be passed - hue or rgb… Based on the data attributes I need to call:
- service: light.turn_on
data:
arrt1: attr1_val
.
.
.
attrN: attrN_val
Does anyone know how it can be done?
Thanks in advance!