Here’s how to create an automation that turns on your smart lights at sunset: Navigate to Configuration > Automations. Click on Add Automation. Give your automation a name, like “Turn on Lights at Sunset.”. Set the trigger to Sun and select Sunset. Set the action to Turn On and select your smart light. Save the automation.