Loading...

Home Assistant42

Updating Home Assistant in Docker Safely: My Workflow With Backup, Test and Rollback

Updating Home Assistant in Docker Safely: My Workflow With Backup, Test and Rollback

How I update a Docker-based Home Assistant to a new version without breaking my smart home: full backup, update custom components first against the old core, recreate the container instead of in-place, note the image ID for a real rollback, and a post-update checklist.

Shelly in Home Assistant: Local Switching & Energy Metering

Shelly in Home Assistant: Local Switching & Energy Metering

How I run Shelly Plus 1PM/2PM behind my wall switches in Home Assistant — fully local switching plus per-channel energy metering, no cloud, physical switch kept.

A "Last Motion" Sensor in Home Assistant: Per-Room Timestamps with input_datetime

A "Last Motion" Sensor in Home Assistant: Per-Room Timestamps with input_datetime

A reusable Home Assistant pattern: one input_datetime helper per motion sensor that records the exact time of the last movement — the data foundation for presence heuristics and a tidy "last seen" dashboard, no expensive mmWave sensors needed.

Motion Light With Time-of-Day Brightness in Home Assistant: the choose Pattern (30% Night, 70% Morning, 100% Day)

Motion Light With Time-of-Day Brightness in Home Assistant: the choose Pattern (30% Night, 70% Morning, 100% Day)

A complete Home Assistant motion-light recipe with a choose: block that dims by time of day, a sensible off-delay, and the one tweak that actually stops the light flickering on and off.

KNX Thermostats Drop to 'Standby' After Every Home Assistant Restart — A Startup Automation Fix

KNX Thermostats Drop to 'Standby' After Every Home Assistant Restart — A Startup Automation Fix

After every Home Assistant restart my KNX thermostats fell to 'standby' and stopped heating. Here is the homeassistant-start automation — with the crucial 30-second delay and a choose block — that re-initialises every thermostat to the correct mode.

Window Open, Heating Off: Auto-Switch Each KNX Thermostat to Frost Protection in Home Assistant

Window Open, Heating Off: Auto-Switch Each KNX Thermostat to Frost Protection in Home Assistant

A reproducible Home Assistant automation: a KNX window contact switches that room's thermostat to building_protection (frost guard) when it opens and back to comfort when it closes — with a 5-second debounce that stops the false triggers most tutorials ignore.

Pull Cloud-API Data into Home Assistant: the REST Sensor Explained (One Endpoint, Many Sensors)

Pull Cloud-API Data into Home Assistant: the REST Sensor Explained (One Endpoint, Many Sensors)

A practical guide to the Home Assistant REST sensor: tap any JSON cloud API, pull out single fields with value_template, authenticate via header, set a polling interval and scale raw values — shown on a real manufacturer API, transferable to any device without a native integration.

Read the Huawei SUN2000 in Home Assistant Without a Custom Integration: Native Modbus YAML

Read the Huawei SUN2000 in Home Assistant Without a Custom Integration: Native Modbus YAML

Read every Huawei SUN2000 register straight into Home Assistant with the built-in modbus platform — no custom component that breaks on upgrade. A complete register-to-YAML map with the right data_type, scale, device_class and state_class for the Energy Dashboard.

Build Your Own Modbus-TCP Cache Proxy in Python: One Inverter, Many Home Assistant Clients

Build Your Own Modbus-TCP Cache Proxy in Python: One Inverter, Many Home Assistant Clients

The Huawei SUN2000 SDongle accepts only one Modbus-TCP connection. Instead of an add-on, I wrote a ~300-line asyncio caching proxy that polls the dongle once every 10s and serves the registers to Home Assistant, AC·THOR and evcc at the same time. Full MBAP parsing, register batching and an in-memory cache.

Control an AC·THOR 9s from Home Assistant When Modbus Writes Are Blocked: the my-PV Cloud API

Control an AC·THOR 9s from Home Assistant When Modbus Writes Are Blocked: the my-PV Cloud API

Reading the AC·THOR 9s over Modbus TCP works, but writing is blocked at the device. Here's how I switched control to the undocumented my-PV Cloud API as a Home Assistant shell_command, with tested parameters and the gotchas nobody mentions.

Home Assistant Thermostat on KNX: Base vs. Active Setpoint

Home Assistant Thermostat on KNX: Base vs. Active Setpoint

Corrected: a Home Assistant thermostat on KNX writes the comfort base, the controller reports a different active setpoint. Tests, a fix, 11 controllers.

Decoupling a KNX Alarm from the JUNG Panel in Home Assistant

Decoupling a KNX Alarm from the JUNG Panel in Home Assistant

I didn't want Home Assistant to be a slave to the JUNG alarm panel. So I inverted ownership: HA owns the alarm state and pushes it back onto the KNX bus.

Solar Surplus into Hot Water: the AC·THOR in Home Assistant

Solar Surplus into Hot Water: the AC·THOR in Home Assistant

I wired an AC·THOR 9s into Home Assistant to dump PV surplus into the hot-water tank — then the device refused every Modbus write. Here's the read-local, write-cloud fix.

Self-Consumption & Autarky: PV Metrics in Home Assistant

Self-Consumption & Autarky: PV Metrics in Home Assistant

My inverter cloud shows self-consumption and autarky as pretty graphs. Home Assistant gives you raw counters. Here's how I rebuilt those numbers as template sensors I own.

Home Assistant — How to Install via Docker on an Azure Linux VM

Home Assistant — How to Install via Docker on an Azure Linux VM

Home Assistant is a powerful open source platform for home automation. For hosting, the use of a Linux VM in Azure and Docker is a good option.

Home Assistant Migration: Old and New in Parallel

Home Assistant Migration: Old and New in Parallel

Moving from Home Assistant 2024.11.1 to 2026.8.2 with both instances running: the new one reads first, automations arrive switched off, and I compare states.

One Day of Home Assistant Logs: 775 Errors, Seven Findings

One Day of Home Assistant Logs: 775 Errors, Seven Findings

775 errors and 5,077 warnings in one day of Home Assistant logs: five findings from that day, two from the restart after it. Three affected operation.

Where Home Assistant Runs: One Small VM, Measured

Where Home Assistant Runs: One Small VM, Measured

A 7 euro cloud VM running Home Assistant in Docker: memory, boot and disk measured, why not Kubernetes, and what a data-centre machine cannot do.

Home Assistant
September 1, 2026
Home Assistant Dashboards Built From Stock Cards

Home Assistant Dashboards Built From Stock Cards

Two dashboards I actually use, built only from cards Home Assistant ships with — no themes, no plugins. Layout, gauge config and where the stock cards stop.

Rebuilding Home Assistant From Backup: a Timed Run

Rebuilding Home Assistant From Backup: a Timed Run

I rebuilt my Home Assistant host on a fresh VM with a stopwatch. It took about 50 minutes, and two steps were missing from every backup archive.

Backing Up Home Assistant: the Config Folder Isn't Enough

Backing Up Home Assistant: the Config Folder Isn't Enough

A config-only backup restores Home Assistant but not the host: VPN keys, firewall, cron and the container definition belong in the archive too.

A Home Assistant Energy Dashboard, Built Piece by Piece

A Home Assistant Energy Dashboard, Built Piece by Piece

How I turned raw inverter registers into a real Home Assistant energy dashboard: reading, monitoring and acting on solar surplus, battery and switching.

Detect a Failing PV String in Home Assistant: Shading, Dead Module or Loose MC4

Detect a Failing PV String in Home Assistant: Shading, Dead Module or Loose MC4

A Home Assistant automation that compares your two MPPT strings and warns you the moment one drifts — early warning for shading, a dead module or a loose MC4 connector, with a night-time false-alarm guard.

The Best HACS Integrations for Home Assistant (My Must-Haves)

The Best HACS Integrations for Home Assistant (My Must-Haves)

The HACS integrations I actually run in Home Assistant – Huawei Solar, Tapo cameras, button-card and more – plus the community must-haves worth knowing.

HACSHome Assistant
June 7, 2026
How to Install HACS in Home Assistant, and the Marketplace from 2026.11

How to Install HACS in Home Assistant, and the Marketplace from 2026.11

From Home Assistant 2026.11 HACS is built in as the Marketplace, with nothing to install. How to use it, what the upgrade changes, and the install steps for older versions.

HACSHome Assistant
June 6, 2026
Caching a Huawei SUN2000 over Modbus for Home Assistant

Caching a Huawei SUN2000 over Modbus for Home Assistant

My Huawei SDongle accepts exactly one Modbus connection — but Home Assistant, the AC·THOR and evcc all want the inverter's data. Here's the ~300-line asyncio cache server I wrote to feed all of them from a single quiet poll.

Modbus Write-Through: Control Battery & Inverter Through a Caching Proxy in Home Assistant

Modbus Write-Through: Control Battery & Inverter Through a Caching Proxy in Home Assistant

A caching Modbus proxy only solves reads. Here is the write-through path: pass FC6 register writes straight to the inverter on a short-lived connection, echo the response, return proper Modbus exceptions — so you can force-charge the battery or set power limits over a single shared connection.

Tapo H100: Cellar Humidity Monitoring in Home Assistant

Tapo H100: Cellar Humidity Monitoring in Home Assistant

A bare humidity number doesn't tell you when a cellar will condense. I added a cheap Tapo T310 to my H100 hub and turned it into a dew-point mold early-warning.

An Alarm Dashboard + Tecnoalarm Keypad in Home Assistant

An Alarm Dashboard + Tecnoalarm Keypad in Home Assistant

Building a security dashboard in public: simulated sensors, a debounced trigger, dual logging, and the one decision that mattered most — what NOT to show.

KNX Motion-Sensor Automations in Home Assistant

KNX Motion-Sensor Automations in Home Assistant

Making KNX motion sensors drive lights that feel like the room is paying attention — the real trick is one extra group address, not a cleverer trigger.

KNX Heating in Home Assistant: 21 Automations Become 6

KNX Heating in Home Assistant: 21 Automations Become 6

Moving the heating logic of a KNX house: 16 copied window automations become one with a mapping table, and the operating mode feedback is still missing.

Home Assistant Backups on S3-Compatible Storage, Not AWS

Home Assistant Backups on S3-Compatible Storage, Not AWS

The built-in aws_s3 backup location only accepts amazonaws.com. A daily encrypted backup plus a script that copies it to Hetzner Object Storage and verifies it.

Home Assistant Packages Instead of Include Files

Home Assistant Packages Instead of Include Files

One YAML file per area instead of files split by type, the price of that layout, and a deploy script that validates the config and restores a backup on failure.

Move KNX Switches From the Home Assistant UI to knx.yaml

Move KNX Switches From the Home Assistant UI to knx.yaml

31 of 33 UI-created KNX switches moved into knx.yaml without a restart, with their old entity ids restored. The steps, the tool, and five broken actions.

KNXHome Assistant
October 14, 2026
Mushroom Cards in Home Assistant: Template Card, button-card

Mushroom Cards in Home Assistant: Template Card, button-card

Four custom cards, one theme and self-hosted fonts turned a stock dashboard into an instrument panel. The four things that broke on the way, with the fixes.

HACSHome Assistant
September 30, 2026
Home Assistant Dashboard Templates You Can Copy

Home Assistant Dashboard Templates You Can Copy

Two complete YAML dashboards to paste: one on built-in cards only, one with four custom cards. Including how to wire them in and how to swap the entities.

Home Assistant
September 22, 2026
Create a Home Assistant Dashboard From Zero in Five Steps

Create a Home Assistant Dashboard From Zero in Five Steps

Five steps from an empty view to a finished dashboard, one screenshot each. The step that changes the most adds no new cards at all, only structure.

Home Assistant
September 8, 2026
Home Assistant Themes: Six Installed and Compared

Home Assistant Themes: Six Installed and Compared

Six theme repos give you 74 selectable themes. Which need card-mod, why LCARS does not look like LCARS, and how HACS 2.x changed where you find them.

Home Assistant
August 25, 2026
A Robust Modbus Proxy: Reconnect, Stale-Cache Detection and Timeouts Done Right

A Robust Modbus Proxy: Reconnect, Stale-Cache Detection and Timeouts Done Right

A failure-mode playbook for a self-built Modbus cache proxy in Home Assistant: reconnect with backoff, stale-cache detection that HA can alert on, per-batch and client timeouts, and 50 ms spacing for a slow SDongle — so the proxy never silently serves zeros after a nightly drop or firmware reboot.

What Is HACS? Community Store and Marketplace Explained

What Is HACS? Community Store and Marketplace Explained

What HACS is, what it installs, and what changed with Home Assistant 2026.11, where it is built in as the Marketplace. Plus how safe it is.

HACSHome Assistant
January 8, 2025
Splitting a 2,000-Line automations.yaml into 8 Files

Splitting a 2,000-Line automations.yaml into 8 Files

I let a 40-line Python script reshuffle my whole home-automation config — but only because a second script proved it didn't lose a single automation along the way.

21 Releases Behind: I Rebuilt Instead of Upgrading

21 Releases Behind: I Rebuilt Instead of Upgrading

An instance 21 monthly releases behind. Why I chose a clean rebuild over an upgrade, what a fresh install starts with, and the screen that made it a choice.

Home Assistant
September 15, 2026