1
0
ansible-home-assistant/configuration/automations/front-door-doorbell.yaml

17 lines
362 B
YAML

- id: front-door-doorbell
alias: '[Front door] Doorbell'
mode: restart
trigger:
- platform: state
entity_id: switch.doorbell
from: 'off'
to: 'on'
action:
- service: notify.mobile_app_iphone
data:
message: Doorbell
data:
actions:
- action: UNLOCK_DOOR
title: Unlock door