Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Temperature Sensor Timestamp using Rest

Featured Replies

Posted

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.

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.

Archived

This topic is now archived and is closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.