ha-emporia-vue icon indicating copy to clipboard operation
ha-emporia-vue copied to clipboard

state class total_increasing, but its state is not strictly increasing

Open itsadamslife opened this issue 2 years ago • 2 comments

I've been getting the following errors in my logs for my 1d sensors:

Logger: homeassistant.components.sensor.recorder
Source: components/sensor/recorder.py:311
Integration: Sensor (documentation, issues)
First occurred: February 9, 2022, 21:45:10 (6 occurrences)
Last logged: 15:05:11

Entity sensor.dishwasher_6_1d from integration emporia_vue has state class total_increasing, but its state is not strictly increasing. Triggered by state 0.017 (0.018) with last_updated set to 2022-02-10T08:56:04.253680+00:00. Please report it to the custom component author.
Entity sensor.adam_s_house_balance_1d from integration emporia_vue has state class total_increasing, but its state is not strictly increasing. Triggered by state 2.114 (2.118) with last_updated set to 2022-02-10T08:56:04.253903+00:00. Please report it to the custom component author.
Entity sensor.furnace_5_1d from integration emporia_vue has state class total_increasing, but its state is not strictly increasing. Triggered by state 0.245 (0.262) with last_updated set to 2022-02-10T09:59:04.223556+00:00. Please report it to the custom component author.
Entity sensor.master_guest_bedroom_basement_outlets_8_1d from integration emporia_vue has state class total_increasing, but its state is not strictly increasing. Triggered by state 0.141 (0.142) with last_updated set to 2022-02-10T12:34:04.185741+00:00. Please report it to the custom component author.
Entity sensor.office_basement_outlets_7_1d from integration emporia_vue has state class total_increasing, but its state is not strictly increasing. Triggered by state 1.843 (1.847) with last_updated set to 2022-02-10T20:04:09.577049+00:00. Please report it to the custom component author.

itsadamslife avatar Feb 10 '22 23:02 itsadamslife

Similar error:

Logger: homeassistant.components.sensor
Source: components/sensor/__init__.py:317 
Integration: Sensor ([documentation](https://www.home-assistant.io/integrations/sensor), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+sensor%22)) 
First occurred: 5:27:29 PM (2 occurrences) 
Last logged: 5:27:29 PM

Entity sensor.5360_smart_meter_123_1mon (<class 'custom_components.emporia_vue.sensor.CurrentVuePowerSensor'>) with state_class total_increasing has set last_reset. Setting last_reset for entities with state_class other than 'total' is not supported. Please update your configuration if state_class is manually configured, otherwise report it to the custom component author.
Entity sensor.5360_smart_meter_123_1d (<class 'custom_components.emporia_vue.sensor.CurrentVuePowerSensor'>) with state_class total_increasing has set last_reset. Setting last_reset for entities with state_class other than 'total' is not supported. Please update your configuration if state_class is manually configured, otherwise report it to the custom component author.

fwedler avatar Feb 15 '22 01:02 fwedler

Thanks for the reports. There are a few open issues for this and related changes and it's something I'm going to be working on in the near future. It's a combination of noisy data from the API and some channels not being strictly increasing by nature, ie when coupled with solar. Home Assistant changed up the way they want these sensors handled at least twice.

magico13 avatar Feb 15 '22 01:02 magico13