πŸ’‘ Sensor Light - Motion Sensor - Door Sensor - Sun Elevation - LUX Value - Scenes - Time - Light Control - Device Tracker - Night Lights

@Rodocop

You may need 2 automations.

Try my :high_brightness: Smart Light - Entity - Sun Elevation - Ambient & Time Triggers Blueprint for this. Just set the OFF Time for 23:59:59. So use the sun elevation Sun Elevation Falling - ON to turn the lights ON and then the OFF Time to turn them OFF at 23:59:59. Enable night lights and use the Enable entity state option and then use your motion sensor for the Night Lights - Entity State. In night light control select If lights are ON, adjust the lights when crossing over & Use cross over time delay from night lights to normal lights and set your Cross Over - Time Delay.

Now between sun set and 23:59:59 your light will come ON, when your motion sensor is detected it will apply the night light settings. Then when motion is cleared and after your Cross Over - Time Delay your light will go back to normal lights.

This automation will cover between sunset and midnight.

Now for this part… use this blueprint. Set up sun elevation and time but now the time is set to 12 am to a time past sunrise like 10am. Because both the sun elevation and time must be true for this blueprint to work it will only be active between 12am and your sunrise setting. Then just use your motion sensor as the trigger with the lights you would like ON. Once motion clears it will turn them OFF.

This automation will cover between midnight and sunrise.

Blacky :grinning: