Hello,
I'd like to have an automation that alerts me after the back door has been left open for longer than a minute and persistently alerts me as long as it is still open. The use case is sometimes the door doesn't get shut all the way and can blow wide open if left alone.
The alerts integration seems perfect for this, however, I can't get it to work on my contact sensors. I'm using the IKEA contact sensors on zigbee. I've verified that the binary sensor is the one that is changing when I open and shut the door, but no alert occurs. Log files seem silent on the alerts, but maybe I'm looking in the wrong log.
What dumb thing am I overlooking?
Code:
back_door:
name: Back Door is open
done_message: clear_notification
entity_id: binary_sensor.back_door_contact_sensor
state: "open"
repeat:
- 1
- 2
can_acknowledge: true
skip_first: true
notifiers:
- mobile_app_zero
data:
tag: back_door_open_alert
I'm following the in app notification settings from this article under the "additional parameters for notifiers" settings
https://www.home-assistant.io/integrations/alert/
I tried this on my office lights and it works perfectly:
office_lights:
name: Office Lights On
done_message: clear_notification
entity_id: light.office_main_lights
state: "on"
repeat:
- 1
- 2
can_acknowledge: true
skip_first: true
notifiers:
- mobile_app_zero
data:
tag: office_lights_on_test
in my config file I have:
alert: !include alert.yaml
-> States