I have a problem with the development of a custom integration.
There was already a modbus yaml script to read out a Lambda heat pump, but unfortunately almost all sensors are created with state_clase:total, which is wrong for a temperature sensor, for example, it should be “measurement”.
old solution:
If the state class was wrong, the old statistics are useless for measurements because they are stored as deltas for state class total. But why didn’t you just change the state class in the yaml, and why didn’t you fix it in your new integration?It still says total.
if I set the state_class to total in the new integration, the user gets a warning in the logs that the state_class is configured incorrectly. Home assistant then reports all temperature, power, volume flow, etc. sensors.
““Entity sensor.eu08l_boil1_actual_high_temperature (<class ‘custom_components.lambda_heat_pumps.sensor.LambdaSensor’>) is using state class ‘total’ which is impossible considering device class (‘temperature’) it is using; expected None or one of ‘measurement’””