Dynamic icons based on percent

Hello,

Well, that should work, I know, but isn’t there a better way?
I mean, if I have new min-max items I should recreate new icons every time.
Something that would create a percent based on min-max and that would be used to call the icon would be better.
I’ve tested this with no luck:

Looking on the icon image link I can see this:

http://<my_OH2_IP:8080/icon/heating-80?state=24&format=png

It means it gets the right icon, BUT the “state=24&format=png” doesn’t allow the icon to be shown and it overrides the heating-80 transfoming it in heating-24 (->heating-20).

Maybe @sondi , the creator, has an Idea? The @rtvb suggestion is something I haven’t understood…

Thanks for any help!!

Simon