Can someone please explain "Only when" with an example?


I think that I have a very basic understanding of “Only when” statements. But I would like more discussion with an example piston to make sure I have it right in my brain. Thanks.


Only when is restrictions…


I’ve had issues with “only when”. I find it works better with a trigger and “And”

IF motion sensor changes to active
AND time is between X and Y
THEN turn on patio light


I copied the following from another user. I think I understand the use here. I just wanted to be sure this is solid.