I wrote this to test and display the conditions that another piston uses, that will unlock our front door if there is motion from our Ring Pro, and the last presence arrival was after one of our entry doors was previously opened or the system was previously disarmed.
I set up the piston so it will either be triggered by a change of the presence arrived status, an entry door opening or the alarm is disarmed (I had to do the SHM test because my alarm system doesn’t indicate the entry doors have opened if it is still armed and then disarmed after the door is closed), or if the generated tile is clicked.
I needed this to make sure of the status of all of the variables and tests, so the front door wouldn’t unlock when I don’t want it to.
Putting it out there for review and critique!