I am pretty sure I am using the wrong syntax below as the program I intended to make a notification if a garage door is open for more than 10 minutes actually alerts on open/close state change. Alternatively, the current state duration is not updated at the same time as the open/close state, causing an alert on state change as the current state duration may actually be denoting the duration of the prior open/close state. Would anyone correct this by using a state variable in the ISY program?
Program Content for 'Garage doors are open too long'
If
'Garage / MyQ Bridge / Left Garage Door' Door State is not Closed
And 'Garage / MyQ Bridge / Left Garage Door' Duration of Current State > 600 seconds
Or (
'Garage / MyQ Bridge / Right Garage Door' Door State is not Closed
And 'Garage / MyQ Bridge / Right Garage Door' Duration of Current State > 600 seconds
)
Then
Send Notification to 'Text Both' content 'Garage.Doors.Open.Too.Long'
Wait 10 minutes
Run Program 'Garage doors are open too long' (If)