I'm looking to set up a verbal notification when the front door has been left open for x seconds, to repeat if it hasn't been closed, and to end once it has. I'm currently using a wireless DSC door sensor and the DSC Alarm plugin to monitor the state of the door. That side of things is working just fine and receive a push notification when the door is opened. I realise I can also set u a push notification once it's closed, but would rather have a nearby speaker issue a verbal warning when the door has not been closed after x seconds.
I'm looking for suggestions on how to do this? I've created some steps myself using a timer, first time for me using a timer, but wondering if there's a better way to do this? Perhaps with Variables, nested Conditions?
What I've created so far. (Doing this from work so remains untested so far).
DEVICES
Type: Timers and Pesters
Model: Timer
Settings
Name: Front Door Open Timer
Configure Timer
Initial amount: 1
Amount type: Minutes
TRIGGERS
Name: Front Door Open Trigger
Trigger
Type: Device State Changed
Device: Alarm_Front Door
Zone State Changed to Open
Becomes True
Actions
Type: Start Timer (Timer Controls)
Device: Front Door Open Timer
TRIGGERS
Namer: Front Door Open Speak
Trigger
Type: Timers and Pesters Event
Event: Timer Expired
Edit Event Settings…
Timer: Front Door Open Timer
Actions
Speak: The front door is ajar. The front door is ajar.
TRIGGERS
Name: Front Door Closed Stop Timer
Trigger
Type: Device State Changed
Device: Alarm_Front Door
Zone State Changed to Closed
Becomes True
Actions
Type: Stop Time (Timer Controls)
Device: Front Door Open Timer
TRIGGERS
Name: Front Door Open Restart Timer
Trigger
Typer: Timers and Pesters Event
Event: Timer Expired
Edit Event Settings…
Timer: Front Door Open Timer
Conditions
If conditions match rules:
"Any" "of the following rules are true"
"If device" "Alarm_Front Door" "State is Open (true or false)" "is true"
Actions
Type: Restart Timer (Timer Controls)
Device: Front Door Open Timer