Madelena / esphome-weatherman-dashboard

A simple dashboard with weather and NYC subway information for ESPHome
https://community.home-assistant.io/t/use-esphome-with-e-ink-displays-to-blend-in-with-your-home-decor
947 stars 48 forks source link

Too many weather icons in flash #26

Open nagyrobi opened 3 months ago

nagyrobi commented 3 months ago

I think Home Assistant doesn't support that many weather conditions.

Looking at the HA Core translations in lokalise (search for strings under key component::weather::entity_component::_::state), I see strings only for the ones below. Thus, I think it's useless to keep in flash so many icons which would be never used.

Instead only these would be required:

        "\U000F0594", # clear-night
        "\U000F0590", # cloudy
        "\U000F0F2F", # exceptional
        "\U000F0591", # fog
        "\U000F0592", # hail
        "\U000F0593", # lightning
        "\U000F067E", # lightning-rainy
        "\U000F0595", # partlycloudy
        "\U000F0596", # pouring
        "\U000F0597", # rainy
        "\U000F0598", # snowy
        "\U000F067F", # snowy-rainy
        "\U000F0599", # sunny
        "\U000F059D", # windy
        "\U000F059E", # windy-variant

Affected lines in the config: https://github.com/Madelena/esphome-weatherman-dashboard/blob/c461b16ad41afa46ebf356ff16016d88ffecfb09/weatherman.yaml#L451C1-L480C43