Skip to content

out_of_range error with Bosch BTH-RM230Z #141

@leow149

Description

@leow149

Home Assistant 2025-12-24 00_26_31.json

Bug: out_of_range during calibration loop in Advanced Heating Control (Bosch thermostat BTH-RM230Z)

Summary

Using the blueprint panhans/advanced_heating_control.yaml with a Bosch thermostat model BTH-RM230Z causes the automation to fail with out_of_range during the calibration step when calling number.set_value on the local temperature calibration entity.

Environment

  • Home Assistant: 2025.12.4
  • Blueprint: panhans/advanced_heating_control.yaml
  • Thermostat model: Bosch BTH-RM230Z
  • Climate entity: climate.thermostat_wohnzimmer
  • Calibration entity: number.thermostat_wohnzimmer_local_temperature_calibration
    • min: -5
    • max: 5
    • step: 0.1

Reproduction steps

  1. Configure the blueprint with the Bosch thermostat (BTH-RM230Z) and an external temperature sensor.
  2. Let the automation run until the calibration logic is triggered.
  3. The automation attempts to write a calibration value using number.set_value.
  4. The script aborts with out_of_range.

Actual behavior

  • number.set_value is called with an absolute temperature value (e.g. 21.5).
  • The calibration entity expects an offset in the range -5 … +5.
  • Home Assistant throws out_of_range and the automation stops.

Expected behavior

The blueprint should treat Bosch BTH-RM230Z calibration as an offset-based calibration and:

  • use calibration_common, or
  • convert absolute temperatures to offsets, and
  • clamp and round values to the entity’s min, max, and step.

Suspected cause

Bosch devices are grouped with DPH valves, causing the DPH calibration path to write absolute temperatures into an offset-style calibration entity.

Suggested fix

  • Exclude Bosch devices (BTH-RM230Z) from the DPH valve group, or
  • Detect offset-style calibration entities and route them through calibration_common, or
  • Clamp and round calibration values before calling number.set_value.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions