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

15 lines
357 B
YAML
Raw Normal View History

- id: intercom_button
2022-11-27 14:18:48 +00:00
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