ha-hildebrandglow-dcc
ha-hildebrandglow-dcc copied to clipboard
"using state class 'total_increasing' which is impossible" Auto Config
Describe the bug Entity sensor.dcc_sourced_smart_electricity_meter_cost_today (<class 'custom_components.hildebrandglow_dcc.sensor.Cost'>) 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/HandyHat/ha-hildebrandglow-dcc/issues Entity sensor.dcc_sourced_smart_gas_meter_cost_today (<class 'custom_components.hildebrandglow_dcc.sensor.Cost'>) 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/HandyHat/ha-hildebrandglow-dcc/issues
Version 4.1.0
custom_components/hildebrandglow_dcc/sensor.py
Line 288 , change _attr_state_class = SensorStateClass.TOTAL_INCREASE
to
attr_state_class = SensorStateClass.TOTAL
@krzysnaw Many thanks for posting the work around to this issue
Just to note that it was row 293 in my sensor file (version 1.0.3) .. no idea why as it was unchanged.
I changed this to TOTAL which fixed the error, though now the cost in the energy tab is usually negative
I think it counts the decrease every day when it resets as 0, instead of just ignoring decreases and only managing increases which I'm assuming is why it was TOTAL_INCREASE not sure why that errors now?