Scott1055 Posted July 17, 2018 Posted July 17, 2018 So I've successfully setup a battery powered zwave sensor that sends the temperature to my isy and I'm able to grab that value using rest and the CLITEMP property (e.g. http://192.168.x.xx/rest/nodes/ZW012_118). My question is how do I grab the timestamp of that temperature reading or know if the sensor stopped transmitting data for some reason (ideally using rest)? Thanks in advance.
larryllix Posted July 17, 2018 Posted July 17, 2018 9 minutes ago, Scott1055 said: So I've successfully setup a battery powered zwave sensor that sends the temperature to my isy and I'm able to grab that value using rest and the CLITEMP property (e.g. http://192.168.x.xx/rest/nodes/ZW012_118). My question is how do I grab the timestamp of that temperature reading or know if the sensor stopped transmitting data for some reason (ideally using rest)? Thanks in advance. Welcome to the forum!! Most people writing sensor input software are including a heartbeat to another field, or in your case you could use another variable. Every update or maybe 30-90 seconds change the heartbeat, alternating between -1 and +1. That makes 0 on power up easy to detect. Then you write an ISY program that detects 1 or -1 and sets a timer for about 2.1-2.2 update cycle times. If the timer ever times out you have a heartbeat failure. I write mine with multiple levels. So at time 2x+1 sec I set a variable indicating an invalid value for the input field. Then after a much longer time (15 min.?) I send a notification to my cell phone and email to wife and I (situations dependant) that the heartbeat has failed. A further timer in a repeat loop re-sends the notification with a nuisance reduction algorithm.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.