Hi all
I’m trying to figure out how to cycle my Benta Gu10 bulb with Tasmota from RGB colours to use the yellow/white LEDS in a single automation, currently I’m using 2 separate ones to achieve this.
- alias: BedroomColorChange
trigger:
platform: event
event_type: click
action:
service: light.turn_on
data_template:
entity_id: light.bentagu10test
color_name: >
{% if states.light.bentagu10test.attributes.rgb_color == (255,0,0) %} blue
{% elif states.light.bentagu10test.attributes.rgb_color == (0,0,255) %} green
{% elif states.light.bentagu10test.attributes.rgb_color == (0,255,0) %} yellow
{% else %} red
{% endif %}
brightness_pct: 100
- alias: BedroomWhiteLED
trigger:
platform: event
event_type: click
action:
service: light.turn_on
entity_id: light.bentagu10test
data_template:
color_temp: 158
brightness_pct: 100
transition: 0.5
First cycles selected colours and seconds switches back to white LEDS, currently have them as separate buttons with custom UI.