Time-dependant lighting

I have motion sensors controlling some of my lights. The dimmable lights are controlled through my Vera Plus, whilst the others are controlled via association, because of the annoying delay through controllers. However… how do I set up my scenes (or in other way) to set light to say 40% (on movement detecion) in my hallway from sunset until sunrise, and 80% during daytime, again on movement detected? When no movement is detected (off from motion sensor) it is set to 1%.

Try the Reactor plug-in. It can handle the logic of when, and it can execute scenes to turn on/off lights set to certain levels.

Other option is pleg.