Are mappings needed?

So I have openHAB running and it looks like the rules are working, so now I’m trying to get a sitemap built. If I have all of my (Insteon) switches listed in my .items file, do I need to specify mapping in the .sitemap? All I have in there so far are basic switches and an LED bulb (dimmer).
Here’s a snippet of the sitemap file:

sitemap our_home label=“Our Home” {
Frame label=“First Floor” icon=“groundfloor” {
Group item=FamilyRoom
Switch item=den [label=“Den Light”] [icon=“switch”] [mappings=""]
Switch item=cabinet [label=“Cabinet”] [icon=“switch”] [mappings=""]
}

Thanks.

Mike

Nope. You would use them if you wanted to represent the ON/OFF position of a switch as DAY/NIGHT or AUS/EIN or suchlike.

The [] you may have picked up erroneously from docs, being used to indicate optional stuff.
Start simple.

sitemap our_home label=“Our Home” {
Frame label=“First Floor” icon=“groundfloor” {
   Group item=FamilyRoom
   Switch item=cabinet
   Switch item=den label=“overrides Item label” icon=“overrides Item icon” 
}
1 Like

Thanks, that did it!

please be sure to mark this thread as solved by clicking the little box!