1) Give a description of the problem
I have set up virtual switches (VS) for STHM and want to change the location mode based on sunrise and sunset. The piston will change the location if the VS changes to on between sunrise and sunset. The piston is not changing the location mode if it is already on (no change in state).
2) What is the expected behaviour?
If the VS changes to or is on between sunrise to sunset it will change the location mode. And the same for sunset to sunrise.
3) What is happening/not happening?
No change is happening is the VS is already on and the time changes to sunset or sunrise