Yep, so I’ve said ‘Always subscribe’ to that and can see a little ‘+’ sign next to the SHM condition. But shouldn’t I do that to the time condition instead of the SHM one?
Away lighting simulator not triggering automatically
can you try on line 42 use ''else ''should work or ''async if ‘’ in line 24, try this one first let me know
There is no if on line 24. The reason for the async if on 42 is leftover from trying to trouble shoot this piston before.
So basically replace the while loop with an ‘async if’…?
Could you just explain how and why you think that will help please?
If the previous statement includes a Wait task, all the remaining tasks in the previous statement, and any statement after that, will be delayed pleas read the link below and let me know if that work
https://wiki.webcore.co/Execution_Method
But I don’t want the actions after the wait task to be executed until the wait period has elapsed. Wouldn’t making the whole loop asynchronous mean that the piston will proceed to turn off the randomly selected light and send me a push notification even though the wait period hasn’t elapsed? If so, that’s not what I want. I do however want the if logic below the while loop to be processed even if the while loop is in the middle of it’s logic. I want the if logic to interrupt the while loop if a presence sensor arrives, exit out of the while loop and proceed with the actions in the if logic.
I am going to use this as a model for my vacation lighting. I noticed you arent repeating after line 35. Did you plan to only have it run once?
This Piston will continue to turn a random light on for a random number of minutes and then off again between sunset and 1am when we are away. When we get back the Piston breaks out of its loop.