The Ultimate Smart Home Automation Cookbook

Goodbye Automation is an indispensable tool for any smart home, ensuring peace of mind every time you step out. The essence of Goodbye Automation lies in its ability to take care of the essentials as you leave your home. No more second-guessing whether you turned off the lights or locked the doors; Goodbye Automation handles these tasks effortlessly. The beauty of this system is in its dual-trigger functionality: one manual and the other automatic, catering to different leaving scenarios.

When you opt for the manual trigger of Goodbye Automation, it’s as simple as using a virtual switch, which can be integrated with your voice assistant or linked to a button action. This allows you to initiate the automation with just a command or a press, turning off lights and other specified equipment. On the other hand, Goodbye Automation’s automatic trigger is activated when everyone leaves the home, and the hub switches to Away mode. This not only turns off unnecessary utilities but also ensures that your home is secure, locking doors and activating security systems.

Goodbye. Automation isn’t just a convenience; it’s a layer of security and efficiency. By customizing the actions performed during manual and automatic triggers, Goodbye Automation becomes more than just a routine facilitator; it becomes a guardian of your home. Whether you’re rushing out for work or leisure, Goodbye Automation gives you the assurance that your home is safe, secure, and energy-efficient in your absence.

Automation Details

Required Devices

  • Virtual Device
  • Smart Lighting
  • Smart Locks
  • Smart Thermostats

Triggers:

  • Virtual Switch Turns On
  • Mode Becomes Away

Conditions:

  • When Triggered Manual Only Turn Off Lights

Actions:

  • Turn Off All Lights
  • Lock All Doors
  • Lower Thermostat

Important: We are going to be using our All Lights group. Check out this automation to learn how to Create Groups.

We'll only cover a few options for this automation, but the possibilities are endless. You could implement your TVs, Garage door opener, or any device you want.

Novice
Novice

Hubitat

Goodbye Automation

The Official Documentation for Rule Machine

Setting Up the Automation

  1. First, go to Devices and then click Add Device.

    Hubitat Device Screen
  2. Click the Virtual button.

    Hubitat Add Device Screen
  3. Add the Device Name and Device Label.  Of course, you could enter the Device Name, but I like to use that to remind me what it is.  Then the label is the name of the device.

    Hubitat New Virtual Device Screen
  4. For the Device Type select Virtual Switch from the drop-down.

    Hubitat New Virtual Device Type
  5. Add the device to a Room and click Save Device.

    Hubitat New Virtual Device Save
  6. On the Device screen set Enable Auto off for 1 second and click Save Preferences.

    Hubitat Device Settings Screen
  7. Next, go to Apps and press Add Built-in App button.

    Hubitat App Screen
  8. Please scroll down to you see Rule Machine and select it.

    Hubitat Select App Screen
  9. Select Create New Room Lights Automation…

    Hubitat Rule Machine Screen
  10. Enter a name for the Rule and hit Enter.

    Hubitat Rule Machine Name Screen
  11. Select Trigger Event.

    Hubitat Rule Machine Select Trigger
  12. From the Capability drop-down, select Switch.

    Hubitat Rule Machine Select Capability Trigger
  13. Then, from the Switches drop-down, select the virtual switch we created earlier.

    Hubitat Rule Machine Select Switch Trigger
  14. From the Switch Action drop-down make sure it’s set to On.  Then click the Done with this Trigger Event.

    Hubitat Rule Machine Select Switch Trigger Finished
  15. From the Capability drop-down, select Mode.

    Hubitat Rule Machine Select Capability Trigger
  16. Select Away mode and click Done with this Trigger Event.

    Hubitat Rule Machine Select Mode Trigger
  17. On the Select Trigger Events page, click Don with Trigger Events.

    Hubitat Rule Machine Triggers Finished
  18. Select Actions to Run.

    Hubitat Rule Machine Select Actions
  19. Then click Create Conditions.

    Hubitat Rule Machine Actions Create Conditions
  20. From the Select capability for new Condition drop-down, select Mode.

    Hubitat Rule Machine Actions Select Capability
  21. Select Away mode and click the Done with this Condition button.

    Hubitat Rule Machine Actions Conditions Finished
  22. Then on the Manage or Create Conditions screen, click Done with Conditions.

    Hubitat Rule Machine Actions Conditions Finished
  23. Select the Green Plus Sign to Add New Action.

    Hubitat Rule Machine Actions Add Action
  24. In the Select Action Type drop-down, select Control Switches option.

    Hubitat Rule Machine Actions Select Action Type
  25. Then in the Select Which Action, select the Turn switches on/off option.

    Hubitat Rule Machine Actions Select Action
  26. Make sure the Turn on or off switch is set to Off.  Next, in the Switches to turn off drop-down, select the All Lights group.  Then click the Done with Action button.

    Hubitat Rule Machine Actions Select Switches
  27. Again,  select the Green Plus Sign to Add New Action.

    Hubitat Rule Machine Actions Add Action
  28. In the Select Action Type drop-down, select Conditional Actions.

    Hubitat Rule Machine Actions Select Action Type
  29. Then in the Select Which Action, select the IF Expression THEN option.

    Hubitat Rule Machine Actions Select Action
  30. In the Define Expression element drop-down, select the Condition we created earlier.

    Hubitat Rule Machine Actions Select Condition
  31. Then click Done with IF Expression THEN button.

    Hubitat Rule Machine Actions Done If Expression
  32. Again,  select the Green Plus Sign to Add New Action.

    Hubitat Rule Machine Actions Add Action
  33. In the Select Action Type drop-down, select Control Locks.

    Hubitat Rule Machine Actions Select Action Type
  34. Then in the Select Which Action, select the Lock/Unlock locks option.

    Hubitat Rule Machine Actions Select Action
  35. Ensure the Lock or Unlock locks are set to Lock and select the locks from the drop-down.  Then click the Done with action button.

    Hubitat Rule Machine Actions Select Locks
  36. Once again,  select the Green Plus Sign to Add New Action.

    Hubitat Rule Machine Actions Add Action
  37. In the Select Action Type drop-down, select Control Thermostats.

    Hubitat Rule Machine Actions Select Action Type
  38. Then in the Select Which Action, select the Set thermostats option.

    Hubitat Rule Machine Actions Select Action
  39. Select your thermostat, set the heating and cooling set points, and click the Done with action button.

    Hubitat Rule Machine Actions Set Thermostat
  40. Select END-IF and click the Done with Actions button.

    Hubitat Rule Machine Actions End If
  41. Then click Done to finish the Automation.

    Hubitat Rule Machine Automation Complete

Home Assistant

Goodbye Automation

The Official Documentation for Automation editor

Important: Home Assistant doesn't have any native way of handling Hub Modes, but you can read Hub Modes to learn how to set it up.

Setting Up the Automation

  1. First, we need to go to Settings and Devices & Services.

    Home Assistant Settings Screen
  2. At the top of the screen, click Helpers, then the blue Create Helper button at the bottom.

    Home Assistant Create Helper
  3. In the Create helper pop-up window, select Toggle.

    Home Assistant Create Helper
  4. Name the virtual switch.  Then click Create.

    Home Assistant Create Toggle
  5. Next, we need to go to Settings and Automations & Scenes.

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

    Home Assistant Automations Screen
  7. Choose Create new automation.

    Home Assistant Create Automation Screen
  8. Click Add Trigger.

    Home Assistant New Automation Screen
  9. From the list, select State.

    Home Assistant Trigger State
  10. In the Entity box select our virtual switch we created earlier and set the “To” option to On.  Then click the Add Trigger button.

    Home Assistant Trigger Virtual Switch On
  11. In the Entity box select Mode and set the “To” option to Away.  Then click the vertical ellipse in the upper right-hand corner and select Edit ID.

    Home Assistant Trigger Mode Away
  12. Add a Trigger ID. You can call it anything you like, but we’ll use changed_away.  Then click the Add Action button.

    Home Assistant Add Action
  13. From the Action type list, select Call service.

    Home Assistant Actions Call Service
  14. In the Service drop-down select Light: Turn off.  Click the Choose entity button and select our All Lights Group.  Then click Add Action.

    Home Assistant Actions Turn Off Group
  15. From the Action type list, select If-then.

    Home Assistant Actions If-Then
  16. Click the Add Condition button within the if statement and select Triggered by from the list.

    Home Assistant Actions Triggered By
  17. Select the ID we created earlier and then click the Add Action button.

    Home Assistant Actions Select Trigger ID
  18. From the list, select the Device option.

    Home Assistant Actions Add Action Device
  19. We will be adding three devices as follows:

    1. Select our locks and for the Action choose Lock.
    2. Then we’ll select our Smart Thermostat.
    3. We’ll set the Action to “Change My ecobee Current Mode option”.
    4. Set the Option to away.
    5. Then click the Add Action button outside the If-Statement.

    Home Assistant Actions Add Devices
  20. From the Action type list, select Call service.

    Home Assistant Actions Add Action Call Service
  21. In the Service drop-down select Input Boolean: Turn off.  Then click Choose entity and select our virtual switch we created earlier.

    Home Assistant Actions Select Virtual Switch
  22. At the bottom right corner, click the blue Save button.  Next, name the automation and click save again.

    Home Assistant Name and Save Automation