But it doesn’t change the text ON in Online and I don’t know what I’m doing wrong.
And at last:
I’ve had a shutter that is not on the list. I made an switch of it and can control it in habpanel. I made a widget for it. But in sitemap it doesn’t work. How can I make a custom thing for an unknown blinds?
The icon must go after the label and before the group, tags, and binding config. The order defined in the docs is required.
Probably because the icon isn’t in the right spot. Fix that first and then we can look at what the problem with the rest might be. But be aware that the built in dynamic icons only work with certain item types. For example, the door icon only works with the Contact item.
This question doesn’t make sense. You don’t put Things on a sitemap, you put Items. If they are unknown blinds how did you make a Thing? What binding controls them?
If it works in HABPanel then you have an item. Put the item on the Sitemap using the appropriate element, probably Slider.
If you want it to be a roller shutter and the channel supports that, you need to use a Rollershutter Item, not a Switch.
If the binding doesn’t support linking that channel to a Rollershutter, a Switch is all you have available because you can only send ON and OFF commands to the channel.