[SOLVED] How to utilize static icons instead of dynamic ones

Greetings all,

When building my sitemap I have noticed that some of the icons are dynamic (on/off switch turning green and red, light bulbs changing shade, etc).

How would I go about using those exact same icons but have them be static instead of dynamic ?

Thanks !

Make a copy of the icon file (https://www.openhab.org/docs/configuration/iconsets/classic/#icons) and put the files in $OH_CONF/icons/classic.

Change the name making sure to remove the parts between the - inclusive and the .png or .svg exclusive. For example if you have switch-on.png, change to myswitch.png.

Then in your Item definition use “myswitch” as the icon.

1 Like

Thanks !