Browse Source

adding buttons for lampe

master
Thomas 4 years ago
parent
commit
642bc19d7b
Signed by: taschenbier
GPG Key ID: 306F574D34A9673B
  1. 43
      automations/lights.yaml

43
automations/lights.yaml

@ -1,6 +1,4 @@ @@ -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 @@ @@ -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]

Loading…
Cancel
Save