1
0
ansible-home-assistant/roles/automations/files/bedroom-bed-button.yaml

41 lines
1.0 KiB
YAML

- 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:
- service: script.bedroom_bed_lamp_toggle
- id: bedroom_bed_sleep_morning
alias: '[Bedroom] Bed Sleep/Morning'
trigger:
- device_id: 0d584dbfe721e00880b38c4dfc1c108e
domain: zha
platform: device
type: remote_button_long_press
subtype: dim_up
condition:
- condition: not
conditions:
- condition: state
entity_id: input_select.home_mode
state: Away
action:
- 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