103 lines
2.7 KiB
YAML
103 lines
2.7 KiB
YAML
bedroom_lights_toggle:
|
|
alias: '[Bedroom] Lights toggle'
|
|
sequence:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: light.bedroom_lights
|
|
state: 'on'
|
|
sequence:
|
|
- service: script.bedroom_lights_off
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: light.bedroom_lights
|
|
state: 'off'
|
|
sequence:
|
|
- service: script.bedroom_lights_on
|
|
|
|
bedroom_lights_on:
|
|
alias: '[Bedroom] Lights on'
|
|
sequence:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.sleep_mode
|
|
state: 'on'
|
|
sequence:
|
|
- service: light.turn_on
|
|
entity_id: light.bedroom_lights
|
|
data:
|
|
brightness_pct: 60
|
|
kelvin: 2000
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.sleep_mode
|
|
state: 'off'
|
|
sequence:
|
|
- service: light.turn_on
|
|
entity_id: light.bedroom_lights
|
|
data:
|
|
brightness_pct: 60
|
|
kelvin: 3200
|
|
|
|
bedroom_lights_off:
|
|
alias: '[Bedroom] Lights off'
|
|
sequence:
|
|
- service: light.turn_off
|
|
entity_id: light.bedroom_lights
|
|
|
|
bedroom_all_lights_off:
|
|
alias: '[Bedroom] All lights off'
|
|
sequence:
|
|
- service: light.turn_off
|
|
entity_id: light.bedroom_lights
|
|
- service: light.turn_off
|
|
entity_id: light.bed_lightstrip
|
|
- service: light.turn_off
|
|
entity_id: light.bed_lamp
|
|
|
|
bedroom_bed_lamp_toggle:
|
|
alias: '[Bedroom] Bed lamp toggle'
|
|
sequence:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: light.bed_lamp
|
|
state: 'on'
|
|
sequence:
|
|
- service: script.bedroom_bed_lamp_off
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: light.bed_lamp
|
|
state: 'off'
|
|
sequence:
|
|
- service: script.bedroom_bed_lamp_on
|
|
|
|
bedroom_bed_lamp_on:
|
|
alias: '[Bedroom] Bed lamp on'
|
|
sequence:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_select.home_mode
|
|
state: Night
|
|
sequence:
|
|
- service: light.turn_on
|
|
entity_id: light.bed_lamp
|
|
data:
|
|
brightness_pct: 10
|
|
kelvin: 2000
|
|
default:
|
|
- service: light.turn_on
|
|
entity_id: light.bed_lamp
|
|
data:
|
|
brightness_pct: 30
|
|
kelvin: 3200
|
|
|
|
bedroom_bed_lamp_off:
|
|
alias: '[Bedroom] Bed lamp off'
|
|
sequence:
|
|
- condition: state
|
|
entity_id: light.bed_lamp
|
|
state: 'off'
|