esphome-weatherman-dashboard icon indicating copy to clipboard operation
esphome-weatherman-dashboard copied to clipboard

Too many weather icons in flash

Open nagyrobi opened this issue 1 month ago • 0 comments

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

nagyrobi avatar Jun 05 '24 14:06 nagyrobi