Skip to content

Home assistant error: The unit of measurement C is not valid together with device class temperature #978

@niklerus

Description

@niklerus

Describe the bug
HA gives a warning about wrong unit for temperature:
"The unit of measurement C is not valid together with device class temperature, this will stop working in HA Core 2025.7.0"

To Reproduce
Steps to reproduce the behavior:
Run AMS reader v2.4.7 on ESP32 chip and mqtt.sensor logs in HA

Expected behavior
Valid temperature unit sent from AMS

Screenshots
If applicable, add screenshots to help explain your problem.

Hardware information:

  • Country: Sweden
  • Meter: Sagemcom T211
  • Encryption enabled no
  • AMS reader: ESP32
  • M-bus adapter (if applicable):

Relevant firmware information:

  • Version: 2.4.7
  • MQTT: yes
  • MQTT payload type: home-assistant
  • HAN GPIO: GPIO3
  • HAN baud and parity: 115200 8N1
  • Temperature sensors: none
  • ENTSO-E API enabled: no

Additional context
I have no temperature sensor installed.
Seems HA is expecting "°C" instead of "C".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions