Hi,
I’m new to HASS, and starting to automate “things”.
I’ve bought “Leroy Merlin” (ADEO)(zigbee) rgb light bulbs, which come with a remote, and I’m trying to correctly automate these…
I’m facing a couple of issues, but I’ll only talk about the remote issue for now.
I’ve downloaded a “philips hue dimmer switch” blueprint, which I’m trying to modify to handle the enki/adeo/lexman remote. That remote has way more buttons, and I’m trying for now to get the “step_hue” and “step_saturation” to work.
I successfully attached these buttons to ZHA events , but I’m failing in implementing a “step” for the hue and saturation as lights don’t have such services …
I tried with this :
- conditions:
- '{{ command == ''step_saturation'' }}'
- '{{ cluster_id == 768 }}'
- '{{ endpoint_id == 1 }}'
- '{{ args == [1, 26, 5] }}'
sequence:
- service: light.turn_on
target: !input 'light'
data_template:
hs_color:
- '{{state_attr(''!input light'' , ''hs_color'')[0]+10}}'
- '{{state_attr(''!input light'', ''hs_color'')[1]}}'
But this gives me undef errors in the logs. I also tried to set a variable with the “!input light”, but then I’m getting yet another error…
AttributeError: ‘dict’ object has no attribute ‘lower’
So question : can the “!input” objects be used somehow in automation templates ?
Thanks