Describe the bug
If I create a helper that combines the state of several sensors, and I try to do a temperature one, then I get ERR for the result.
Individually the sensor displays the correct value.
I looked for the solution where it said to change Unit of Measurement to °C but there is no such option in the entity.
Probable cause :
The Loxone miniserver is sending the format string with just ° instead of °C. The clean_unit function extracts ° from the format string, but the SENSOR_TYPES temperature entry only matches °C and °F (UnitOfTemperature.CELSIUS / UnitOfTemperature.FAHRENHEIT).
Fix that worked
In the file custom_components/loxone/helpers.py, I added :
142 unit = lox_format.replace(search.group(0).strip(), "").strip()
143 if unit == "%%":
144 unit = "%"
145 + if unit == "°":
146 + unit = "°C"
147 return unit
148 return lox_format
Firmware of your Miniserver
16.1.11.6
HomeAssistant install method
Hassio
Version of HomeAssistant
Installation method Home Assistant OS
Core 2026.5.1
Supervisor 2026.05.0
Operating System 17.3
Frontend 20260429.3
Version of Pyloxone
0.9.13
Update pyloxone
Yes
Log
Settings for the log can be found on the main page under the section Log Configuration
Describe the bug
If I create a helper that combines the state of several sensors, and I try to do a temperature one, then I get ERR for the result.
Individually the sensor displays the correct value.
I looked for the solution where it said to change Unit of Measurement to °C but there is no such option in the entity.
Probable cause :
The Loxone miniserver is sending the format string with just ° instead of °C. The clean_unit function extracts ° from the format string, but the SENSOR_TYPES temperature entry only matches °C and °F (UnitOfTemperature.CELSIUS / UnitOfTemperature.FAHRENHEIT).
Fix that worked
In the file custom_components/loxone/helpers.py, I added :
142 unit = lox_format.replace(search.group(0).strip(), "").strip()
143 if unit == "%%":
144 unit = "%"
145 + if unit == "°":
146 + unit = "°C"
147 return unit
148 return lox_format
Firmware of your Miniserver
16.1.11.6
HomeAssistant install method
Hassio
Version of HomeAssistant
Installation method Home Assistant OS
Core 2026.5.1
Supervisor 2026.05.0
Operating System 17.3
Frontend 20260429.3
Version of Pyloxone
0.9.13
Update pyloxone
Yes
Log
Settings for the log can be found on the main page under the section Log Configuration