core
core copied to clipboard
device class ('monetary') gives 'total_increasing' error
The problem
I have configured Utility Meters using the 'built-in' cost sensors from the energy dashboard.
For example, input sensor:
state_class: total
unit_of_measurement: EUR
device_class: monetary
friendly_name: Energieverbruik Cost
last_reset: "2024-04-16T07:29:26.761161+00:00"
Utility Meter sensor: see Example YAML snippet
Since a recent update of Home Assistant, it's giving warnings about 'total_increasing'.
What version of Home Assistant Core has the issue?
core-2024.4.3
What was the last working version of Home Assistant Core?
core-2024.3
What type of installation are you running?
Home Assistant Container
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
utility_meter:
daily_consumption_cost:
unique_id: dagelijkse_kosten_elektriciteit
name: Dagelijkse kosten elektriciteit
source: sensor.energieverbruik_cost
cycle: daily
Anything in the logs that might be useful for us?
2024-04-16 09:28:52.850 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.dagelijkse_kosten_elektriciteit (<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
Additional information
No response