Openhab2 cant read .items file?

I had a working setup with openhab 2. Last weekend i updated my openhab and uninstalled apache2(not sure if that is relevant). After doing that it seems that it no longer are able to read the .items file.
image
Here it is showing item name and not lable and command are not responding.
here are the sitemap:

sitemap home label="Hjemme"
{
        Frame label="Stue"
        {
                Switch item=stue_taklys3
                Group item=stuevindu_lys
        }
}

And here are the .items file

Switch stue_taklys3 "Lys verandadør" <light>{mqtt=">[broker:home/stue/verandador:command:ON:ON],>[broker:home/stue/verandador:command:OFF:OFF]"}

Group:switch:OR(ON, OFF) stuevindu_lys "Stue vindu" <light>
Switch stuevindu_lys_alle "Alle" <light> (stuevindu_lys){mqtt=">[broker:stue/stuevindu:command:ON:AON],>[broker:stue/stuevindu:command:OFF:AOFF]"}
Switch stuevindu_lys1 "Lys1" <light> (stuevindu_lys){mqtt=">[broker:stue/stuevindu:command:ON:1ON],>[broker:stue/stuevindu:command:OFF:1OFF]"}
Switch stuevindu_lys2 "Lys2" <light> (stuevindu_lys){mqtt=">[broker:stue/stuevindu:command:ON:2ON],>[broker:stue/stuevindu:command:OFF:2OFF]"}
Switch Stuevindu_lys3 "Lys3" <light> (stuevindu_lys){mqtt=">[broker:stue/stuevindu:command:ON:3ON],>[broker:stue/stuevindu:command:OFF:3OFF]"}
Switch stuevindu_lys4 "Lys4" <light> (stuevindu_lys){mqtt=">[broker:stue/stuevindu:command:ON:4ON],>[broker:stue/stuevindu:command:OFF:4OFF]"}

And when i open the group there is nothing in there.

Please help

-jonaberg

What does your openhab.log show when you start openHAB?
Do you have any errors regarding the items file?

2018-03-20 20:58:50.651 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI
2018-03-20 20:59:00.924 [INFO ] [penhab.io.transport.mqtt.MqttService] - Stopping broker connection 'broker'
2018-03-20 20:59:01.180 [INFO ] [assic.internal.servlet.WebAppServlet] - Stopped Classic UI
2018-03-20 20:59:01.788 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Stopped Paper UI
2018-03-20 20:59:01.801 [INFO ] [panel.internal.HABPanelDashboardTile] - Stopped HABPanel
2018-03-20 20:59:01.815 [INFO ] [.dashboard.internal.DashboardService] - Stopped Dashboard
2018-03-20 20:59:11.898 [INFO ] [.internal.GenericScriptEngineFactory] - Activated scripting support for ECMAScript
2018-03-20 20:59:18.988 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'switch.items'
2018-03-20 20:59:19.077 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'home.items' has errors, therefore ignoring it: [18,7]: no viable alternative at input 'switch'
[18,13]: missing EOF at ':'

2018-03-20 20:59:19.131 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'backup.items' has errors, therefore ignoring it: [18,7]: no viable alternative at input 'switch'
[18,13]: missing EOF at ':'

2018-03-20 20:59:20.991 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2018-03-20 20:59:21.354 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'home.rules'
2018-03-20 20:59:21.380 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'home.rules' is either empty or cannot be parsed correctly!
2018-03-20 20:59:21.648 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'home.sitemap'
2018-03-20 20:59:21.987 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'home.things'
2018-03-20 20:59:21.992 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model 'home.things' is either empty or cannot be parsed correctly!
2018-03-20 20:59:22.915 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://192.168.2.69:8080
2018-03-20 20:59:22.916 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://192.168.2.69:8443
2018-03-20 20:59:24.078 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2018-03-20 20:59:24.220 [INFO ] [assic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app
2018-03-20 20:59:24.248 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2018-03-20 20:59:24.462 [WARN ] [penhab.io.transport.mqtt.MqttService] - Unrecognized property: broker.ansync
2018-03-20 20:59:24.463 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.
2018-03-20 20:59:24.465 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'broker'
2018-03-20 20:59:24.821 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel

after a restart of the service i get this

Here is the problem. Your item files are not loading because there is an error.
Line 18, column 7

Could you post the files?

The entire home.items


 //this is things

//switch
Switch stue_taklys3 "Lys verandadør" <light>{mqtt=">[broker:home/stue/verandador:command:ON:ON],>[broker:home/stue/verandador:command:OFF:OFF]"}

Group:switch:OR(ON, OFF) stuevindu_lys "Stue vindu" <light>
Switch stuevindu_lys_alle "Alle" <light> (stuevindu_lys){mqtt=">[broker:stue/stuevindu:command:ON:AON],>[broker:stue/stuevindu:command:OFF:AOFF]"}
Switch stuevindu_lys1 "Lys1" <light> (stuevindu_lys){mqtt=">[broker:stue/stuevindu:command:ON:1ON],>[broker:stue/stuevindu:command:OFF:1OFF]"}
Switch stuevindu_lys2 "Lys2" <light> (stuevindu_lys){mqtt=">[broker:stue/stuevindu:command:ON:2ON],>[broker:stue/stuevindu:command:OFF:2OFF]"}
Switch Stuevindu_lys3 "Lys3" <light> (stuevindu_lys){mqtt=">[broker:stue/stuevindu:command:ON:3ON],>[broker:stue/stuevindu:command:OFF:3OFF]"}
Switch stuevindu_lys4 "Lys4" <light> (stuevindu_lys){mqtt=">[broker:stue/stuevindu:command:ON:4ON],>[broker:stue/stuevindu:command:OFF:4OFF]"}

the entire backup.items


 //this is things

//switch
Switch DEMOSW "Lys Vindu" <light>{mqtt=">[broker:home/test:command:ON:ON],>[broker:home/test:command:OFF:OFF]"}
Switch test1 "Taklys 1" <light> {mqtt=">[broker:stue/stuevindu:command:ON:ON],>[broker:stue/stuevindu:command:OFF:OFF]"}
Switch kjokken_taklys2 "Taklys 2" <light>
//Group:Switch:OR(ON,OFF) group_switch "Stuelys" <light>
Switch stue_taklys1 "Taklys TV" <fan_ceiling>
Switch stue_taklys2 "Taklys spisesuebord" <light>
Switch stue_taklys3 "Lys verandadør" <light>{mqtt=">[broker:home/stue/verandador:command:ON:ON],>[broker:home/stue/verandador:command:OFF:OFF]"}
Number dht_temp_stue "Tempratur: " <temperature>
Switch test_red "Red " <light>{mqtt=">[broker:test/red:command:ON:RON],>[broker:test/red:command:OFF:ROFF]"}
Switch test_blue "Blue" <light>{mqtt=">[broker:test/blue:command:ON:BON],>[broker:test/blue:command:OFF:BOFF]"}
Switch test_green "Green" <light>{mqtt=">[broker:test/green:command:ON:GON],>[broker:test/green:command:OFF:GOFF]"}


Group:switch:OR(ON, OFF) light_group "test" <light>
Switch test_switch1 "test1" <light> (light_group)
Switch test_switch2 "test2" <light> (light_group)
Switch test_switch3 "test3" <light> (light_group)

Group:switch:OR(ON, OFF) stuevindu_lys "Stue vindu" <light>
Switch stuevindu_lys_alle "Alle" <light> (stuevindu_lys){mqtt=">[broker:stue/stuevindu:command:ON:AON],>[broker:stue/stuevindu:command:OFF:AOFF]"}
Switch stuevindu_lys1 "Lys1" <light> (stuevindu_lys){mqtt=">[broker:stue/stuevindu:command:ON:1ON],>[broker:stue/stuevindu:command:OFF:1OFF]"}
Switch stuevindu_lys2 "Lys2" <light> (stuevindu_lys){mqtt=">[broker:stue/stuevindu:command:ON:2ON],>[broker:stue/stuevindu:command:OFF:2OFF]"}
Switch Stuevindu_lys3 "Lys3" <light> (stuevindu_lys){mqtt=">[broker:stue/stuevindu:command:ON:3ON],>[broker:stue/stuevindu:command:OFF:3OFF]"}
Switch stuevindu_lys4 "Lys4" <light> (stuevindu_lys){mqtt=">[broker:stue/stuevindu:command:ON:4ON],>[broker:stue/stuevindu:command:OFF:4OFF]"}



Thanks for fast reply!

Found it:

Group:Switch:OR(ON,OFF)

Capital S for Switch

1 Like

Thank you so much!
that’s so wired. That has been there for months and everything worked fine.

Maybe after your update, the syntax checker became more strict.
Please mark the thread as solved.
Take care