Danielhiversen / home_assistant_tibber_data

Display Tibber data sensors.
MIT License
42 stars 13 forks source link

Mismatch between sensor state class and device class #61

Closed frli4797 closed 7 months ago

frli4797 commented 1 year ago

Entity sensor.yearly_consumption_xxx (<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 report it to the custom integration author.

tedenda commented 1 year ago

Same issue as #56

oywino commented 1 year ago

I guess this is the same issue :

Logger: homeassistant.components.sensor
Source: components/sensor/__init__.py:506
Integration: Sensor (documentation, issues)
First occurred: 7:25:16 PM (6 occurrences)
Last logged: 7:25:16 PM

Entity sensor.daily_cost_with_subsidy_middelthunsgate_17c (<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 report it to the custom integration author.
Entity sensor.yearly_cost_middelthunsgate_17c (<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 report it to the custom integration author.
Entity sensor.yearly_consumption_middelthunsgate_17c (<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 report it to the custom integration author.
Entity sensor.monthly_consumption_compared_to_last_year_middelthunsgate_17c (<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 report it to the custom integration author.
Entity sensor.monthly_cost_with_subsidy_middelthunsgate_17c (<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 report it to the custom integration author.
Danielhiversen commented 7 months ago

Duplicate of https://github.com/Danielhiversen/home_assistant_tibber_data/issues/56