To mofidy the BLINDS icon

(Francesco) #1

Hi to all
i have this Icon of a BLINDS



In this image we can see that when the blind icon is up the % is zero. Instead when the blind icon is down the % is 100.
Is it possible to do the opposite?

0 Likes

(SiHui) #2

Which hardware??? You need to give much more information when asking questions:

If zwave hardware, just change the configuration in your blinds_control channel

grafik

0 Likes

(Andrew Pawelski) #3

if you only use that icon for that purpose, you could change the name of each percentage icon file.

1 Like

(Francesco) #4

I solved.
To close completaly the bilnd it takes 24 sec.
So i created an
item Icon as String
Then i use this code:

 icon = (24 - actual_time).intValue
			icon = (icon/0.24).intValue

			Icon.postUpdate(icon)

So i have 0% when the icon is completaly opened as this image:

and 100% when the icon is completaly closed:

0 Likes

(Rossko57) #5

Well, you should not change the default icons. You could copy the icons and rename to reverseblind.svg etc.

0 Likes

(Francesco) #6

it doesn’t work.
while i open the blind the icon don’t change from closed to opened

0 Likes

(Rossko57) #7

Obviously you have to rename your icons in a different order to get different pictures for the same state. You have to put these iconsin the right folder. You have to check the default icon style settings for your UI in PaperUI.
You have to change your Item icon reference to point to your new icons.
You may have to chnage your sitemap if you are specifying icons there.

You have to give us more info when you want help.

1 Like

(Francesco) #8

ok now it works :slight_smile:
Thank’s

0 Likes