Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correction to Homeassistant MQTT Discovery for Temp unit #841

Open
michaelsidenius opened this issue Sep 11, 2024 · 1 comment
Open

Correction to Homeassistant MQTT Discovery for Temp unit #841

michaelsidenius opened this issue Sep 11, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@michaelsidenius
Copy link

Describe the bug
Homeassistant is giving a warning:

WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.ams_d015_temp (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'C' which is not a valid unit for the device class ('temperature') it is using; expected one of ['°C', '°F', 'K']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22

To Reproduce
Setup AMS reader to use a MQTT server with Homeassistant payload

Expected behavior
No Homeassistant warnings

Screenshots

Hardware information:

  • Denmark
  • Meter: Kampstrup
  • Encryption enabled: Yes
  • AMS reader: ESP8266
  • M-bus adapter (if applicable):

Relevant firmware information:

  • Version: v2.3.8
  • MQTT: yes
  • MQTT payload type: Homeassistant
  • HAN GPIO: UART2
  • HAN baud and parity: 2400 8N1
  • Temperature sensors: NONE
  • ENTSO-E API enabled: no

Additional context

@michaelsidenius michaelsidenius changed the title Correction to Homeassistant MQTT Discovery for Temo unit Correction to Homeassistant MQTT Discovery for Temp unit Sep 11, 2024
@ArnieO ArnieO added the enhancement New feature or request label Sep 11, 2024
@ArnieO
Copy link
Contributor

ArnieO commented Sep 11, 2024

Thank you for notifying us on that warning.
So HA wants the °-sign in addition to C.
OK - we'll put it on the list for a future update.

@ArnieO ArnieO closed this as completed Sep 11, 2024
@ArnieO ArnieO reopened this Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants