I've found a few threads about night lighting using Motion Lighting Apps and they all look great if I actually had reliable motion sensors setup. For now I want to force dimmers to a fixed 10% after sunset until sunrise unless current value > 10%. Later I'm itching to use motion to trigger different levels based on mode but that's a few months off right now.
If someone enters and hits the dimmer switch to request 100% I want the dimmer to go to 100% and not drop down to 10%. But if they request 0% when they leave I want it to bounce back to the 10% default until sunrise.
The thing I can't seem to wrap my head around is how do I get this sort of rule to run recursively (not just triggered at sunset/sunrise) but also not surprise granny with lights that drop to 10% while she's taking her seat on the throne.