Hello openHAB friends,
I am Using a Raspberry Pi 3+ with openhabian and today I was working for my devices an online rule, where the icon changes with the online and offline state. It was working fine, but the icons would not change. As Example the network icon.
When the device is offline, their showing in the sitemap the network-off icon. But it is the normal network icon. This is only working with a switch.
After I downloaded the network-on.svg and network-off.svg renamed it to network_on.svg/network_off.svg and put it in the costume icon folder, then it works.
Example not working, shows the default icon (network):
Text item=Oneplus_5_Status icon="network-on" visibility=[Oneplus_5_Status=="Online"]
Text item=Oneplus_5_Status icon="network-off" visibility=[Oneplus_5_Status!="Online"]
Example working with renamed icons:
Text item=Oneplus_5_Status icon="network_on" visibility=[Oneplus_5_Status=="Online"]
Text item=Oneplus_5_Status icon="network_off" visibility=[Oneplus_5_Status!="Online"]
But why can’t the sitemap show the different types of the icon when I use an icon="xxx"
? Same is when I put the icon name behind an item with <icon>
, shows the default icon too.
It’s kind of suggestion for improvement
Greetings