diff --git a/automations/lights.yaml b/automations/lights.yaml index fed472a..11dd84d 100644 --- a/automations/lights.yaml +++ b/automations/lights.yaml @@ -1,6 +1,4 @@ -- id: change_to_warm_light - alias: Lampen auf warmes Licht - hide_entity: true +- alias: Lampen auf warmes Licht trigger: platform: homeassistant event: start @@ -11,3 +9,42 @@ entity_id: - light.0xec1bbdfffe9cc96e_light - light.0xec1bbdfffe59b929_light + +- alias: Lampen Rot + trigger: + - platform: state + entity_id: binary_sensor.button_red + to: "on" + action: + - service: light.turn_on + data: + entity_id: + - light.0xec1bbdfffe9cc96e_light + - light.0xec1bbdfffe59b929_light + rgb_color: [255, 0, 0] + +- alias: Lampen GrĂ¼n + trigger: + - platform: state + entity_id: binary_sensor.button_green + to: "on" + action: + - service: light.turn_on + data: + entity_id: + - light.0xec1bbdfffe9cc96e_light + - light.0xec1bbdfffe59b929_light + rgb_color: [0, 255, 0] + +- alias: Lampen Gelb + trigger: + - platform: state + entity_id: binary_sensor.button_yellow + to: "on" + action: + - service: light.turn_on + data: + entity_id: + - light.0xec1bbdfffe9cc96e_light + - light.0xec1bbdfffe59b929_light + rgb_color: [255, 255, 0]