garbled1 / homeassistant_ecowitt

Ecowitt Weather Station integration for homeassistant
Apache License 2.0
143 stars 70 forks source link

Updated sensor state class #133

Closed antonsarg closed 1 year ago

antonsarg commented 2 years ago

Updated sensor state class for rain rate and event rain rate from STATE_CLASS_TOTAL_INCREASING to STATE_CLASS_MEASUREMENT.

Reason for this fix is a warning message inside the core logs. The corresponding warning:

Entity sensor.weatherstation_rain_rate_piezo from integration ecowitt has state class total_increasing, but its state is not strictly increasing. Triggered by state 50.39 (51.59) with last_updated set to 2022-07-25T17:49:44.898582+00:00. Please report it to the custom component author.
Senbei123 commented 1 year ago

Thanks - also use it for the new Rain Piezzo sensor from the WittBoy.