@SoulAssassin wrote:
Hi!
Guys, I’m trying to solve it by myself. Initially it seemed to me that it will be very easy, but I’m stopped right now.
I have an two scripts for gu10 lights. Fox example:
kitchen_cooker_hood_white: sequence: - service: light.turn_on data: entity_id: - light.kitchen_cooker_hood_left_gu10 - light.kitchen_cooker_hood_right_gu10 brightness: 255 color_temp: 153 kitchen_cooker_hood_warm: sequence: - service: light.turn_on data: entity_id: - light.kitchen_cooker_hood_left_gu10 - light.kitchen_cooker_hood_right_gu10 brightness: 255 color_temp: 454
I want to changing the light color temperature by click on my ikea switch, if it is 153 - it means to turn on 454, if 454 - then turn on 153 and that’s it. Here is my action case, where I’m stopped now, I just post it as it is:
action: - service: script.turn_on data_template: entity_id: >- {%- if is_state_attr('light.kitchen_cooker_hood_left_gu10','color_temp','153') -%} script.kitchen_cooker_hood_warm {%- else -%} script.kitchen_cooker_hood_white {% endif %}
It’s possible to make my idea or not? Just not understandable now this direction.
Posts: 5
Participants: 2