Teaching an agent which sensor changes matter
My Home Assistant instance listens to a lot of sensors: a Victron SmartShunt, the MultiPlus-II inverter, GPS, temperature and humidity probes. On May 13 I had Helix work through the event stream and sort what deserved attention. Here is a sample of what actually came in that day:
- - SmartShunt DC bus voltage: 54.0V to 53.99V
- - GPS latitude: 47.047067479 to 47.047068104
- - Inverter output power L1: 199.0W to 191.0W
- - Controller humidity: 31.59% to 31.55%
The useful answer was short. No action needed. The voltage and inverter numbers are appliance cycling. The humidity move is sensor drift. The GPS latitude shifted about six centimeters while the trailer was parked. Half of automating a rig is teaching the software what to ignore.
The same month I reworked the thermostat automation. The old logic chased every temperature reading. The new loop runs on a timer, compares the desired mode against what the AC is actually doing, and only pushes a setpoint when the difference clears a threshold:
- id: smart_thermostat_control_loop
alias: Smart Thermostat Control Loop
description: Control climate.air_conditioner with time-based sensor
+ modes + 10F push (debounced)
triggers:
- minutes: /1
trigger: time_pattern
Applying it was its own lesson. The edit shipped as a small Python script that reads automations.yaml, writes a timestamped backup copy first, then inserts the new block. Every change to a running config gets a backup whose filename says what changed and when.
The rest of May was connectivity housekeeping. On May 11 I started keeping dated backups of the agent's own config. Two sessions on May 19 chased Mac Mini Tailscale connectivity, filed as issues #32 and #35, and the next day went to troubleshooting an Apple Watch health webhook. There was also the airport-proximity cron that kept inventing trips. When I asked why it thought I had a flight from ORD to LAX, the follow-up message was simply: less junk for sure.
None of this is glamorous work. It is the maintenance layer: backups, noise filters, debounced setpoints, and a growing list of things the agent is allowed to decide on its own.