Checking devices in Home Assistant with Watchman

By now, quite a few automations are running in our summer house – heating control, EV charging, inverter, watering. Behind them sits a mix of equipment: a solar inverter with battery storage, an EV charging station, Zigbee thermostats for underfloor heating, Avatto radiator thermostats, temperature sensors based on BTHome, and Zigbee-based soil moisture sensors in the vegetable garden. On top of that come several cloud services feeding data into the system – among them the heat pump’s own cloud platform and an external weather service for rain forecasts. Without a systematic check, it’s hard to notice if one of the many devices or services has quietly stopped working.

Display – result of a Watchman check

The problem is when a physical device – a Zigbee sensor, a Shelly, a cloud-connected charging station – loses its connection and ends up stuck as unavailable, without anyone noticing until an automation depending on it stops responding. There’s no error message to react to, just an automation that quietly does nothing.

Then there are the more subtle failures: an integration gets updated and renames an entity, or you rename something yourself and forget one of the places it’s used. That kind of thing usually only shows up once something actually goes wrong in practice.

With that in mind, I decided to install Watchman, an integration installed via HACS. It scans automations, scripts, and dashboards, finds everything they reference, and checks whether it still exists and works.

Three findings, three different levels of severity

After installation, the Watchman report returned three results, each of which turned out to need its own assessment.

The first was a real error: an automation that restores the underfloor heating after a restart referenced another automation by the wrong name. The reference had therefore never worked. In the event of a power outage, the underfloor heating would not have been restarted correctly afterward.

The second was more surprising: a button on the charging station showed “unavailable” for long periods, without affecting the charging itself. The cause turned out to be that the button is only active when its command actually makes sense – not a fault, just a slightly misleading report.

The third took a bit more detective work: a temperature sensor from the heat pump went to “unknown,” and it turned out it only delivers a value when the unit is actually switched on. No practical impact, since the sensor is only used as a read-out value and isn’t part of any control logic.

I configured Watchman to ignore the last two findings going forward, so they don’t clutter future reports, while the first one was fixed.

Daily check

To avoid having to remember to run it manually, an automation was set up to run the report every morning at 06:30 and save the result. The dashboard now has a card showing a green marker if everything is fine, or a short list of what’s missing if not.

Was it worth the effort

A real error was found that otherwise wouldn’t have shown up until a power outage made the damage visible. Now there’s an automatic notification if something similar happens again.