Open ChristophCaina opened 3 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!
(message by CodeOwnersMention)
utility_meter documentation utility_meter source (message by IssueLinks)
I experience the same:
Logger: homeassistant.components.sensor Source: components/sensor/init.py:569 integration: Sensor (documentation, issues) First occurred: 4:32:53 PM (2 occurrences) Last logged: 4:32:53 PM Entity sensor.pv2_daily_production_um (<class 'homeassistant.components.utility_meter.sensor.UtilityMeterSensor'>) is using state class 'total_increasing' which is impossible considering device class ('power') it is using; expected None or one of 'measurement'; 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+utility_meter%22 Entity sensor.pv2_daily_load_um (<class 'homeassistant.components.utility_meter.sensor.UtilityMeterSensor'>) is using state class 'total_increasing' which is impossible considering device class ('power') it is using; expected None or one of 'measurement'; 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+utility_meter%22
not the same issue I'm afraid. But can both of you provide the diagnostic file available on the utility_meter device webpage ?
I'm sorry, I'm quite new to HA, how do I get it? I didn't find any device webpage related to utility meter..
Settings -> Devices & Services -> Devices
search for the device associated to the utility_meter
On the "Device Info" you will find an option to download the diagnostic of the utility_meter (might need to click the 3 dots)
Found it. I have two sensors I created to calculate daily production of solar power (and it seems those do not work correctly yet, so I also might have misconfigured them). config_entry-utility_meter-01J4S5GN4NRGWD7KSPK4R4PZCS.json config_entry-utility_meter-01J4S5QHWF5PP61K4MQDY096ET.json
I have the problem that the sensor creates huge spikes: The daily production should be around 4kWh (it seems the sensors counts that somehow correctly) but at some points in time, it jumps to thousands of kWh...
@melvinisken your sources have unit of measurement of Watts (that's POWER) utility_meter is to be used with kWh (that's ENERGY)
You need first to convert your sources from power to energy (use the rienman sum integration for that) then you can use the new entity as the source of the utility_meter.
As I said... your problem is unrelated to @ChristophCaina, please create a new issue if necessary after doing the necessary changes.
The problem
I am getting the following warning about some of my UtilityMeter-Helpers and don't see, where I could change the state class...
These Utility Meters are using the same source Sensor, which has the State_class "Total Increasing" with device_class: Volume_Storage.
The UI for the Utility Meters does not allow (at first glance) to change the State_class.
The Meters were created via UI (helpers)
What version of Home Assistant Core has the issue?
2024.7.2
What was the last working version of Home Assistant Core?
No response
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?
No response
Additional information
No response