Add items to rooms

HI,

I got my openhab running on a raspberry pi 3, i was also able to install influxdb, grafana and set up persistence.
The only thing i’m still not getting is how to create a proper sitemap…

Could someone please show me an example where i would add items:

Switch Wall_Plug “Wall Plug” zwave:device:4128143b:node2:sensor_power
Number Wall_Plug_Power “Wall Plug - current energy [%.1f W]” zwave:device:4128143b:node2:meter_watts
Number Wall_Plug_Energy “Wall Plug - total energy [%.2f KWh]” zwave:device:4128143b:node2:meter_kwh

to a room called “home theatre” in a sitemap “home”

i can’t imagine this being hard, but i’m not succeeding.I tried following the documentation but that’s not really helping either…

thanks in advance !

May I suggest the UI based home builder?
https://docs.openhab.org/configuration/homebuilder.html

I can’t believe i hadn’t found that already… i’ll check that out for sure ! thanks !

Hello,

Try Frames…

sitemap default label="Home"
{
    Frame label="home theatre" {
        Switch item=Wall_Plug
        Text item=Wall_Plug_Power
        Text item= Wall_plug_Energy
    }
 }

Or

With an Text item that opens another “page”

{
    Text label="home theatre" {
        Switch item=Wall_Plug
        Text item=Wall_Plug_Power
        Text item= Wall_plug_Energy
    }
 }

Good luck

So when using frames i don’t have to use the complete ‘zwave:device:4128143b:node2:meter_watts’ id ?

sorry for the dumb questions… switching from domoticz, which is a little easier to set up but more limited in my opinion.

No you don’t
This is only for your items file where you define the item with name, tag, icon, group and binding
On the sitemap you only “map” what you want to display

Regards