So far what I have is
alias: Test Open Notification
description: Repeat alert to mobile if test sensor opens every 2 minutes
trigger:
- platform: state
entity_id:
- binary_sensor.mbed_sensor_test_isopen
to: "on"
for:
hours: 0
minutes: 0
seconds: 30
condition: []
action:
- repeat:
while:
- condition: state
entity_id: binary_sensor.mbed_sensor_test_isopen
state: "on"
sequence:
- service: notify.mobile_app_m2007j20cg
data:
message: Open > 2 minutes
title: Test Sensor
enabled: true
- service: notify.pushover
data:
title: Test Sensor
message: Open > 2 minutes
- delay:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
mode: single
I am trying to do a door open for > 2 mins alert on my phone. I got pushover. I have this working but not quite as I want.
For the standard notificasion it works but I only get a audable alert the firast time it fires (it is set to fire every 30 seconds (the message says 2 mins but ignore that). I also dont think I can change the alert audio or get it to apear as a pop up.
The pushover one is better but if I set the proprity. i.e.
- service: notify.pushover
data:
title: Test Sensor
message: Open > 2 minutes
priority: 1
I dont get the alert and if I try to set the sound
- service: notify.pushover
data:
title: Test Sensor
message: Open > 2 minutes
sound: siren
It also does not work. I tried uploaded a sound to the pushover website and tried using that but it did not work (I got nothing).
Any ideas?
Ben