1) Give a description of the problem
Top level “only when” predicate is ignored. Piston runs no matter what the time is, and no matter what mode is active. “Only when” predicates seem to work as expected everywhere else.
Former ST user; I’m running WC on Hubitat but have no idea if this is an issue specific to HE or not.
A more general question: what is the purpose of “only when”? I could accomplish the same thing using “if” so “only when” seems redundant. A search for “only when” here turns up 0 results.
2) What is the expected behaviour?
I would expect the piston to trigger every minute, evaluate the “only when” expression(s) and exit if the “only when” evaluates to false. Or perhaps the next execution of the piston would only be scheduled for 1 minute unless the time is between midnight and sunrise, in which case the next execution would be scheduled for sunrise. Same result, different implementation.
3) What is happening/not happening?
The piston runs ever minute, regardless of time or mode
4) Post a Green Snapshot of the piston
5) Attach logs after turning logging level to Full
Will have to wait until after midnight to capture logs