ha-hildebrandglow-dcc icon indicating copy to clipboard operation
ha-hildebrandglow-dcc copied to clipboard

"using state class 'total_increasing' which is impossible" Auto Config

Open MarkRocketman opened this issue 11 months ago • 7 comments

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

MarkRocketman avatar Mar 08 '24 10:03 MarkRocketman

custom_components/hildebrandglow_dcc/sensor.py Line 288 , change _attr_state_class = SensorStateClass.TOTAL_INCREASE
to
attr_state_class = SensorStateClass.TOTAL

krzysnaw avatar Mar 12 '24 07:03 krzysnaw

@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.

snigehere avatar May 03 '24 21:05 snigehere

I changed this to TOTAL which fixed the error, though now the cost in the energy tab is usually negative image

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?

CodedNil avatar Aug 07 '24 15:08 CodedNil