I have the following alert for my garadget.
Yet it only notifies me two times. Once when the door is open and once when it’s closed.
It doesn’t matter if I leave the door open for 60 minutes?? What do I have to do for an alert at 15 minutes, 30 etc
garage_door_open_long:
name: Garage Door is still open!
done_message: Garage is closed
entity_id: sensor.garage_door_status
state: 'open' # Optional, 'on' is the default value
repeat:
- 15
- 30
- 60
can_acknowledge: false # Optional, default is true
skip_first: false # Optional, false is the default
notifiers:
- mypushbullet
Your alert needs to start with alert: in column 0 - just like you had it before.
The name of the alert garage_door_open_long needs to be intended by 2 spaces, i.e. start in column 2 - think this is the case in your code.
The line starting with name: needs to be intended another 2 spaces, it looks like your’s is only 1 space further in.
same for the lines after repeat, they also seem to be intended one space further rather than 2.
I should probably look like this then:
alert:
garage_door_open_long:
name: Garage Door is still open!
done_message: Garage is closed
entity_id: sensor.garage_door_status
state: 'open' # Optional, 'on' is the default value
repeat:
- 15
- 30
- 60
can_acknowledge: false # Optional, default is true
skip_first: false # Optional, false is the default
notifiers:
- mypushbullet
And, just in case I miscounted some of the spaces, here is my working version as an example:
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
Thanks @finity and @chairstacker. I tried several different forms of the alert component and could not get it to repeat at all. The solution @finity had works great though and I learned timers, thanks. Also changed my garage senors to binary senors, on and off just fits with alot of things.
Just wanted to point out that using the alert component has the advantage that you can easily get a switch to dismiss the alert in case you don’t want to / need to get the notifications for a while e.g. because you’ve left it open on purpose.
That’s easy enough to do with my code as well. all you need to do is put in an input_boolean in the conditions that will disable the automation when turned on.
I actually may do that eventually but right now I haven’t seen the need for it. Getting a pushbullet notification every half hour isn’t too distracting.