@Alex_Lopez wrote:
Hi all,
I have both a light and a remote (the one with bright and temperature buttons) from Ikea integrated into Hassio. Yesterday, I coded a automation in which when brightness buttons in the remote are pressed, the brightness from the light is either increased or decreased. I used something similar to this and it is perfectly working:
- service: light.turn_on entity_id: light.light_name data_template: brightness: '{{states.light.light_name.attributes.brightness + 10}}'
However, I was trying to apply the same sort of code to change the light temperature but it was impossible. I manage to set a specific color through “color_temp” attribute but I can not find and attribute in this light that stores the actual “color_temp” so I can code something like:
- service: light.turn_on entity_id: light.light_name data_template: color_temp: '{{states.light.light_name.attributes.color_temp + 10}}'
Any ideas on how to do this?
Thank you!
Posts: 1
Participants: 1