2021-07-06 06:52:04 +00:00
|
|
|
- id: bedroom-bed-lamp
|
|
|
|
alias: '[Bedroom] Bed Button Lamp'
|
|
|
|
trigger:
|
|
|
|
- device_id: 0d584dbfe721e00880b38c4dfc1c108e
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_short_press
|
|
|
|
subtype: turn_off
|
|
|
|
action:
|
2021-11-12 01:56:26 +00:00
|
|
|
- service: script.bedroom_bed_lamp_toggle
|
2021-07-06 06:52:04 +00:00
|
|
|
|
2022-07-10 21:20:10 +00:00
|
|
|
- id: bedroom-bed-sleep-morning
|
|
|
|
alias: '[Bedroom] Bed Sleep/Morning'
|
2021-07-06 06:52:04 +00:00
|
|
|
trigger:
|
|
|
|
- device_id: 0d584dbfe721e00880b38c4dfc1c108e
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
2022-08-06 21:41:47 +00:00
|
|
|
type: remote_button_long_press
|
|
|
|
subtype: dim_up
|
2021-07-06 06:52:04 +00:00
|
|
|
condition:
|
|
|
|
- condition: not
|
|
|
|
conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Away
|
|
|
|
action:
|
2022-07-10 21:20:10 +00:00
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Day
|
|
|
|
sequence:
|
|
|
|
- service: script.good_night
|
|
|
|
- conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Night
|
|
|
|
sequence:
|
|
|
|
- service: script.good_morning
|
|
|
|
|