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
Utility Meter (hourly reset) not showing unit_of_measurement #95406
Comments
Hey there @dgomes, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) utility_meter documentation |
Hi, I have more or less the same issue and perhaps even stranger. I have one source sensor for the watts, which I use in an integration to give me the kWh similar to what you have done in your description. After that I use the Utility Meter integration on 4 levels: hourly, daily, monthly and yearly cycle. The monthly and yearly give device_class: energy and unit_of_measurement: 'kWh', exactly as expected. The other 2, hourly and daily don't do that. The numeric value though is correct for all of them..
vs
I have multiple set-ups for other 'consumers' working flawlessly. I can't find any typo's, I have searched and searched, modified and tried but so far no results.. I have no clue. A true bug perhaps? |
I have the same problem with the daily sensor, not showing unit of measurement. All others (hourly, weekly, monthly, quarterly, yearly) are fine. I just created this sensors yesterday, because the utility meter I created some weeks/month ago, showed the wrong unit of measurement, namely Wh instead of kWh. The underlying sensor is a homematic (measuring switch) energy counter and it's energy_counter-reading, which is usually in kWh. Is there a way to set the unit of measurement for such helpers derived from other sensors after they have been created? |
idem if I create it with a certain name it gives me the unit of measurement as I change the name it disappears and in any case the problem is with daily, tried today with yearly reset same problem |
Same problem here. I have 4 identical sensors for my meter readings (import low and high and export low and high). For all of them i created utility sensors. Two are working correctly and showing kWh. The other 2 dont. |
The problem
I made an (hourly reset) Utility Meter of a sensor with unit_of_measurement 'mm' (Rain), but the new sensor doesn't show any unit_of_measurement. If I change the sensors attributes with a manually added unit_of_measurement, it drops it when the reset occures.
What version of Home Assistant Core has the issue?
2023.6.3
What was the last working version of Home Assistant Core?
?
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Utility Meter
Link to integration documentation on our website
https://www.home-assistant.io/integrations/utility_meter/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
The unit of sensor.regen_dit_uur (mm) cannot be converted to the unit of previously compiled statistics (None). Generation of long term statistics will be suppressed unless the unit changes back to None or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
…bit the sensor is not visible there
Additional information
The original sensor sensor.sonoff_th16_schuur_rain:
The Utility Meter sensor.regen_dit_uur:
The text was updated successfully, but these errors were encountered: