1
0
ansible-home-assistant/scripts/96.lights-living-room.yaml

67 lines
2.0 KiB
YAML
Raw Normal View History

2023-04-22 18:03:39 +00:00
living_room_lights_toggle:
alias: '[Living Room] Lights toggle'
sequence:
- choose:
- conditions:
- condition: state
2023-04-24 18:06:47 +00:00
entity_id: light.couch_lights
2023-04-22 18:03:39 +00:00
state: 'on'
sequence:
2023-04-24 18:06:47 +00:00
- service: script.living_room_lights_off
2023-04-22 18:03:39 +00:00
- conditions:
- condition: state
2023-04-24 18:06:47 +00:00
entity_id: light.couch_lights
2023-04-22 18:03:39 +00:00
state: 'off'
sequence:
2023-04-24 18:06:47 +00:00
- service: script.living_room_lights_on
2023-04-22 18:03:39 +00:00
living_room_lights_on:
alias: '[Living Room] Lights on'
sequence:
- choose:
- conditions:
- condition: state
entity_id: input_select.home_mode
state: Day
sequence:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.sleep_mode
state: 'on'
sequence:
- service: light.turn_on
entity_id: light.couch_lights
data:
brightness_pct: 100
kelvin: 2000
- conditions:
- condition: state
entity_id: input_boolean.sleep_mode
state: 'off'
sequence:
- service: light.turn_on
entity_id: light.couch_lights
data:
brightness_pct: 100
kelvin: 3200
- conditions:
- condition: state
entity_id: input_select.home_mode
state: Night
sequence:
- service: light.turn_on
data:
brightness_pct: 40
hs_color:
- 360
- 100
target:
entity_id: light.couch_lights
living_room_lights_off:
alias: '[Living Room] Lights off'
sequence:
- service: light.turn_off
entity_id: light.couch_lights