briis / hass-weatherflow2mqtt

WeatherFlow to MQTT for Home Assistant. Use UDP to get local weather data in to Home Assistant using MQTT Discovery
MIT License
129 stars 29 forks source link

Rainfall today does not much web interface #237

Closed madasus closed 1 year ago

madasus commented 1 year ago

Home Assistant Version?

2023.8.4

Add-On or Self Hosted?

Self managed Container

Weatherflow2MQTT version?

3.2

What happened?

The rainfall totals do not seem to match the web interface. I wonder if these is a problem with the conversion from metric to imperial? I have everything set to imperial

From web interface

image

From MQTT

image

What HA shows

image

Thank you

Relevant log output

No response

robertw commented 1 year ago

Home Assistant Version? Home Assistant 2023.8.4 Supervisor 2023.08.1 Operating System 10.5 Frontend 20230802.1 - latest

Add-On or Self Hosted? Add-On

Weatherflow2MQTT version? 3.2

I agree I also see problems in feels like same conversion diffrence !

madasus commented 1 year ago

maybe there is an assumption that the incoming data always starts in metric?

ryan-mcxx commented 1 year ago

I believe the discrepancy is due to the "raincheck" implementation by Weatherflow. https://community.weatherflow.com/t/introducing-raincheck/3699

madasus commented 1 year ago

@mccabery I don't believe that is the case. This is not related to the average but the accumulated for the current day.

It sounds like raincheck is focused on the previous day.

"We’re launching “RainCheck” starting with all owners in the Continental USA. Every day, between midnight and 8am (depending on weather conditions),"

ryan-mcxx commented 1 year ago

@madasus it appears they've changed to a continuous method, NearCast Rain. https://community.weatherflow.com/t/raincheck-logo-besides-today-s-rain/15794/26

madasus commented 1 year ago

@mccabery Thanks - I turned it off just to see if that corrects for the next storm.

The question is wouldn't this interface still pull the updated numbers so that what is pulled would match the web interface?

briis commented 1 year ago

The thing is, that the UDP API, only reports the Rain amount over previous minute. So this integration has to summarize this and then reset again when hitting midnight. If you restart, for some reason during the day, the counter may get reset too, and the numbers in the WeatherFlow database might not fit with the numbers here.

All data coming from the UDP API are in Metric format, so a conversion has to take place, but this should not create that discrepancy.

madasus commented 1 year ago

Confirmed that the difference I see is as @mccabery suggested. turning that off meant that the daily rainfall reported in the msg in mqtt matches the web interface.

Sounds like this is just something we have to live with if we want a truly local interface?

briis commented 1 year ago

Sounds like this is just something we have to live with if we want a truly local interface?

Yes unfortunately. I live in Europe, so we don't have the NearCast option, so it is also hard to test. Anyway, as you said, if you want a truly local system, this is how it is.

I will close this now.