1
0
ansible-home-assistant/automations/files/bathroom-button.yaml

18 lines
435 B
YAML

- id: button-bathroom-on
alias: '[Bathroom] Button On'
trigger:
- device_id: 800c754de6e6b10259f371adc123b909
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
condition: []
action:
- service: light.toggle
data:
entity_id:
- light.bathroom_1
- light.bathroom_2
- light.bathroom_3
- light.bathroom_4
mode: single