Automation7

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

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.