Is there anything in the 5.0.x firmware that makes this whole state determination much easier? I have 17 water leak sensors (and just moved to ISY994i from an Insteon Hub) and these old programs seem pretty tedious to implement.
Something like:
IF "Sensor1 is WET ... OR SensorN is WET" THEN "Send Notification for Sensor1 ... AND Send Notification for Sensor1N"
and separately:
IF "Sensor1 fails [i.e., no heartbeat for more than 25 or 26 hrs] ... OR SensorN fails" THEN "Send Notification for Sensor1 ... AND Send Notification for Sensor1N"