core: OpenWeatherMap doesn't follow language setting

The problem

Even though my language is set to English:

Schermafbeelding 2020-11-04 om 12 37 57

sensor ‘Weather’ is displayed in Dutch:

Schermafbeelding 2020-11-04 om 12 37 37 Schermafbeelding 2020-11-04 om 12 39 44

also, there is no icon for this sensor, so we need to customize it, and being in an incorrect language makes that difficult, because its is not following the condition classes but a localized language

Environment

  • Home Assistant Core release with the issue: 117.2
  • Last working Home Assistant Core release (if known): ?
  • Operating environment (OS/Container/Supervised/Core): OS
  • Integration causing this issue: OpenWeatherMap
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/openweathermap/

Problem-relevant configuration.yaml


Traceback/Error logs


Additional information

nothing further, this is all default

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 16 (12 by maintainers)

Most upvoted comments

Will be fixed here #46166

just assume extra info, I received this from OpenWeastherMap:

I have attached the translations below:

 name: Dutch
  main: ""
  description:
    200: onweersbui met lichte regen
    201: onweersbui met regen
    202: onweersbui met zware regenval
    210: lichte onweersbui
    211: onweersbui
    212: zware onweersbui
    221: onregelmatig onweersbui
    230: onweersbui met lichte motregen
    231: onweersbui met motregen
    232: onweersbui met zware motregen
    300: lichte motregen
    301: motregen
    302: zware motregen
    310: lichte motregen/regen
    311: motregen
    312: zware motregen/regen
    313: stortbuien en motregen
    314: hevige stortbuien en motregen
    321: zware motregen
    500: lichte regen
    501: matige regen
    502: zware regenval
    503: zeer zware regenval
    504: extreme regen
    511: koude buien
    520: lichte stortregen
    521: stortregen
    522: zware stortregen
    531: afwisselende stortbuien
    600: lichte sneeuw
    601: sneeuw
    602: hevige sneeuw
    611: ijzel
    612: lichte ijzel
    620: lichte sneeuw
    621: natte sneeuw
    622: hevige sneeuw
    701: mist
    711: mist
    721: nevel
    731: zand/stof werveling
    741: mist
    751: zandstorm
    761: mist
    762: vulkanische as
    771: rukwinden
    781: tornado
    800: onbewolkt
    801: licht bewolkt
    802: half bewolkt
    803: zwaar bewolkt
    804: geheel bewolkt

If you have any other questions, please don’t hesitate and contact us.

and yet, though you said the weather sensor comes straight from the api, I saw these translations come by, and they’re not in the list:

dichte mist
zeer lichte bewolking

and that’s only logging a couple of days, without many weather condition changes… So it’s still a bit unclear what really is happening. which must be a backend thing? because well check this:

currently code 802 is reported:

Schermafbeelding 2020-11-11 om 09 13 53 which according to the OWM list should lead to 'half bewolkt' in Dutch, but this is returned: Schermafbeelding 2020-11-11 om 09 14 00 which is the condition name for condition 801.

So maybe this isnt simply a translation thing, but an even more core integration issue than noted before.