Home Assistant: entities, automations and device states
Home Assistant fails quietly. A condition that throws is treated as false, a copied token expires after thirty minutes without an error, and a dimmer keeps reporting on because a leftover value says so. The entries here are all of that kind: no crash, no trace in the log, just wrong behaviour that looks like a hardware fault. Each blueprint shows the state you can read out of the system — entity registry, system log, template API, device parameters — and the one change that makes the symptom disappear. Before replacing a device, read its reported state: most of these cases were configuration or a stale value, not broken hardware.
Entities and integrations
-
Remove stale unavailable entities
How to clean up stale entities in Home Assistant after cloud reconnection, including WebSocket API commands for removal or disabling.
Automations and scripts
-
Automation fires at the wrong time
Explains why a Home Assistant automation may fire at the wrong time due to silent template errors and how to fix it.
-
Find YAML errors in Home Assistant
Guide to diagnose Home Assistant YAML errors via WebSocket when the REST log endpoint is unavailable.
-
Home Assistant scripts fail after 30 minutes
Home Assistant scripts fail with HTTP 401 after 30 minutes due to JWT token expiration. Use a refresh flow instead of copying tokens. Implement a helper to manage token refresh and ensure jobs use it.
Devices and state
-
DuoFern thermostat resets to 4 °C
Explanation of why a DuoFern thermostat reverts to old values or 4.0 °C after a setpoint write, including causes and fixes.
-
DuoFern dimmer shows the wrong state
A DuoFern dimmer in Home Assistant may show 'on' after being switched off at the wall due to a leftover dimming value. This occurs when `CURR_POS_CFG` remains above 0 while `CURR_SWITCH_POS_CFG` is `false`. The issue can be resolved by setting `SWITCH_ON_POS_CFG` to 0 and sending a `TURN_OFF_CMD` to ensure the dimming value drops to 0.
Other topics: PostgreSQL constraints, triggers and vector search · Docker Compose: startup, networking and configuration