1) Give a description of the problem
I have a simple piston which turns off water when vacation mode is enabled, and turns on water when vacation mode is left. I have a global variable (WaterShutoff) which changes as well. The water shuts off perfectly fine, but the variable does not set.
This post here seems to be quite similar. Here
I tried the wait as the last post suggests, with no luck. I also tried an exit at the end, but it did not work either.
I do have to say this used to work really well. Up until this last weekend when I changed the location mode to vacation it would not update properly. The weekend before I used it too, and it worked just fine from what I can remember.
Just for context, this variable is used in an expression to let me know if the water has been shutoff. If I press a button on my phone it sends me a notification with the location mode, water status, and other statuses. Seemed to be working good from when the piston was designed up til this point.
Has there been any changes to Webcore or Smarthings that could have made this become an issue?
2) What is the expected behaviour?
When location mode changes to vacation:
Turn off water, turn on motion override, set WaterShutoff to true
When location mode changes from vacation:
Turn on water, turn off motion override, set WaterShutoff to false
3) What is happening/not happening?
The WaterShutoff variable is not setting.
When the piston is ran (and when I had a wait at the end (5s)) I could see the variable change in the variables box, but once the piston finished, it reverted back to its old value.
**4) Post a Green Snapshot of the piston
5) Attach logs after turning logging level to Full
Log 1 below is when entering Vacation Mode
And Log 2 is when Leaving Vacation mode