Webcore use of $status

Hi there

I'm embarrassed to ask this question knowing that I'd been creating Webcore Pistons for a few years now.. Im trying to use $status for a device..... thats it.. as simple as that . However I fail to understand what my $status attributes could be for a device.

My intent is to validate is a device is responding , but checking the $status. But I dont know how I would do that in Webcore.

I tried the forums for the last hour but havent found a concise answer..

Lastly does every device provide a $status... ??

Thanks again and apologies for the neophyte question..

From my understanding, $status gives ACTIVE or INACTIVE, but not all devices will report it correctly. Specifically, Zwave devices do not report status, but Webcore will always say the status is ACTIVE if you try. Zigbee devices usually report status, however, so $status can possibly be used to see if the battery (or the device itself) is dead from a Zigbee sensor.

Make a piston that just logs to console the status of a device every 15 seconds, to test it out and see what you get when they are normally working, and then when you pull the battery, so you can see what devices are actually reporting a $status correctly.