
Updated on February 15, 2026
Knowing how to shut down Home Assistant safely is one of the most critical—and often overlooked—maintenance tasks. While it might seem as simple as flipping a switch, an improper shutdown, especially on hardware like a Raspberry Pi, is a recipe for disaster. It can lead to database corruption or even a fried SD card. Since the Home Assistant interface was redesigned years ago, the location and methods for a proper shutdown have evolved. This definitive 2026 guide will walk you through all the correct ways to stop and power down your system, ensuring the integrity of your smart home hub.
Host Shutdown vs. Core Stop: Know The Difference
Before we dive into the methods, it’s crucial to understand the two main actions you can take. Mixing them up is the root cause of many headaches.
- Stopping Home Assistant Core: This action only stops the Home Assistant software itself. The underlying operating system (like Raspberry Pi OS, Debian, etc.) keeps running. This is useful for performing OS-level maintenance without having to completely power down the hardware.
- Shutting Down the Host (Poweroff Host): This is the full shutdown. It stops both the Home Assistant software and the operating system. The machine (Raspberry Pi, NUC, server) will completely power off and stop drawing power. This is the procedure you must follow anytime you need to physically unplug your server.
How to Shut Down Home Assistant in 2026: All The Methods
In 2026, you’ve got a few rock-solid ways to manage your system’s power state. Here are the most important ones, ranked by my recommendation.
Method 1: From the Web Interface (The Recommended Way)
For the vast majority of users, this is the safest and most straightforward method. The Home Assistant UI provides direct access to the system’s power controls.
- Navigate to Settings > System.
- In the top-right corner, click the power icon.
- A menu will pop up with several options. The two we care about are:
- Restart Home Assistant: Stops and starts just the Core software.
- Shut down system: Performs a complete and safe shutdown of the host. This is the option you want for a total Poweroff Host.
Always use “Shut down system” before yanking the power cord from your device to prevent any kind of data corruption.
Method 2: Using Services (For Scripts & Automations)
If you want to create custom dashboard buttons or automate shutdowns, services are your best friend. You can call them from scripts or automations.
Stop Home Assistant Core
This service only stops the Home Assistant application, leaving the OS running. The service is homeassistant.stop.
alias: 'Script: Stop HA Core Only'
sequence:
- service: homeassistant.stop
data: {}
mode: single
Shut Down the Host System (Home Assistant OS Shutdown)
This service is the equivalent of hitting the “Shut down system” button in the UI. It powers down both Home Assistant and the underlying OS. The service is hassio.host_shutdown. (Don’t let the old `hassio` name fool you; it’s the correct one for modern Home Assistant OS installs).
alias: 'Script: Full System Shutdown'
sequence:
- service: hassio.host_shutdown
data: {}
mode: single
Pro Tip: Before running any restart or shutdown script, it’s always a good practice to validate your configuration from Settings > System > Check configuration to ensure Home Assistant will be able to start back up without any issues.
Method 3: Via the Command Line (For Advanced Users)
If you have terminal access, either via SSH or by using the “Terminal & SSH” Add-on, you can use Home Assistant’s CLI (Command Line Interface) commands for more direct control.
- To stop only the Core:
ha core stop - To completely shut down the Host:
ha host shutdown - To restart the Core:
ha core restart - To reboot the Host:
ha host reboot
These commands are incredibly useful for remote maintenance and troubleshooting, especially when the web UI is inaccessible.
Shutdown Methods: A Quick Comparison Chart
To help you quickly decide which method to use in any given situation, I’ve put together this handy comparison table:
| Method | Difficulty Level | Primary Use Case | Risk (If Misused) |
|---|---|---|---|
| Web Interface (GUI) | Very Low | Everyday shutdowns and restarts. Safest for beginners. | Low. It’s hard to mess this up. |
| Services (Scripts) | Low | Automations, custom buttons, scheduled shutdowns. | Medium. A logic error in an automation could cause unexpected reboots. |
| Terminal Commands (SSH) | High | Advanced maintenance, error recovery, remote management. | High. The wrong command can seriously impact your system. |
How to Schedule an Automatic Shutdown or Restart
Thanks to automations, you can schedule reboots to keep the system fresh or shut it down at specific times. For example, a weekly middle-of-the-night reboot can help free up memory and prevent performance issues.
Here’s a simple automation that reboots Home Assistant every Sunday at 4:00 AM:
alias: 'Maintenance: Weekly Reboot'
description: 'Reboots the Home Assistant host every Sunday at 4:00 AM'
trigger:
- platform: time
at: '04:00:00'
condition:
- condition: time
weekday:
- sun
action:
- service: homeassistant.restart
data: {}
mode: single
If you wanted a full shutdown instead of a reboot, you would simply change the service from homeassistant.restart to hassio.host_shutdown.
Platform-Specific Considerations (HAOS, Docker, VM)
The shutdown method can have different implications depending on where you’ve installed Home Assistant.
- Home Assistant OS (Raspberry Pi, Green, Yellow): Using
ha host shutdownor its GUI equivalent is non-negotiable. It safely shuts down the entire operating system, which is critical for preventing SD card corruption. If you’re running a Raspberry Pi, make sure you’re using the best possible microSD card to minimize these risks. - Docker Installation: When you run
ha core stopor shut down from the UI (if you’re using the Supervised install), you’re only stopping the Home Assistant container. The host machine will remain on. To power down the physical server, you’ll need to access the host’s terminal and runsudo poweroff. - Virtual Machine (Proxmox, VirtualBox, Synology): Similar to Docker, a host shutdown from within Home Assistant will power down the “guest” OS (the VM), but not the hypervisor. You’ll need to manage the shutdown of the main server from your virtualization software’s interface.
Troubleshooting Common Shutdown & Restart Issues
- Home Assistant won’t start after a reboot: The most common culprit is a syntax error in your
configuration.yaml. Always check your configuration before restarting. If the system won’t boot, you’ll need to access your files via Samba or SSH to check the logs and fix the error. - Database corruption: This usually happens because of power outages or unplugging the device without a safe shutdown. Prevention is the best cure here. If it’s too late, your only way out is to restore from a backup. I strongly recommend setting up automatic backups, for instance, with the Google Drive backup integration for Home Assistant.
Bottom line: while advanced methods exist, the most reliable and recommended way to shut down Home Assistant in 2026 is still through its graphical interface. Always take the extra few seconds to do it correctly—your long-term stability and sanity will thank you for it.
