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

28 lines
687 B
YAML
Raw Normal View History

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:
- service: script.bedroom_bed_lamp_toggle
2021-07-06 06:52:04 +00:00
- id: bedroom-bed-sleep
alias: '[Bedroom] Bed Sleep'
trigger:
- device_id: 0d584dbfe721e00880b38c4dfc1c108e
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
condition:
- condition: not
conditions:
- condition: state
entity_id: input_select.home_mode
state: Away
action:
- service: script.good_night