Skip to content

Debugging

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: debug

Restart Home Assistant after editing configuration.yaml.

Use the Home Assistant action logger.set_level:

action: logger.set_level
data:
custom_components.better_thermostat: debug

Open Developer tools → Actions directly:

Open Developer tools → Actions

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