Closed GlennGoddard closed 1 year ago
I could do a PR on this and fix it in either translations or helpers. Less changes if done in helpers. I just wanted to make sure I was see this right.
I have ONLY had 0.97 inches of rain over the 948 minuets of rain today so I was going off of history and not current.
No with a 3 this would return heavy
as the type array is 0-based, so the 4. item will be a 3.
Right, but there is no translation for "heavy"
Finally the penny drops by me 😁 You are absolutely right. It has taken a while for us to spot that - now fixed, so that type_array reads: ["none", "rain", "hail", "heavy-rain"]
Pushed a new dev
build to docker with this included. Will hold a full release a bit.
Home Assistant Version?
2023.1.1
Add-On or Self Hosted?
Self managed Container
Weatherflow2MQTT version?
3.1.4 (Dev)
What happened?
Line 78 of in all the Translation languages lists type returned precip_types with "heavy-rain" da
"heavy-rain": "Kraftig regn"
de"heavy-rain": "Starkregen"
en"heavy-rain": "Heavy Rain"
fr"heavy-rain": "Forte pluie"
nl"heavy-rain": "Zware regen"
Line 138 of helpers returns "heavy"
type_array = ["none", "rain", "hail", "heavy"]
Correct me if I'm wrong, but it would appear that if a "3" is returned by the weather station then we would never get an actual output because the translation would not be able to match it. All other precipitation type translations match the helpers output.
I just came across this while I was comparing precip_type with rain_intensity; and noticed I have never had a precip_type of of "heavy".
Relevant log output
No response