Automation22

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.

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.

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.

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.

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.

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.

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 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)
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.

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.

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.

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.

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.

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.

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.

KNX Thermostat Preset Modes in Home Assistant
Why your KNX thermostat ignores the temperature you set in Home Assistant — the five HVAC preset modes, the snap-back that looks like a bug, and how I automate them.

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.

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
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
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.

What Is HACS? The Home Assistant Community Store, Explained
In this story, we’ll explore HACS (Home Assistant Community Store), why it’s a game-changer, and how to get started with it.

Contentful Headless CMS — Managing Content via REST
There are several ways to manage content (Creating, updating, deleting, and delivering content). Let’s do a deep dive into this CMS's REST capabilities.