Contact sensor monitor (not working properly)


#1

1) Give a description of the problem
I’m trying to create a piston that will monitor my contact sensors. I occasionally find that a door’s contact sensor stops reporting open/closed yet is still responding to polls as ‘active’. I want this monitor to identify contact sensors that have not changed state for a period of time (say a week) and send a message so I can investigate. I’d like to have monitoring of all of my contact sensors consolidated in a single piston.

2) What is the expected behavior?
Single push notification for each contact sensor that has not changed state after a period of time.

3) What is happening/not happening?
I get 6 push notifications when one of the contact sensors has not changed state. All 6 push notifications reference one device - the last one to have changed state.

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)
N/A


#2

I set up a test piston (see attached). When I open one of the doors, I only get notification of the one opened…