I've written a piston to check the device status of my ST V1 moisture sensors as they sometimes drop offline. The piston simply checks each device and sends me a message if the status of any device isn't ACTIVE.
What's strange is that some devices show INACTIVE even though they're working and I see current events in the event log. If I trigger a sensor, I see that info in the log immediately.
Does anyone have any idea why I'm seeing a status of INACTIVE for devices that are online and functioning? In the included screen shot, you can see the expression evaluates to INACTIVE even though I see recent events in the event log. Thanks for any suggestions as to what's going on.
I'm running a C7 hub.
