[SOLVED] Astro Binding and dynamic icons

Hi folks,

I’ve a strange issue here, I hope you can help me.

I’m installing the Astro Binding, and then I would like to add some specific icons, eg. for each season (spring, summer, autumn, winter).

so I’ve created 5 files:

weather_season.png
weather_season-Summer.png
weather_season-Spring.png
weather_season-Autumn.png
weather_season-Winter.png

then, quite simple and usual stuff, in the sitemap:

Text item=Astro_Sun_Season_Name icon="weather_season"

Nothing … with all items from Astro Binding I’m not able to use dynamic icons. Both ClassicUI and BasicUI use only the generic icon weather_seasons.png

Exactly the same with other items, like Zodiac Sign (both Moon and Sun).

Other items from other bindings are working like a charm.

How can I troubleshoot properly?

My logs are reporting this:

2018-08-23 18:25:14.161 [WARN ] [io.openhabcloud.internal.CloudClient] - Jetty request 36686558 failed: null
2018-08-23 18:25:14.163 [WARN ] [io.openhabcloud.internal.CloudClient] - Response Failure: null
2018-08-23 18:25:15.633 [WARN ] [io.openhabcloud.internal.CloudClient] - Jetty request 36686593 failed: null
2018-08-23 18:25:15.634 [WARN ] [io.openhabcloud.internal.CloudClient] - Response Failure: null
2018-08-23 18:25:16.645 [WARN ] [io.openhabcloud.internal.CloudClient] - Jetty request 36686620 failed: null
2018-08-23 18:25:16.647 [WARN ] [io.openhabcloud.internal.CloudClient] - Response Failure: null
2018-08-23 18:25:59.124 [WARN ] [org.eclipse.jetty.http.HttpParser   ] - URI is too large >8192
2018-08-23 18:25:59.127 [WARN ] [org.eclipse.jetty.http.HttpParser   ] - bad HTTP parsed: 414 for HttpChannelOverHttp@3c2487be{r=26,c=false,a=IDLE,uri=null}
2018-08-23 18:26:39.771 [WARN ] [io.openhabcloud.internal.CloudClient] - Jetty request 36687402 failed: null
2018-08-23 18:26:39.773 [WARN ] [io.openhabcloud.internal.CloudClient] - Response Failure: null

but the icons are 400KB, and in any case if the problem should be icon size/dimension, I should not be able to see also the generic icons, right?

Please let me know your thoughts

thanks

Andrea

The following guidelines apply to user-added icon files:

  • Only png or svg file formats may be used
  • Icon filenames may include lowercase letters, numbers and underscores ( _ )
  • Uppercase letters and special characters are prohibited
  • Hyphens ( - ) are reserved for Dynamic Icons (see below)
1 Like

ciao Rich,

thanks for your support here.

I checked all my icon files, and now they are like:

weather_season.png
weather_season-summer.png
weather_season-spring.png
weather_season-autumn.png
weather_season-winter.png

nothing changed :frowning: eg. now the item reports “Summer”, but the icon is weather_season.png and not weather_season-summer.png

:frowning:

what is strange: I have other dynamic icons, and they work like a charm. Only icons for Astro Binding items have this issue.

Any suggestion?

Andrea

wait, it seems it was an issue with caches.

Now it works like a charm. Thank you Rich for pointing me in the right direction :slight_smile:

Thanks

Andrea