54 lines
1.5 KiB
YAML
54 lines
1.5 KiB
YAML
|
table_lights_toggle:
|
||
|
alias: '[Table] Lights toggle'
|
||
|
sequence:
|
||
|
- choose:
|
||
|
- conditions:
|
||
|
- condition: state
|
||
|
entity_id: light.table_lamp_lights
|
||
|
state: 'on'
|
||
|
sequence:
|
||
|
- service: script.table_lights_off
|
||
|
- conditions:
|
||
|
- condition: state
|
||
|
entity_id: light.table_lamp_lights
|
||
|
state: 'off'
|
||
|
sequence:
|
||
|
- service: script.table_lights_on
|
||
|
|
||
|
table_lights_on:
|
||
|
alias: '[Table] Lights on'
|
||
|
sequence:
|
||
|
- choose:
|
||
|
- conditions:
|
||
|
- condition: state
|
||
|
entity_id: input_select.home_mode
|
||
|
state: Day
|
||
|
sequence:
|
||
|
- service: light.turn_on
|
||
|
entity_id: light.table_lamp_lights
|
||
|
data:
|
||
|
kelvin: 3200
|
||
|
- service: light.turn_on
|
||
|
entity_id: light.table_lamp_lights
|
||
|
data:
|
||
|
brightness: 255
|
||
|
- conditions:
|
||
|
- condition: state
|
||
|
entity_id: input_select.home_mode
|
||
|
state: Night
|
||
|
sequence:
|
||
|
- service: light.turn_on
|
||
|
entity_id: light.table_lamp_lights
|
||
|
data:
|
||
|
kelvin: 2000
|
||
|
- service: light.turn_on
|
||
|
entity_id: light.table_lamp_lights
|
||
|
data:
|
||
|
brightness_pct: 10
|
||
|
|
||
|
table_lights_off:
|
||
|
alias: '[Table] Lights off'
|
||
|
sequence:
|
||
|
- service: light.turn_off
|
||
|
entity_id: light.table_lamp_lights
|