jaydeethree/Home-Assistant-weatherdotcom

Weather description

Ayuus opened this issue · 1 comments

Ayuus commented

Hello,

In case of Sunny weather, the sensor weather_description in the Netherlands displays "beautiful" ("mooi" in Dutch), where "Sunny" ("Zonnig"in Dutch) seems more appropriate. Is this configurable somewhere?

Regards,

Ronald

The weather description comes from the Weather.com API, specifically from the wxPhraseLong property:

https://docs.google.com/document/d/1UOjfN1j54Ocmwj-zYCcHG_RM1tlNceW_qlzz0wVILXA/edit

Since this is coming directly from Weather.com I'm not able to change it or control it. However as an alternative you could use the state of the weather.LOCATION_NAME entity - that uses the Home Assistant weather descriptions:

https://developers.home-assistant.io/docs/core/entity/weather/#recommended-values-for-state-and-condition

And that is based on the iconCode property that's returned by Weather.com:

https://docs.google.com/document/d/1qpc4QN3YDpGDGGNYVINh7tfeulcZ4fxPSC5f4KzpR_U/edit

Which gets mapped to the Home Assistant weather descriptions here:

ICON_CONDITION_MAP: Final[dict[str, list[int]]] = {