Detecting only physical interactions


#1

1) Give a description of the problem
I want to detect only physical interactions with a light switch, and most importantly ignore events that were triggered by webCoRE. I am trying this:

if <Device>'s switch physically changes

And that does work, but I also occasionally have this trigger for an “off” event that I suspect is being caused by another bit of code in the same piston.

2) What is the expected behavior?
Ideally I could catch all on/off events for the light not triggered by webCoRE (same piston or other pistons)

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

I actually would love to figure out how to capture some useful logs to track this down. I’m open to adding some statements to better determine the state of the switch, what triggered it, etc, but so far can’t find anything like that.


#2

What kind of switch? GE? ST default driver no longer reports this (If I remember correctly). I tried a few different DTH’s and still only had limited success.


#3

Ahh, I didn’t realize that was relevant. I’m using the GE Z-Wave dimmer switch and this driver: nuttytree : GE Z-Wave Plus Switch.


#4

Perhaps a related question: what causes the event to be triggered? I’m confident that I did not touch any switches or issue any Alexa commands but I just saw this in the logs. I’m pretty sure there was no piston activities either. Could there be some sort of phantom “off” events?

4/9/2018, 2:25:46 PM +475ms
+1ms ╔Received event [Office Lights].switch = off with a delay of 1539ms
+8296ms ║Piston waited at a semaphore for 8079ms
+8335ms ║manual override enabled
+8339ms ║Setting up scheduled job for Mon, Apr 9 2018 @ 2:26:14 PM EDT (in 19.958s)
+8353ms ╚Event processed successfully (8353ms)

Relevant code: