I have a number of windows with Christmas lights in them. I would like to use smart plugs and home assistant to automate them turning on and off during the winter season since I’m pretty lazy when it comes to decorating. This should be pretty straight forward to do once we have the current month sensor setup in home assistant to use as a condition.
- Turn on Christmas lights in the months of November and December before sunset
- Turn off at set time
I plan on using my current month numeric sensor, automate the Christmas light smart plugs to turn on at night only during certain months.
The turn off automation has no conditions needed, just the trigger time and the devices to activate.
The turn on automation triggers 30 minutes before sunset with a condition on the month being above 10 and below 13 (so months 11 and 12, November and December). This is followed up with the devices to turn on.
This is pretty easy to setup once the current month numeric sensor is configured in home assistant. This simple automation just works (TM) and lets me leave up Christmas lights in my windows without needing to take them down (and so I can use them at other times too).