Calculating Sensor Uptime

Hello!

I would like to be able to calculate the percentage of time that a sensor has been online since it was first installed. I’ve looked at API fields such as “last_seen” and “uptime,” but from my understanding, these fields do not store historical data.

Is there another field that I can request data for that might help complete this goal?

Thank you in advance for any suggestions!

Taft Harrell

As far as I know, no API field directly provides the historical percentage of time a sensor has been online since installation, as “last seen” and “uptime” are typically current snapshots without a full history.

Hi Gordon,

Gotcha! Thanks for letting me know. This is helpful. I figured that might be the case, but I wanted to see if anyone else knew of anything.

Taft