home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.14k stars 29.82k forks source link

After Upgrade to new OS I get: Source sensor sensor.watermeter_raw has no unit of measurement. #111493

Closed fft1010 closed 3 months ago

fft1010 commented 6 months ago

The problem

Hi, I just upgraded to the new suggested OS today (2024-02-26) and checked the log, and found

2024-02-26 15:33:16.691 WARNING (MainThread) [homeassistant.components.utility_meter.sensor] Source sensor sensor.watermeter_raw has no unit of measurement. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22

in the OS version before this error was not there.

thanks Juergen

What version of Home Assistant Core has the issue?

core-2024.2.3

What was the last working version of Home Assistant Core?

The OS version before

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Home Assistant OS 12.0

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 6 months ago

Hey there @emontnemery, @jbouwh, mind taking a look at this issue as it has been labeled with an integration (mqtt) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `mqtt` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign mqtt` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


mqtt documentation mqtt source (message by IssueLinks)

mib1185 commented 6 months ago

This cannot be related to the OS update, only to a HA core update. Nevertheless, as the error message says "sensor.watermeter_raw has no unit of measurement" but the utility_meter requires a unit set on the source entity. you should check and fix the sensor.watermeter_raw so it contain a valid unit of measurement

jbouwh commented 6 months ago

It is not an issue with MQTT either.

home-assistant[bot] commented 6 months ago

Hey there @dgomes, mind taking a look at this issue as it has been labeled with an integration (utility_meter) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `utility_meter` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign utility_meter` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


utility_meter documentation utility_meter source (message by IssueLinks)

fft1010 commented 6 months ago

Hi alltogether, all I can tell, that yesterday 2024-02-25 17:35 I did a reboot and did not see this error in home-assistant.log. Today I did the OS update and got this message. Do you need any other information or logfile? Btw. The data from the watermeter is still arriving, and I see no difference.

thanks Juergen

dgomes commented 6 months ago

"Source sensor sensor.watermeter_raw has no unit of measurement"

does it ?

Mariusthvdb commented 6 months ago

you should have smthng like this:

    - unique_id: watermeter_smart_gateways_current_value
      state_topic: watermeter/reading/current_value
      name: Watermeter stand
      unit_of_measurement: L
      state_class: total_increasing
      device_class: water
      <<: *device

(nevermind the bottom 'device' yaml anchor there, its only for creating a device, and not to do with the UOM warning)

issue-triage-workflows[bot] commented 3 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.