The Ultimate Smart Home Automation Cookbook

The festive season calls for a special touch, and Outdoor Holiday Lighting Automation is the perfect solution to bring that festive cheer with ease. Rather than the daily routine of plugging in numerous lights around your home, let Outdoor Holiday Lighting Automation take the reins. This smart home feature is designed to simplify your holiday preparations, allowing you to enjoy the season without the hassle.

Outdoor Holiday Lighting Automation can be programmed to illuminate your home’s exterior at a scheduled time each evening, creating a warm, welcoming glow that captures the holiday spirit. No more braving the cold or rushing around at dusk to turn on your displays. With Outdoor Holiday Lighting Automation, your home will automatically become a festive wonderland as the sun sets.

Embrace the joy of the season with Outdoor Holiday Lighting Automation. It’s not only a smart way to manage your holiday lighting; it’s a brilliant strategy to enhance the beauty and security of your home during the most wonderful time of the year.

Automation Details

Required Devices

  • Smart Plugs

Triggers:

  • Sunset
  • Midnight

Conditions:

  • Not 12am
  • Not December 25th

Actions:

  • Turn Holiday Lights On
  • Turn Holiday Lights Off

Warning: Every smart plug is different so be sure not to overload the maximum amps of yours.

Novice
Novice

Hubitat

Outdoor Holiday Lighting Automation

The Official Documentation for Rule Machine

Setting Up the Automation

  1. First, we need to create a new group to control all the smart plugs as one switch and share it with our voice assistant to enable voice control.

    Outdoor Holiday Lighting Groups Hubitat
  2. Next, go to Apps and click Rule Machine.

    Hubitat App Screen
  3. Select Create New Rule.

    Hubitat Rule Machine Screen
  4. Enter a name for the Rule and hit Enter. I’m going to call it Outdoor Holiday Lighting.

    Hubitat Rule Machine Name Screen
  5. Select Trigger Event.

    Hubitat New Rule Menu
  6. From the Capability drop-down, select Certain Time.

    Hubitat Rules Triggers Capabilities
  7. Set the Specific Time to Sunset and click the Done With this Trigger Event.  Then we will add one more Certain Time Tigger.

    Hubitat Tigger Event Screen
  8. Set the Trigger Event as:

    1. Set the Specific Time to A specific time.
    2. Set the time to 12 am.
    3. Next, click Done with this Trigger Event button and then click the Done with Tigger Events button.

    Hubitat Tigger Event Screen
  9. From the rule main menu screen, select Create Conditions.

    Hubitat New Rule Menu
  10. From the Capability drop-down, select Time of day.

    Hubitat Rules Condition Capabilities
  11. Create the condition with the following properties:

    1. Set the Starting at to A specific time.
    2. The start time to 12am.
    3. Turn on NOT this Condition.
    4. Then click the Done with this Condition button.

    Hubitat Manage or Create Conditions Screen
  12. We are going to create one more condition.  Select the On a day capability for the list.

    Hubitat Rules Condition Capabilities
  13. Create the condition with the following properties:

    1. On the Select date type, select mm-dd for Month-Day.
    2. In this Month set to December.
    3. On this date, set to 25.
    4. Turn on NOT this Condition.
    5. Then click the Done with this Condition button and then click on the Done with Conditions button.

    Hubitat Manage or Create Conditions Screen
  14. Next, Select Actions to Run.

    Hubitat New Rule Menu
  15. On the Actions screen click the plus sign to Create New Action.

    Hubitat Actions Screen
  16. Set the new action as follows:

    1. Set Action Type to Conditional Actions.
    2. Set the Which Action to IF Expression THEN.
    3. Set the Expression Element to our NOT Time is 12am condition we created earlier.
    4. Then click the Done with IF Expression THEN button.

    Hubitat Create New Action Screen
  17. From the Action Screen, click the plus sign again to Create a New Action.

    Hubitat Actions Screen
  18. Set the following Action settings:

    1. In the Select Action Type drop-down, select Control Switches option.
    2. In the Select Which Action, select the Turn switches on/off option.
    3. Next, in the Switches to turn on drop-down, select our Outside Holiday Lights group.
    4. Make sure the Turn on or off switch is set to On.
    5. Then click the Done with Action button.

    Hubitat Create New Action Screen
  19. Back on the Action Screen, click else, and then the plus sign again to Create a New Action.

    Hubitat Actions Screen
  20. Set the new action as follows:

    1. Set Action Type to Conditional Actions.
    2. Set the Which Action to IF Expression THEN.
    3. Set the Expression Element to our NOT On December 25 condition we created earlier.
    4. Then click the Done with IF Expression THEN button.

    Hubitat Create New Action Screen
  21. From the Action Screen, click the plus sign again to Create a New Action.

    Hubitat Actions Screen
  22. Set the following Action settings:

    1. Select the Control Switches option in the Select Action Type drop-down.
    2. Select the Turn switches on/off option in the Select Which Action.
    3. Next, in the Switches, to turn off drop-down, select our Outside Holiday Lights group.
    4. Ensure the Turn on or off switch is set to Off.
    5. Then click the Done with Action button.

    Hubitat Create New Action Screen
  23. Back on the Actions Screen, Click END-IF twice to close out both conditional statements. Then click the Done with Actions button.

    Hubitat Actions Screen
  24. Finally, back on the Rule Main Menu click the Done button to finish up the rule.

    Success: That’s It! You have successfully automated your outdoor holiday lights.

    Hubitat New Rule Menu

Home Assistant

Outdoor Holiday Lighting Automation

The Official Documentation for Automation editor

Setting Up the Automation

  1. First, we need to create a new group to control all the smart plugs as one switch.

    Outdoor Holiday Lighting Group Home Assistant
  2. Next, we need to go to Settings and Automations & Scenes.

    Home Assistant Settings Screen
  3. Click the blue Create Automation button.

    Home Assistant Automations Screen
  4. Choose Create new automation.

    Home Assistant Create Automation Screen
  5. Click Add Trigger.

    Home Assistant New Automation Screen
  6. From the list, select Sun.

    Home Assistant Trigger Sun
  7. Select Sunset for the event, then click the vertical ellipsis and select Edit ID.

    Home Assistant Sunset Trigger
  8. Set the Trigger ID to sunset.

    Home Assistant Sunset Trigger ID
  9. Select Time from the drop-down list.

    Home Assistant Trigger Time
  10. Keep the Mode set to Fixed time and set the At time to 12am.  Then, click the Add Condition button.

    Home Assistant Time Trigger
  11. From the Condition drop-down, select Not.

    Home Assistant Condition Not
  12. Click the Add Condition button and select Template from the list in the Not Condition.

    Home Assistant Condition Template
  13. In the Value Template box paste {{ (now().month, now().day) == (12, 25) }}.

    Home Assistant Condition Template
  14. Select If-then from the add action list.

    Home Assistant Add Action
  15. In the condition list, choose Triggered by.

    Home Assistant If-then Condition
  16. Select our sunset Trigger ID and then click the Add Action button.

    Home Assistant If-then Condition Sunset
  17. From the Add Action list, select Call service.

    Home Assistant If-then Action
  18. Set the service call as follows:

    1. Select Switch: Turn on for the service.
    2. Then click the Choose entity button.
    3. Next select our Outside Holiday Lights group from earlier.
    4. Then click add else.  In the Add Action we are going to select another Call Service.

    Home Assistant If-then Action Call Service
  19. Finally, set the service call as follows:

    1. Select Switch: Turn off for the service.
    2. Then click the Choose entity button.
    3. Next select our Outside Holiday Lights group from earlier.
    4. Then click the Save button.

    Home Assistant If-then Else Action Call Service
  20. Give the automation a name, in this case, Outdoor Holiday Lighting.

    Success: That’s It! You have successfully automated your outdoor holiday lights.

    Home Assistant Automation finished

Amazon Alexa

Outdoor Holiday Lighting Automation

The Official Documentation for Alexa Routines

Alexa routines are basic. We have to setup 2 routines to handle on and off and their is no way to select a date.

Setting Up the Automation

  1. First, we need to create a new group to control all the smart plugs as one switch.

    Outdoor Holiday Lighting Group Alexa
  2. Next, Click the More button at the bottom right of the screen.

    Alexa Home Screen
  3. Click the Routines button.

    Alexa More Menu
  4. Click the plus sign to add a new routine.

    Alexa Routines Screen
  5. Click the plus sign by Enter routine name.

    Alexa New Routine Screen
  6. Give your Routine a name, and click Next.

    Alexa Routine Name Screen
  7. Next, click Add an event.

    Alexa Routine Main Menu
  8. From the list of Events, select Schedule.

    Alexa Routine Event Menu
  9. Select Sunset on the Event Schedule screen.

    Alexa Routine Schedule Event Menu
  10. You could adjust the offset and the repeat values as you like.  Then click Next.

    Alexa Routine Schedule Sunset Menu
  11. Next, click the Add an action link.

    Alexa Routine Main Menu
  12. On the Add Action menu, select Smart Home.

    Alexa Routine Action Menu
  13. Then, select Groups from the Smart Home menu.

    Alexa Routine Action Smart Home Menu
  14. Next, select our Outside Holiday Lights group we created earlier.

    Alexa Routine Action Select Group Menu
  15. On the Outside Holiday Lights screen, select Power On and click Next.

    Alexa Routine Action Select Group Power
  16. Finally, click Save to finish the Routine.

    Alexa Routine Main Menu
  17. Since Alexa has no conditional logic, you will have to create another Routine to turn the lights off.

    1. Select Schedule and use time instead of sunset for the Event.
    2. Then, for the action, turn off the group.

    Success: That’s It! You have successfully automated your outdoor holiday lights.

    Alexa Routine Main Menu