Part of piston stopped working


#1

I have a piston that’s been working for months and has stopped working. It’s not getting events from my alarm panel/lock anymore. It’s getting the proper events from the phone but if I lock/unlock I never see the event. I have tried all the usual pausing/resuming and recreating. Not sure what to do next to figure out “why”


#2

I don’t know if this is the problem, but in the 2nd if statement, you tell the lock to turn on. Shouldn’t you tell the lock to lock?


#3

it’s not technically a lock - it’s an alarm panel which has switch and lock capabilities etc. I want it “on” to turn stay mode on vs away which would be lock but it comes across correctly for what I need. This has literally been working for 7 months just fine.

I tried changing the lower parts to “on” vs locked but I never see an event come in from the alarm panel anymore


#4

well I figured out a workaround just not sure exactly why it broke - will dig into that some other time!
Thanks for the idea it helped me go in the right direction


#5

Would you mind mentioning what your workaround entailed?


#6

Sure…

I essentially changed what the logic was using. instead of using if the switch is on or lock is locked I changed it to use “armed” state. So now it checks armed status and sees if it’s set to armed or disarmed.

Make sense or would it be easier to see it?


#7

No, I got it. Good idea :slight_smile: I do something like that with my garage door opener… Have a virtual switch that tracks state with the garage door (door open = switch on, vice versa)