core
core copied to clipboard
(<class 'homeassistant.components.utility_meter.sensor.UtilityMeterSensor'>) is using state class 'total_increasing' which is impossible considering device class ('monetary') it is using;
The problem
Registratorius: homeassistant.components.sensor Šaltinis: components/sensor/init.py:575 integracija: Jutiklis (dokumentacija, problemos) Pirmą kartą įvyko: 11:57:24 (6 įvykiai) Paskutinį kartą prisijungė: 11:57:24
Entity sensor.suvartota_duju_per_sia_para_eurais (<class 'homeassistant.components.utility_meter.sensor.UtilityMeterSensor'>) is using state class 'total_increasing' which is impossible considering device class ('monetary') it is using; expected None or one of 'total'; 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.suvartota_duju_per_si_menesi_eurais (<class 'homeassistant.components.utility_meter.sensor.UtilityMeterSensor'>) is using state class 'total_increasing' which is impossible considering device class ('monetary') it is using; expected None or one of 'total'; 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.suvartota_vandens_per_sia_valanda_eurais (<class 'homeassistant.components.utility_meter.sensor.UtilityMeterSensor'>) is using state class 'total_increasing' which is impossible considering device class ('monetary') it is using; expected None or one of 'total'; 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.suvartota_vandens_per_sia_para_eurais (<class 'homeassistant.components.utility_meter.sensor.UtilityMeterSensor'>) is using state class 'total_increasing' which is impossible considering device class ('monetary') it is using; expected None or one of 'total'; 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
What version of Home Assistant Core has the issue?
2024.4
What was the last working version of Home Assistant Core?
2024.3
What type of installation are you running?
Home Assistant OS
Integration causing the issue
No response
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
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (sensor) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of sensor can trigger bot actions by commenting:
@home-assistant closeCloses the issue.@home-assistant rename Awesome new titleRenames the issue.@home-assistant reopenReopen the issue.@home-assistant unassign sensorRemoves the current integration label and assignees on the issue, add the integration domain after the command.@home-assistant add-label needs-more-informationAdd a label (needs-more-information, problem in dependency, problem in custom component) to the issue.@home-assistant remove-label needs-more-informationRemove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
(message by CodeOwnersMention)
sensor documentation sensor source (message by IssueLinks)
I'm seeing the same warning since updating today to 2024.4.2. The Utility Meter in question was created with the GUI, so I don't believe I can set total vs. total_increasing without trying to override it via a customization.
Logger: homeassistant.components.sensor Source: components/sensor/init.py:575 integration: Sensor (documentation, issues) First occurred: 9:43:03 PM (1 occurrences) Last logged: 9:43:03 PM Entity sensor.monthly_gas_bill (<class 'homeassistant.components.utility_meter.sensor.UtilityMeterSensor'>) is using state class 'total_increasing' which is impossible considering device class ('monetary') it is using; expected None or one of 'total';
Same problem here. Via YAML is it not possible to set device_class or state_class, as they are not valid option for utility meter.
I've got the same error message in the logs. Only appeared once when I created new UtilityMeter helper through the UI. There are no options to change device class or state class.
Running HAOS:
- Core 2024.6.2
- Supervisor 2024.06.0
- Operating System12.3
- Frontend 20240610.0
Entity sensor.water_pump_consumption (<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
Got also this error. Running HAOS, core 2024.7.
Entity sensor.zonneplan_one_omvormer_expected_surplus (<class 'custom_components.zonneplan_one.sensor.ZonneplanPvSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total_increasing', 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/fsaris/home-assistant-zonneplan-one/issues
I got the same error but for a Tibber sensor:
Logger: homeassistant.components.sensor Source: components/sensor/init.py:569 integration: Sensor (documentation, issues) First occurred: 07:15:59 (6 occurrences) Last logged: 07:15:59
Entity sensor.daily_cost_with_subsidy_home (<class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using state class 'measurement' which is impossible considering device class ('monetary') it is using; expected None or one of 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/Danielhiversen/home_assistant_tibber_data/issues Entity sensor.yearly_cost_Oslo_14 (<class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using state class 'measurement' which is impossible considering device class ('monetary') it is using; expected None or one of 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/Danielhiversen/home_assistant_tibber_data/issues Entity sensor.yearly_consumption_Oslo_14 (<class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total_increasing', 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/Danielhiversen/home_assistant_tibber_data/issues Entity sensor.monthly_consumption_compared_to_last_year_Oslo_14 (<class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total_increasing', 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/Danielhiversen/home_assistant_tibber_data/issues Entity sensor.monthly_cost_with_subsidy_Oslo_14 (<class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using state class 'measurement' which is impossible considering device class ('monetary') it is using; expected None or one of 'total'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/Danielhiversen/home_assistant_tibber_data/issues
@Danielhiversen
same here (created from UI and gives errors:
Logger: homeassistant.components.sensor Source: components/sensor/init.py:569 integration: Sensor (documentation, issues) First occurred: 23:20:16 (3 occurrences) Last logged: 23:43:39
Entity sensor.energy_daily_usage_total (<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.energy_weekly_usage_total (<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
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 closeCloses the issue.@home-assistant rename Awesome new titleRenames the issue.@home-assistant reopenReopen the issue.@home-assistant unassign utility_meterRemoves the current integration label and assignees on the issue, add the integration domain after the command.@home-assistant add-label needs-more-informationAdd a label (needs-more-information, problem in dependency, problem in custom component) to the issue.@home-assistant remove-label needs-more-informationRemove 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)
Same issue here. In my case for a P1 daily power usage sensor.
Logger: homeassistant.components.sensor Source: components/sensor/init.py:569 integration: Sensor (documentation, issues) First occurred: 15:33:30 (1 occurrences) Last logged: 15:33:30
Entity sensor.dagelijks_stroomverbruik (<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
Utility Meter device_class is inherited from the source_sensor.
So you need to check your source_sensors if they are properly setup.
BTW: Power Sensors is something that makes no sense using as source of a utility meter, you are probably looking to measure energy instead.
@dgomes I get your point. However I am unsure on how to correct this. I receive data from my P1 port, via MQTT. For the P1 device, a sensor named "p1_power_dewlieverd" provides data on the actual power consumption. (I guess, device side, this is calculated by adding up T1 + T2 + T3). I plugged this sensor into a helper / utility meter.
If I read your reply correctly, I should submit this as a bug to the developer of the P1 device? (I guess the sensor configuration is on that end?)
Not knowing what is a P1 port, I would say you need https://www.home-assistant.io/integrations/integration/ to get that Power into Energy.
(This is not a support forum, I will not follow up, please use Discord or the Community Forum)
Sure. P1 is a port on an energy unit for homes. So you can monitor your own power/gas usage. Rj11 connector.