First I want to say this app is awesome so far and really like the approach your taking and speed at which you are pumping out updates.
I know that you have implemented rules - just not a fan of the once you create them they are there forever bit. I know this is not on you but on ST.
so I am working on using pistons with the occupancy states. I have added them to webcore and looking at options to get the complexity I need while also simplifying my pistons at the same time.
I noticed when the DTH changes states there are 2 actions that occur in the st mobile app. 1 is the button push corresponding to the state - then the value of the state change. What is the best method for the if statement a changes to value or button push for monitoring change to start piston?