2021-11-12 02:34:29 +01:00
|
|
|
hallway_lights_toggle:
|
|
|
|
alias: '[Hallway] Lights toggle'
|
|
|
|
sequence:
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: light.hallway_light
|
|
|
|
state: 'on'
|
|
|
|
sequence:
|
|
|
|
- service: script.hallway_lights_off
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: light.hallway_light
|
|
|
|
state: 'off'
|
|
|
|
sequence:
|
|
|
|
- service: script.hallway_lights_on
|
|
|
|
|
|
|
|
hallway_lights_off:
|
|
|
|
alias: '[Hallway] Lights off'
|
|
|
|
sequence:
|
|
|
|
- service: light.turn_off
|
|
|
|
entity_id: light.hallway_light
|
|
|
|
- service: light.turn_off
|
|
|
|
entity_id: light.hallway_lightstrip
|
|
|
|
|
|
|
|
hallway_lights_on:
|
|
|
|
alias: '[Hallway] 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.hallway_light
|
|
|
|
data:
|
2022-08-05 00:20:55 +02:00
|
|
|
brightness: 76
|
2021-11-12 02:34:29 +01:00
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_boolean.sleep_mode
|
|
|
|
state: 'off'
|
|
|
|
sequence:
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id: light.hallway_light
|
|
|
|
data:
|
|
|
|
brightness: 255
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Night
|
|
|
|
sequence:
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id: light.hallway_lightstrip
|
|
|
|
data:
|
2022-08-12 22:08:40 +02:00
|
|
|
brightness_pct: 60
|
2021-11-12 02:34:29 +01:00
|
|
|
hs_color:
|
2021-12-05 23:22:48 +01:00
|
|
|
- 360
|
2021-11-12 02:34:29 +01:00
|
|
|
- 100
|