2021-07-15 20:10:55 +00:00
|
|
|
- id: button-computer-cave-living-room-table
|
|
|
|
alias: '[Computer Cave] Living Room Table'
|
2020-12-06 19:47:20 +00:00
|
|
|
trigger:
|
|
|
|
- device_id: 5b972523e427721ec88e095994f7cc16
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_short_press
|
|
|
|
subtype: turn_on
|
|
|
|
action:
|
2021-05-25 12:33:35 +00:00
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
2021-07-15 20:10:55 +00:00
|
|
|
entity_id: light.table_lamp
|
2021-05-25 12:33:35 +00:00
|
|
|
state: 'on'
|
|
|
|
sequence:
|
2021-07-02 23:03:37 +00:00
|
|
|
- service: light.turn_off
|
2021-07-15 20:10:55 +00:00
|
|
|
entity_id: light.table_lamp
|
2021-05-25 12:33:35 +00:00
|
|
|
- conditions:
|
|
|
|
- condition: state
|
2021-07-15 20:10:55 +00:00
|
|
|
entity_id: light.table_lamp
|
2021-05-25 12:33:35 +00:00
|
|
|
state: 'off'
|
|
|
|
sequence:
|
2021-07-02 23:03:37 +00:00
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_boolean.sleep_mode
|
|
|
|
state: 'on'
|
|
|
|
sequence:
|
|
|
|
- service: light.turn_on
|
2021-07-15 20:10:55 +00:00
|
|
|
entity_id: light.table_lamp
|
2021-07-02 23:03:37 +00:00
|
|
|
data:
|
|
|
|
brightness_pct: 100
|
|
|
|
kelvin: 2000
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_boolean.sleep_mode
|
|
|
|
state: 'off'
|
|
|
|
sequence:
|
|
|
|
- service: light.turn_on
|
2021-07-15 20:10:55 +00:00
|
|
|
entity_id: light.table_lamp
|
2021-07-02 23:03:37 +00:00
|
|
|
data:
|
|
|
|
brightness_pct: 100
|
|
|
|
kelvin: 3200
|
2020-12-06 19:47:20 +00:00
|
|
|
mode: single
|
2021-05-10 10:24:31 +00:00
|
|
|
|
2021-07-02 23:03:37 +00:00
|
|
|
- id: button-computer-cave-desk
|
|
|
|
alias: '[Computer Cave] Button Desk'
|
2020-12-06 19:47:20 +00:00
|
|
|
trigger:
|
|
|
|
- device_id: 5b972523e427721ec88e095994f7cc16
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_short_press
|
|
|
|
subtype: turn_off
|
|
|
|
action:
|
|
|
|
- service: light.turn_off
|
|
|
|
data:
|
2021-05-06 23:04:02 +00:00
|
|
|
entity_id: light.desk_lightbar
|
2021-05-25 12:33:35 +00:00
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
2021-07-02 23:03:37 +00:00
|
|
|
entity_id: light.desk_lightbar
|
2021-05-25 12:33:35 +00:00
|
|
|
state: 'on'
|
|
|
|
sequence:
|
2021-07-02 23:03:37 +00:00
|
|
|
- service: light.turn_off
|
|
|
|
entity_id: light.desk_lightbar
|
|
|
|
- service: light.turn_off
|
|
|
|
entity_id: light.desk_lightbar_ambilight
|
2021-05-25 12:33:35 +00:00
|
|
|
- conditions:
|
|
|
|
- condition: state
|
2021-07-02 23:03:37 +00:00
|
|
|
entity_id: light.desk_lightbar
|
2021-05-25 12:33:35 +00:00
|
|
|
state: 'off'
|
|
|
|
sequence:
|
2021-07-02 23:03:37 +00:00
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_boolean.sleep_mode
|
|
|
|
state: 'on'
|
|
|
|
sequence:
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id: light.desk_lightbar
|
|
|
|
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.desk_lightbar
|
|
|
|
data:
|
|
|
|
brightness_pct: 100
|
|
|
|
kelvin: 3200
|
2020-12-06 19:47:20 +00:00
|
|
|
mode: single
|