Entity sensor.giorno_produzione_solare_immessa_in_casa (<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 Issues · home-assistant/core · GitHub
Entity sensor.mese_produzione_solare_immessa_in_casa (<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 Issues · home-assistant/core · GitHub
Entity sensor.anno_produzione_solare_immessa_in_casa (<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 Issues · home-assistant/core · GitHub
and this is the sensor i have on my package folder.
device_class: energy
state_class: total # or total_increasing
unit_of_measurement: kW
Or this if it is a power sensor:
device_class: power
state_class: measurement
unit_of_measurement: W
Though I am assuming it is an energy sensor as you are trying to feed it to a utility meter.
You should also be using the new template sensor format so that you can give it a state_class. This will not work with the legacy template sensor format you are using.
However, what is not really clear to me is why i have the log for the sensor tesla_card_produzione_solare_immessa_in_casa and not for tesla_card_consumo_totale_casa…
I have fixed kWh instead with kW but I still have this message using “state_class: total_increasing” or “state_class: total”…
Entity sensor.giorno_produzione_solare_immessa_in_casa (<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 Issues · home-assistant/core · GitHub
Entity sensor.mese_produzione_solare_immessa_in_casa (<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 Issues · home-assistant/core · GitHub
Entity sensor.anno_produzione_solare_immessa_in_casa (<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 Issues · home-assistant/core · GitHub
However hat is not your issue. The error shown above has nothing to do with this template sensor. Can you please show the configuration for this entity
warning:
Registratore: homeassistant.components.sensor
Fonte: components/sensor/init.py:575
Integrazione: Sensore (documentazione, problemi)
Prima occorrenza: 11:04:58 (3 occorrenze)
Ultima registrazione: 11:04:58
Entity sensor.giorno_produzione_solare_immessa_in_casa (<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 Issues · home-assistant/core · GitHub
Entity sensor.mese_produzione_solare_immessa_in_casa (<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 Issues · home-assistant/core · GitHub
Entity sensor.anno_produzione_solare_immessa_in_casa (<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 Issues · home-assistant/core · GitHub
warning 2
Registratore: homeassistant.components.sensor.recorder
Fonte: components/sensor/recorder.py:325
Integrazione: Sensore (documentazione, problemi)
Prima occorrenza: 11:05:37 (1 occorrenze)
Ultima registrazione: 11:05:37
Entity sensor.consumo_altro from integration template has state class total_increasing, but its state is negative. Triggered by state -3.07 with last_updated set to 2024-04-09T08:59:59.999999+00:00. Please create a bug report at Issues · home-assistant/core · GitHub
There is something wrong with your template sensor. I suspect it is because you removed the availability template. When one or both of the sensors was unavailable (e.g. during a restart) it was substituted with the your default value of 2, where you used |float(2) this caused the value to go backwards.