@AgMa wrote:
Hi all,
I want to set a specific rgb color for my Xiaomi gateway when double press through a Xiaomi smart switch. Problem is that rgb_color is working only if I use homeassistant.turn_on service. If I change to homeassistant_toggle or light.toggle, the light returns to default white. Only brightness is recognized.
With what I have now is working fine, but I want to toggle the light, not just turn it on.
The code:- alias: Night mode trigger: - platform: event event_type: xiaomi_aqara.click event_data: entity_id: binary_sensor.switch_1 click_type: double - platform: event event_type: xiaomi_aqara.click event_data: entity_id: binary_sensor.wall_switch_light_bedroom click_type: double action: - service: homeassistant.turn_on data: entity_id: light.gateway_light brightness: 25 rgb_color: [255,99,0] - service: homeassistant.turn_off entity_id: light.kids - service: homeassistant.turn_off entity_id: switch.sonoff_kitchen - service: homeassistant.toggle entity_id: switch.blitzwolf
Thanks in advance!
Posts: 7
Participants: 2