I have some driveway lamp posts that are on a schedule so they come on to a 30% level for a few hours each evening.
When my driveway motion detector is tripped, AND it is night time, I have the lights come on to 100%.
What I want to do is, after a few minutes(10?), have the lights return to whatever state they were in before the motion… 30%, off, or 100% (if, say, they had been turned on manually).
How do I retrieve the current level (LoadLevelStatus?) and use it to return to that level after timeout?