I have found many topics showing me the code but it does not seem to work? Any idea what I am doing wrong? I want to be notified if my front door is open for more than 5 minutes…
Here is my automation
- alias: "Front Door Open"
trigger:
platform: state
entity_id: sensor.FrontDoor
state: 'open'
for:
minutes: 5
action:
service: notify.pushbullet
data:
title: "Front Door Open"
message: "Front Door Open"
Invalid Config
The following components and platforms could not be set up:
automation
Please check your config
If I remove the “Front Door Open” in automation the error goes away.
I have not tested to see if the automation works, I was waiting for a clean restart.
Did that work?
I had issues with this ‘for’ configuration before so I’ using an alert - which also has the benefit that it reminds me repeatedly:
alert:
garage_door_open_long:
name: Garage Door is still open!
entity_id: binary_sensor.garage_door_sensor
state: 'off' # Optional, 'on' is the default value
repeat: 5
can_acknowledge: true # Optional, default is true
skip_first: true # Optional, false is the default
notifiers:
- mypushbullet
Yes, changing “state” to “to” worked, I opened the door and 5 min later got a notification. Now I am going to change it to turn off my Nest Thermostat when the door is open for 5 min…