Debugging
Download diagnostics
Section titled “Download diagnostics”For bug reports, the diagnostics download is the most useful artifact; attach it before reaching for debug logs.
Go to Settings → Devices & services → Better Thermostat, open the three-dot menu of the entry, and choose Download diagnostics. The file contains:
- the configuration of the entry, the state and configuration of every TRV that has a state in Home Assistant, and the state of the room temperature sensor and the window sensor; a configured TRV without a state is left out entirely, its configuration included,
- the flight recorder: the last control decisions, each as the observation, the controller state, and the resulting intent. It shows why Better Thermostat did what it did, which a log line usually cannot (see Internals: Observability for how it works).
Enable debug logging via configuration.yaml
Section titled “Enable debug logging via configuration.yaml”logger: default: warning logs: custom_components.better_thermostat: debugRestart Home Assistant after editing configuration.yaml.
Enable debug logging without restart
Section titled “Enable debug logging without restart”Use the Home Assistant action logger.set_level:
action: logger.set_leveldata: custom_components.better_thermostat: debugOpen Developer tools → Actions directly:
What to check first
Section titled “What to check first”- External sensor updates are fresh and stable.
- Window sensor states are correct.
- The right algorithm is selected for the room.
- TRV supports the chosen calibration type.