1
0
ansible-home-assistant/roles/automations/files/intercom.yaml

15 lines
357 B
YAML

- id: intercom_button
alias: '[Intercom] Button'
mode: single
trigger:
- platform: state
entity_id: input_boolean.intercom_button
to: "on"
action:
- service: switch.toggle
target:
entity_id: switch.intercom_button
- service: input_boolean.turn_off
target:
entity_id: input_boolean.intercom_button