17 lines
362 B
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
|