Don’t run Home Assistant in Docker, do this instead


If you self-host apps, you’ve probably used Docker. It’s clean, efficient, and flexible, allowing you to run multiple different services separately on the same machine. You can run Home Assistant in Docker, but if you do, you may be missing out.

 Docker logo placed over a laptop computer keyboard.


Docker vs. Virtual Machines What’s Best for Your Homelab?

Sometimes you need a bulldozer, and sometimes a shovel.

What you lose by running Home Assistant in Docker

There’s an app for that

Illustration of the Docker logo, featuring a stylized whale carrying containers and a NAS server. Credit: Lucas Gouveia/How-To Geek | pixalane/Aozorastock

There’s a key distinction to get out of the way first here. Running Home Assistant can mean different things. It can mean running the core application, but in more general terms, it can mean using Home Assistant and its associated integrations, apps, and custom components to control and automate your smart home.

You can run the core Home Assistant software in Docker without any issues whatsoever. However, if you do so, you lose access to some of the useful tools that make Home Assistant so powerful.

The biggest thing you’ll be missing is easy access to apps (formerly known as add-ons). Apps are useful pieces of software that run alongside Home Assistant rather than within it. You can use these apps to add additional features to Home Assistant.

Popular apps include Zigbee2MQTT, which lets Home Assistant control your Zigbee smart home devices, Node-RED, which lets you create automations using a visual flow-based system, and ESPHome, which lets you manage DIY hardware built with ESP32 microcontrollers.

These apps are essentially Docker containers of their own that are managed by the Home Assistant Supervisor. This means you can add them and configure them directly from Home Assistant without having to touch a Docker Compose file, map volumes, or expose ports.

How to run HAOS without using your whole machine

HAOS runs well in a VM

The GEEKOM IT15 mini PC on a desk with a keyboard and ereader. Credit: Andrew Heinzman/How-To Geek

The alternative to running Home Assistant in Docker is to use Home Assistant Operating System (HAOS). With HAOS, the background Supervisor service takes care of managing your apps for you. This means that you can install them directly from within Home Assistant and they’ll start working as soon as they’re installed.

For most users, this is a far simpler option. HAOS is simple to use, there’s a built-in app store, and you can update your apps from the UI with a single click. Most of the Home Assistant documentation is written with an HAOS installation in mind too, so it’s far easier to follow steps you find in the official guides.

Docker is great for separating different software running on a single machine, but if you want to run HAOS and host other services on the same hardware, you still can. HAOS runs perfectly well in a virtual machine; I run HAOS in a VM in Proxmox on my mini PC, along with multiple other services.

Beelink Mini S13 Pro PC.

CPU

Celeron FCBGA1264 3.6GHz

Graphics

Integrated Intel Graphics 24EUs 1000MHz

The Beelink Mini S13 Pro desktop PC is a ultra-compact computer powered by the Intel N150 processor. Shipping with 16GB of DDR4 RAM and a 500GB SSD, this micro desktop is perfect for a variety of workloads. From running simple server programs to replacing your old PC, the Beelink S13 Pro is up to the task. 


What Docker offers that HAOS can’t

There are some benefits

That’s not to say that running Home Assistant in Docker is a bad choice for everybody. If you’re already comfortable with Docker and all its ins and outs, there are some reasons why you might prefer to run Home Assistant in Docker.

Running apps in their own Docker containers does offer some benefits. Since your apps are running in their own containers, if Home Assistant goes down or you need to restart it, your apps will keep running. If you use Node-RED for automations outside of Home Assistant, for example, you don’t want it to go down every time Home Assistant does.

Docker also makes everything more portable. Since your entire setup is defined by a single Docker Compose file, if your server dies, all you need is that one file and your configuration folder, and you can bring everything back online exactly how it was.

For most users, however, the ease of use of running HAOS outweighs the benefits of using Docker. Unless you’re already running other services in Docker, you’ll probably have a less stressful time running HAOS.

Migrating from Docker is possible

You don’t need to start from scratch

The upload backup and Home Assistant Cloud options for restoring a backup in Home Assistant.

If you’re already running Home Assistant in Docker and you’re regretting your decision, there’s nothing to stop you from switching to HAOS instead. You won’t have to start again completely from scratch.

HAOS lets you restore from a backup, so you can take a backup of your current Home Assistant instance in Docker. You can then set up HAOS and restore from your backup. This will restore your configuration, integrations, dashboards, and more.

Once HAOS is up and running, you can install the Home Assistant apps that you were previously running in their own containers. You may have to make a few additional tweaks here and there, but it should be much faster than starting over from scratch.


HAOS is the easier option

Docker is popular for a reason, but it’s not always the perfect solution. If you want the best experience using Home Assistant for the least amount of effort, HAOS is the way to go.



Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews


Google Maps has a long list of hidden (and sometimes, just underrated) features that help you navigate seamlessly. But I was not a big fan of using Google Maps for walking: that is, until I started using the right set of features that helped me navigate better.

Add layers to your map

See more information on the screen

Layers are an incredibly useful yet underrated feature that can be utilized for all modes of transport. These help add more details to your map beyond the default view, so you can plan your journey better.

To use layers, open your Google Maps app (Android, iPhone). Tap the layer icon on the upper right side (under your profile picture and nearby attractions options). You can switch your map type from default to satellite or terrain, and overlay your map with details, such as traffic, transit, biking, street view (perfect for walking), and 3D (Android)/raised buildings (iPhone) (for buildings). To turn off map details, go back to Layers and tap again on the details you want to disable.

In particular, adding a street view and 3D/raised buildings layer can help you gauge the terrain and get more information about the landscape, so you can avoid tricky paths and discover shortcuts.

Set up Live View

Just hold up your phone

A feature that can help you set out on walks with good navigation is Google Maps’ Live View. This lets you use augmented reality (AR) technology to see real-time navigation: beyond the directions you see on your map, you are able to see directions in your live view through your camera, overlaying instructions with your real view. This feature is very useful for travel and new areas, since it gives you navigational insights for walking that go beyond a 2D map.

To use Live View, search for a location on Google Maps, then tap “Directions.” Once the route appears, tap “Walk,” then tap “Live View” in the navigation options. You will be prompted to point your camera at things like buildings, stores, and signs around you, so Google Maps can analyze your surroundings and give you accurate directions.

Download maps offline

Google Maps without an internet connection

Whether you’re on a hiking trip in a low-connectivity area or want offline maps for your favorite walking destinations, having specific map routes downloaded can be a great help. Google Maps lets you download maps to your device while you’re connected to Wi-Fi or mobile data, and use them when your device is offline.

For Android, open Google Maps and search for a specific place or location. In the placesheet, swipe right, then tap More > Download offline map > Download. For iPhone, search for a location on Google Maps, then, at the bottom of your screen, tap the name or address of the place. Tap More > Download offline map > Download.

After you download an area, use Google Maps as you normally would. If you go offline, your offline maps will guide you to your destination as long as the entire route is within the offline map.

Enable Detailed Voice Guidance

Get better instructions

Voice guidance is a basic yet powerful navigation tool that can come in handy during walks in unfamiliar locations and can be used to ensure your journey is on the right path. To ensure guidance audio is enabled, go to your Google Maps profile (upper right corner), then tap Settings > Navigation > Sound and Voice. Here, tap “Unmute” on “Guidance Audio.”

Apart from this, you can also use Google Assistant to help you along your journey, asking questions about your destination, nearby sights, detours, additional stops, etc. To use this feature on iPhone, map a walking route to a destination, then tap the mic icon in the upper-right corner. For Android, you can also say “Hey Google” after mapping your destination to activate the assistant.

Voice guidance is handy for both new and old places, like when you’re running errands and need to navigate hands-free.

Add multiple stops

Keep your trip going

If you walk regularly to run errands, Google Maps has a simple yet effective feature that can help you plan your route in a better way. With Maps’ multiple stop feature, you can add several stops between your current and final destination to minimize any wasted time and unnecessary detours.

To add multiple stops on Google Maps, search for a destination, then tap “Directions.” Select the walking option, then click the three dots on top (next to “Your Location”), and tap “Edit Stops.” You can now add a stop by searching for it and tapping “Add Stop,” and swap the stops at your convenience. Repeat this process by tapping “Add Stops” until your route is complete, then tap “Start” to begin your journey.

You can add up to ten stops in a single route on both mobile and desktop, and use the journey for multiple modes (walking, driving, and cycling) except public transport and flights. I find this Google Maps feature to be an essential tool for travel to walkable cities, especially when I’m planning a route I am unfamiliar with.


More to discover

A new feature to keep an eye out for, especially if you use Google Maps for walking and cycling, is Google’s Gemini boost, which will allow you to navigate hands-free and get real-time information about your journey. This feature has been rolling out for both Android and iOS users.



Source link