fonske / clack-reader-v4

GNU General Public License v3.0
6 stars 1 forks source link

Pulse conter needed for flow meter? #1

Closed OwlBawl closed 3 weeks ago

OwlBawl commented 3 weeks ago

Errors in log related to water flow meter in HA

2024-10-06 11:48:42.576 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.clack_water_flow_rate (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) 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+esphome%22
2024-10-06 11:48:42.577 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.clack_water_flow_rate (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement 'L/min' which is not a valid unit for the device class ('water') it is using; expected one of ['gal', 'm³', 'CCF', 'ft³', 'L']; 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+esphome%22
OwlBawl commented 3 weeks ago

Found this one, changed in my code, would test: device_class: volume_flow_rate state_class: measurement

fonske commented 3 weeks ago

Thank you.

I have made the changes.