You’re on holiday: one switch stops the water heaters and the air conditioners
One “Holiday mode” switch turns off the water heaters and air conditioners, runs a lamp through a plug at a slightly different time each evening and sends you a notification if the front door opens.
- Level
- Intermediate
- Active time
- 90–120 minutes
- Home Assistant required
- Yes
You pack the suitcases and at the last minute the round begins: is the water heater off, the air conditioners, the TV on standby, the lamps? That list is exactly what an automation is for. In Home Assistant there is one “Holiday mode” switch. You turn it on when you leave, and it stops everything that has no work to do in an empty house, watches the door and the water, and in the evening keeps up the look of a lived-in home. Before you return, the house warms itself up and the water heats.
What you will get
While the mode is on:
- both electric water heaters are off and aren’t heating water for anyone;
- all air conditioners are off, and the automatic climate control doesn’t start them;
- standby appliances on smart plugs (TV, console, chargers) have no power;
- the lighting is off, and one lamp on a smart plug comes on in the evening and goes off later, at a slightly different time every day;
- opening the front door sends you a notification;
- leak notifications keep working as before;
- at the set time before you return, the water heaters switch on and the air conditioners go back to the settings they had when you left.
What you need
- A ready-made kit: Vacation Mode Kit – Sonoff (metering plug + door and window sensor): the Sonoff S60TPF plug and the Sonoff SNZB-04PR1 sensor together.
- Sonoff S60TPF: a 16 A metering smart plug (Wi-Fi). One is for the simulation lamp, others for the standby appliances you want to switch off.
- Sonoff SNZB-04PR1: a Zigbee front door sensor, for the notification when it opens.
- A way to switch the water heaters on and off from Home Assistant: a relay or smart plug on each. At our place the big water heater is on a Shelly relay and the small one on an IKEA INSPELNING smart plug.
- Air conditioners visible in Home Assistant as
climate. - The Home Assistant mobile app for the notifications.
You need a Zigbee hub or Home Assistant with a Zigbee adapter.
Setup time: about two hours. Before you leave, try the mode for a day: turn it on in the evening and off in the morning.
How it works
The helper input_boolean “Holiday mode” is the master switch, and the helper input_datetime “Return” says when you get home. Five small automations watch them:
- Switching on. When the switch becomes
on: a snapshot of the air conditioner settings is saved, the water heaters and air conditioners are switched off, the standby appliance plugs are switched off, the lighting goes out and you get a notification about what was stopped. - Simulation. Every evening after sunset the lamp comes on with a random delay and goes off a few hours later, also with a random offset. A lamp that comes on at 19:00:00 every evening gives away that it’s automation.
- Front door. If the door opens, you get a notification.
- Preparing for your return. At the set time before “Return”, the water heaters switch on and the air conditioners go back to the saved settings.
- Coming home. When the mode is switched off, or when your phone enters the home zone, the standby appliances get power again and the mode switches off.
This way a longer absence doesn’t make you think about the appliances, and coming back doesn’t make you wait for the water heater to remember.
How it is at our place
The mode builds on things Home Assistant already does for us. One automation sends a notification when we are both away from home for more than 25 minutes and the front door (Aqara U200) is unlocked. Another sends a critical notification if the front door opens while the security panel is in “away” mode. The water heaters, air conditioners and lighting are controlled by Home Assistant, and the switch gathers them in one place.
Steps
- Create a Toggle helper “Holiday mode” (Settings → Devices & services → Helpers). You should get
input_boolean.vacation_mode(example name). - Create a Date and/or time helper “Return” with a date and time (
input_datetime.vacation_return). - Check that you can switch both water heaters, the air conditioners and the standby appliance plugs on and off from Home Assistant.
- Check that the lamp plug and the door sensor are visible in Home Assistant.
- Create the automations below and replace the example entity and notification names with your own.
- Turn the mode on for a day and look at the automations in Traces.
All entity names and times are examples.
alias: On holiday - switching on
mode: single
triggers:
- trigger: state
entity_id: input_boolean.vacation_mode
to: "on"
actions:
- action: scene.create
data:
scene_id: climate_before_vacation
snapshot_entities:
- climate.bedroom
- climate.living_room
- climate.kids_bedroom
- action: switch.turn_off
target:
entity_id:
- switch.main_water_heater # replace
- switch.kitchen_water_heater # replace
- switch.tv_plug # standby appliances, replace
- switch.console_plug # replace
- action: climate.set_hvac_mode
target:
entity_id:
- climate.bedroom
- climate.living_room
- climate.kids_bedroom
data:
hvac_mode: "off"
- action: light.turn_off
target:
entity_id: all
- action: notify.mobile_app_telefon # replace with your phone
data:
title: Holiday mode
message: The water heaters, air conditioners and standby appliances are switched off.
alias: On holiday - lamp simulation
mode: single
triggers:
- trigger: sun
event: sunset
conditions:
- condition: state
entity_id: input_boolean.vacation_mode
state: "on"
actions:
- delay:
minutes: "{{ range(0, 31) | random }}"
- action: switch.turn_on
target:
entity_id: switch.living_room_lamp_plug
- delay:
hours: 3
minutes: "{{ range(0, 31) | random }}"
- action: switch.turn_off
target:
entity_id: switch.living_room_lamp_plug
alias: On holiday - door open
mode: single
triggers:
- trigger: state
entity_id: binary_sensor.front_door_opening
to: "on"
conditions:
- condition: state
entity_id: input_boolean.vacation_mode
state: "on"
actions:
- action: notify.mobile_app_telefon
data:
title: The front door is open
message: Holiday mode is on.
alias: On holiday - preparing for return
mode: single
triggers:
- trigger: time
at:
entity_id: input_datetime.vacation_return
offset: "-03:00:00" # how many hours before returning
conditions:
- condition: state
entity_id: input_boolean.vacation_mode
state: "on"
actions:
- action: switch.turn_on
target:
entity_id:
- switch.main_water_heater # replace
- switch.kitchen_water_heater # replace
- action: scene.turn_on
target:
entity_id: scene.climate_before_vacation
- action: notify.mobile_app_telefon
data:
title: The house is getting ready for your return
message: The water heaters are on, the air conditioners are back to their previous settings.
alias: On holiday - coming home
mode: single
triggers:
- trigger: state
entity_id: input_boolean.vacation_mode
to: "off"
- trigger: zone
entity_id: person.ti # replace
zone: zone.home
event: enter
actions:
- action: switch.turn_on
target:
entity_id:
- switch.tv_plug # replace
- switch.console_plug # replace
- action: input_boolean.turn_off
target:
entity_id: input_boolean.vacation_mode
The coming-home automation fires both on manual switch-off and on entering the home zone. In both cases the switch becomes off, and the standby appliances get power.
Checking the result
- You turn the switch on: the water heaters, air conditioners and standby appliance plugs switch off, the lighting goes out and a notification arrives.
- After sunset the lamp comes on with a different delay each day and goes off later.
- You open the front door: the notification arrives while the mode is on.
- You set “Return” a few hours ahead and reduce the offset: the water heaters switch on, and the air conditioners come back with the mode and temperature from when you left.
- You turn the switch off: the standby appliances switch on and the door notification stops.
- The door sensor is
unavailable: no notification. Watch its battery.
If it doesn’t work
- The lamp doesn’t come on → the plug is off Wi-Fi → check its state in Home Assistant.
- No notification → the phone has no internet or is in “do not disturb” mode → check the app’s notifications.
- The lamp stays on all night → Home Assistant restarted during the delay → add an automation that switches the plug off at a set time while the mode is on.
- The water heater doesn’t switch on before you return → the relay or plug is offline, or “Return” is an empty date → check them in Home Assistant.
- The air conditioners don’t come back → the scene
scene.climate_before_vacationdoesn’t exist → check it in Developer tools → States; reloading scenes removes it.
How to switch it off
You turn the switch off. The plugs, the lamp and the water heaters keep working manually too, and the automations stop having any effect.
Notifications depend on the phone’s internet and on Home Assistant.
Sources and verification status
The automations for the unlocked-door notification and the security panel were read in Marto’s Home Assistant on 23.11.2026 (read-only). The examples use sample entity names.
Need a hand?
We can set up and install everything in this project. In some regions we install it ourselves — ask us.
Contact us


