barleybobs / homeassistant-ecowater-softener

A Homeassistant custom component to integrate Ecowater water softeners
https://github.com/barleybobs/homeassistant-ecowater-softener
MIT License
31 stars 9 forks source link

Wrong state class #33

Closed Tazmanian79 closed 4 months ago

Tazmanian79 commented 1 year ago

I just have installed a new Ecowater softener and using this integration. However I receive the following error.

Entity sensor.ecowater_000_water_available (<class 'custom_components.ecowater_softener.sensor.EcowaterSensor'>) is using state class 'measurement' which is impossible considering device class ('water') it is using; expected None or one of 'total_increasing', 'total'; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.

Can you check this please?

Tazmanian79 commented 1 year ago

Any update on this one ?

Tazmanian79 commented 1 year ago

I have changed sensor.py

Line 54 from state_class=SensorStateClass.MEASUREMENT to state_class=SensorStateClass.TOTAL

olafz commented 1 year ago

Same here

Logger: homeassistant.components.sensor
Source: components/sensor/__init__.py:496
Integration: Sensor
First occurred: June 27, 2023 at 22:46:46 (1 occurrences)
Last logged: June 27, 2023 at 22:46:46
Entity sensor.ecowater_water_available (<class 'custom_components.ecowater_softener.sensor.EcowaterSensor'>)
  is using state class 'measurement' which is impossible considering device class ('water') it is
  using; expected None or one of 'total_increasing', 'total'; Please update your configuration if
  your entity is manually configured, otherwise report it to the custom integration author.
almoney commented 7 months ago

Seems like we are not working this project actively. We should close and update this code.

barleybobs commented 4 months ago

This was fixed in pull request #36.

Thanks 👍