AI-on-the-edge-device icon indicating copy to clipboard operation
AI-on-the-edge-device copied to clipboard

Homeassistant warning

Open geronet1 opened this issue 1 week ago • 14 comments

Entity sensor.watermeter_raw (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using state class 'measurement' which is impossible considering device class ('water') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22

Solution: Change state class to None or total:

https://github.com/jomjol/AI-on-the-edge-device/blob/6b672ff9a5cea88ff4032771732f06dff96b7d33/code/components/jomjol_mqtt/server_mqtt.cpp#L210

geronet1 avatar Feb 17 '25 07:02 geronet1