I am looking at Simple Device Viewer in ST.
It makes a call for device.getLastActivity() which is expecting a timestamp.
device.getLastActivity() returns the following error for each device iterated:
java.lang.IllegalArgumentException: Command 'getLastActivity' is not supported by device.
In Hubitat, I know "Last Activity" is visible on the Hubitat device page but is there another way to get this information programatically?
Yea. I wanted something that I could quickly see battery levels with. It loaded fine as-is but then had the errors due to the missing getLastActivity() function.
What is setting for existing devices "active", inactive, etc? ie what operation is being monitored, and is inactive a timeout? I asking about the HE devices display off the portal.
I believe that the device is sending a report to the Hubitat device, but the report is not generating an event. For example, the device in my screenshot it is sending battery reports every few hours. Since the reports are all 100% a new event isn't created. The Last Active time is the last time the device reported to the hub.
I don't know a way to get the last active time though. I thought getLastActivity would do it, but it doesn't seem to.
I'm not sure how long the timeout is for it to be marked INACTIVE.
Yes, events comitted to the db, currently the event must involve a state change, or an app has subscribed to the attribute in question with filterEvents:false