Below is the error for the sitemap. I am not sure, I have not been able to thoroughly understand hte rollershutter item, I have just resorted to trail and error method to get this working.
==> /var/log/openhab2/openhab.log <==
2020-09-12 22:07:39.796 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model ‘Room.sitemap’ has errors, therefore ignoring it: [18,9]: mismatched input ‘Rollershutter’ expecting ‘}’
If you look through the available sitemap elements in the doc linked above you will see that Rollershutter is not a listed element. That’s what your error means:
The sitemap parser doesn’t know what to do with the word ‘Rollershutter’ because that is not one of its options and so it thinks it should have encountered the closing brace to end the file.
Look through the actual elements that can be used and find the one that fits your use case (probably the slider or basic switch if you want full control, selection or a mapped switch if you want just a few preset options).
Your element definition has two typos
“bilnds”->“blinds” (probably not going to cause an error, but not going to give you the icon you want)
lavel->label (will almost certainly cause the sitemap parser to fail again if it ever gets there)
All of these things are very specific terms and each must be defined separately in different files:
Rollershutter is an acceptable item type, but it is not one of the sitemap elements. Each sitemap element you add to a sitemap is connected to a particular item, and rollershutter items can be connected to several different types of elements depending on how you want to be able to interact with that item.
the demo.sitemap linked from the docs does not have any element defined as “Rollershutter”, but it does have two examples of elements that can have rollershutter items attached, a switch element and a slider element:
The relationship between elements and items is laid out, probably even more clearly than what I’ve put here, in the sitemap doc link in my first reply.
Because there is no Rollershutter type element in a sitemap.
Just as there is no Dimmer element.
It is unfortunate that there are some sitemap widgets/elements that have the same names as some Item types, like Switch. but thay aretwo different kinds of things.
You can display a Dimmer type Item using a Switch type sitemap widget/element. You can display a Dimmer type Item using a Text type widget. You can display a Dimmer type Item using a Slider type widget.
What you’ll want to know is that you can display and control a Rollershutter type Item using a Switch type widget. That’s useful if you need up/down buttons.
Or you can display and control a Rollershutter type Item using a Slider type widget. That’s useful if your shutter actually offers true position control.