[SOLVED] Watchdog Expire Alerting - Hope I Am On The Right Track

I have no idea if this will work but perhaps something like this will work. I’ve never tried multiple expire bindings on the same Item.

Switch inovelli_plug1 { expire="3m,OFF", expire="30m" }
rule "Tower Pump Watchdog"
when
    Item inovelli_plug1 changed to NULL
then
    logInfo("WARNING","Tower Pump is OFFLINE")
    sendMail("alerts@mygmail.com", "TOWER FAILURE: Pump Has Not Run", "Pump Failure Detected")
    sendNotification(userName, Tower Pump Failure!)
end

I’m not sure there won’t be problems here on the reload of a .items file or system startup. But if it works, it lest the inovelli_plug1 be its own watchdog. You cna use the color tag in the sitemap to make your Item label red or something like that .

labelcolor=[UNDEF="red"]

I think that will work.

If you want something more comprehensive for tracking the online status of these and other Items in a centralized manner you can do something like: Design Patterns: Generic Is Alive (note I need to rewrite this DP) or Design Pattern: Sensor Aggregation