2022-08-13 17:17:30 +00:00
|
|
|
office_lights_toggle:
|
|
|
|
alias: '[Office] Lights toggle'
|
|
|
|
sequence:
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: light.office
|
|
|
|
state: 'on'
|
|
|
|
sequence:
|
|
|
|
- service: script.office_lights_off
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: light.office
|
|
|
|
state: 'off'
|
|
|
|
sequence:
|
|
|
|
- service: script.office_lights_on
|
|
|
|
|
|
|
|
office_lights_off:
|
|
|
|
alias: '[Office] Lights off'
|
|
|
|
sequence:
|
|
|
|
- service: light.turn_off
|
|
|
|
entity_id: light.office
|
|
|
|
|
|
|
|
office_lights_on:
|
|
|
|
alias: '[Office] Lights on'
|
|
|
|
sequence:
|
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
2023-12-15 23:58:27 +00:00
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Day
|
2022-08-13 17:17:30 +00:00
|
|
|
sequence:
|
2023-12-15 23:58:27 +00:00
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_boolean.sleep_mode
|
|
|
|
state: 'on'
|
|
|
|
sequence:
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id: light.office
|
|
|
|
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.office
|
|
|
|
data:
|
|
|
|
brightness_pct: 100
|
|
|
|
kelvin: 3200
|
2022-08-13 17:17:30 +00:00
|
|
|
- conditions:
|
|
|
|
- condition: state
|
2023-12-15 23:58:27 +00:00
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Night
|
2022-08-13 17:17:30 +00:00
|
|
|
sequence:
|
|
|
|
- service: light.turn_on
|
|
|
|
data:
|
2023-12-15 23:58:27 +00:00
|
|
|
brightness_pct: 40
|
|
|
|
hs_color:
|
|
|
|
- 360
|
|
|
|
- 100
|
|
|
|
target:
|
|
|
|
entity_id: light.office
|