Sitemap cannot retrieve item names

*** Platform information:**

  • Hardware: Raspberry Pi 3 B+ with Aeon Labs Z-Stick + Fibaro Double Switch 2
  • OS: Openhabian
  • Java Runtime Environment: which java platform is used and what version
  • openHAB version: 2.3

*** Issue of the topic: please be detailed explaining your issue**
I just created my very first .Items file and Sitemap. The Sitemap works fine and the Switch status updates, but the physical switch doesnt react. Please have a look at my .items file and my sitemap. When i load the Sitemap the log gives the following report:

2018-07-17 18:53:20.021 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Tor1auf' for widget org.eclipse.smarthome.model.sitemap.Switch

2018-07-17 18:53:20.031 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Switch

2018-07-17 18:53:20.034 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Tor1auf' for widget org.eclipse.smarthome.model.sitemap.Switch

2018-07-17 18:53:20.036 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Tor1auf' for widget org.eclipse.smarthome.model.sitemap.Switch

2018-07-17 18:53:20.038 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Tor1auf' for widget org.eclipse.smarthome.model.sitemap.Switch

My default.items file:

Switch Tor1auf "Tor auf" {channel="zwave:device:304decd7:node5:switch_binary1"}

Switch Tor1zu "Tor zu" {channel="zwave:device:304decd7:node5:switch_binary2"}

My demo.sitemap file

sitemap demo label="Test" {
    Frame label="Date" {
        Text item=Date
    }
    Frame label="Demo" {
        Switch item=Tor1auf icon="light"
        }
    }

Thanks a lot

Try change your sitemap til using Default insted of Switch… Like this:

sitemap demo label="Test" {
    Frame label="Date" {
        Text item=Date
    }
    Frame label="Demo" {
        Default item=Tor1auf icon="light"
        }
    }