Motion Sensor did not change in the last 10 minutes
And
Time is after sunset
Turn off lights…
How often does the piston is evaluated to check if the condition is true or false?
If I test the conditions manually it works…otherwise the Turn off never is executed.
Try maybe changing piston so it works like this
If
Motion changes to inactive
And
Time is after sunset
Then
Wait 10 minutes
Turn off light
You will see a countdown timer in the piston dashboard which is easy way to see if you piston was triggered.
My piston are setup as such
If
Motion is active
When true:
Only if its between sunrise and sunset
Turn on light and set to 80%
Only if its between sunrise and sunset
Turn on light and set to 40%