I am trying to create an automation that will send me a push notification whenever the state of my front door changes.
When creating this, I have the trigger defined as this:
Please post the entire YAML and enclose it in three back ticks ` so its formatted properly. Then someone can help. you… (the three hamburger dots in the top right of the automation.
alias: Push - Front Door Lock
description: ''
trigger:
- platform: state
entity_id:
- lock.front_door_2
condition: []
action:
- data_template:
message: Front Door {{ trigger.to_state.state }}
service: notify.notify
mode: single