Simple Piston Questions


#1

I trying to do a simple piston that will turn off a light if the door is unlocked. I’m assuming that I have to check “$status” of the lock but have no idea what the status should be. Where are the available $status parameters for the lock found?

This doesn’t work as written. Help!

Thanks!

Mike


#2

Status is more the status it is showing to SmartThings. Should have some other options like lock or contact


#3

That did the trick. Was trying to make it too hard.

Thanks!

Mike