Ok, there are MANY ways to do this and someone else may have a better/easier/creative suggestion. I’m not new to webcore or coding, but certainly I am still learning. Now, I have NOT tested this, but I’m suggesting a boolean switch, First_Pass.
Create a boolean variable First_Pass (or whatever you want to name it). Don’t assign it a value here.
In your first DO, make this change…
DO
IF First_Pass is true
THEN
Wait 10 Minutes;
Turn on;
Set level to 10%;
Set variable First_Pass = False;
END IF
And add this as the last command in your piston (outside of your first IF)…
every day, at midnight
DO
Set variable First_Pass = True;
Now, you can initialize First_Pass to True in the Variables area after you save your piston. Or, you can wait unit after midnight and it will be set for you.
Also, and this is just an observation…your first trigger statement in your IF :
“Motion Sensor 6 illuminance is less than or equal to 8lux”
How many times a day will the illuminance of that sensor be less than or equal to 8 lux? Possibly several. So, unless I am missing something, your piston may run several times a day and not really do anything after the first run. Now, you may have other things that are acting on your lights and you may need it this way. Just food for thought.