1
0
ansible-home-assistant/configuration/automations/intercom.yaml

15 lines
357 B
YAML
Raw Normal View History

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