Can someone help me with my sitemap/items please?

I had this working but I changed something and now I can’t get it to work and I’m not sure where I went wrong.

Here is my sitemap and my items.

sitemap default label="Henery Home"

{

                Frame label="Rooms" icon="house" {

                                Group item=Living_Room label="Living room" 

{item=livingroomLamp1 item=livingroomLamp2

Switch item=livingroomLamp1
Switch item=livingroomLamp2}

Group item=Bed_Room label="Bed Room" 

{Switch item=shereesLamp
Switch item=stevensLamp}

Group item=Hall_Landing label="Hall Landing"

{Switch item=hallLamp}

Group item=Back_Garden label="Back Garden"

{Switch item=gardenLamp}

Switch   livingroomLamp1                "Table Lamp"                              <light>  (Living_Room)                            [ "Switchable" ]    { mqtt=">[broker:/livingroomLamp1/gpio/12:command:ON:1],>[broker:/livingroomLamp1/gpio/12:command:OFF:0],<[broker:/livingroomLamp1/lightState/Switch:command:ON:1],<[broker:/livingroomLamp1/lightState/Switch:command:OFF:0]" }

Switch   livingroomLamp2                "Side Lamp"                              <light>  (Living_Room)                            [ "Switchable" ]    { mqtt=">[broker:/livingroomLamp2/gpio/12:command:ON:1],>[broker:/livingroomLamp2/gpio/12:command:OFF:0],<[broker:/livingroomLamp2/lightState/Switch:command:ON:1],<[broker:/livingroomLamp2/lightState/Switch:command:OFF:0]" }

Switch   shereesLamp                "Sherees Lamp"                              <light>  (Bed_Room)                            [ "Switchable" ]    { mqtt=">[broker:/shereesLamp/gpio/12:command:ON:1],>[broker:/shereesLamp/gpio/12:command:OFF:0],<[broker:/shereesLamp/lightState/Switch:command:ON:1],<[broker:/shereesLamp/lightState/Switch:command:OFF:0]" }

Switch   stevensLamp                "Stevens Lamp"                              <light>  (Bed_Room)                            [ "Switchable" ]    { mqtt=">[broker:/stevensLamp/gpio/12:command:ON:1],>[broker:/stevensLamp/gpio/12:command:OFF:0],<[broker:/stevensLamp/lightState/Switch:command:ON:1],<[broker:/stevensLamp/lightState/Switch:command:OFF:0]" }

Switch   hallLamp                "Hall Lamp"                              <light>  (Hall_Landing)                            [ "Switchable" ]    { mqtt=">[broker:/hallLamp/gpio/12:command:ON:1],>[broker:/hallLamp/gpio/12:command:OFF:0],<[broker:/hallLamp/lightState/Switch:command:ON:1],<[broker:/hallLamp/lightState/Switch:command:OFF:0]" }

Switch   gardenLamp                "Back Garden Light"                              <light>  (Back_Garden)                            [ "Switchable" ]    { mqtt=">[broker:/gardenLamp/gpio/12:command:ON:1],>[broker:/gardenLamp/gpio/12:command:OFF:0],<[broker:/gardenLamp/lightState/Switch:command:ON:1],<[broker:/gardenLamp/lightState/Switch:command:OFF:0]" }

kind regards

Steven

Could you please correct your posting? That looks like a wild mixture of items and sitemap elements and is problably not what you have in your files, is it? A typical sitemap should look like this: http://docs.openhab.org/configuration/sitemaps.html#full-example

Ok here is my items.

Switch livingroomLamp1 “Table Lamp” (Living_Room) [ “Switchable” ] { mqtt=">[broker:/livingroomLamp1/gpio/12:command:ON:1],>[broker:/livingroomLamp1/gpio/12:command:OFF:0],<[broker:/livingroomLamp1/lightState/Switch:command:ON:1],<[broker:/livingroomLamp1/lightState/Switch:command:OFF:0]" }

Switch livingroomLamp2 “Side Lamp” (Living_Room) [ “Switchable” ] { mqtt=">[broker:/livingroomLamp2/gpio/12:command:ON:1],>[broker:/livingroomLamp2/gpio/12:command:OFF:0],<[broker:/livingroomLamp2/lightState/Switch:command:ON:1],<[broker:/livingroomLamp2/lightState/Switch:command:OFF:0]" }

Switch shereesLamp “Sherees Lamp” (Bed_Room) [ “Switchable” ] { mqtt=">[broker:/shereesLamp/gpio/12:command:ON:1],>[broker:/shereesLamp/gpio/12:command:OFF:0],<[broker:/shereesLamp/lightState/Switch:command:ON:1],<[broker:/shereesLamp/lightState/Switch:command:OFF:0]" }

Switch stevensLamp “Stevens Lamp” (Bed_Room) [ “Switchable” ] { mqtt=">[broker:/stevensLamp/gpio/12:command:ON:1],>[broker:/stevensLamp/gpio/12:command:OFF:0],<[broker:/stevensLamp/lightState/Switch:command:ON:1],<[broker:/stevensLamp/lightState/Switch:command:OFF:0]" }

Switch hallLamp “Hall Lamp” (Hall_Landing) [ “Switchable” ] { mqtt=">[broker:/hallLamp/gpio/12:command:ON:1],>[broker:/hallLamp/gpio/12:command:OFF:0],<[broker:/hallLamp/lightState/Switch:command:ON:1],<[broker:/hallLamp/lightState/Switch:command:OFF:0]" }

Switch gardenLamp “Back Garden Light” (Back_Garden) [ “Switchable” ] { mqtt=">[broker:/gardenLamp/gpio/12:command:ON:1],>[broker:/gardenLamp/gpio/12:command:OFF:0],<[broker:/gardenLamp/lightState/Switch:command:ON:1],<[broker:/gardenLamp/lightState/Switch:command:OFF:0]" }

And here is my sitemap.

sitemap default label=“Henery Home”

{

            Frame label="Rooms" icon="house" {

                            Group item=Living_Room label="Living room" 

{item=livingroomLamp1 item=livingroomLamp2

Switch item=livingroomLamp1
Switch item=livingroomLamp2}

Group item=Bed_Room label=“Bed Room”

{Switch item=shereesLamp
Switch item=stevensLamp}

Group item=Hall_Landing label=“Hall Landing”

{Switch item=hallLamp}

Group item=Back_Garden label=“Back Garden”

{Switch item=gardenLamp}

I basically had it that I would click on Henry home on the basic ui and it would give a lost of house icons in which I could turn different light switches off.

I altered the code and now I cant get it to load anything anymore.

Your sitemap has a funny format, so it is a bit hard to tell, but the most obvious mistake is that you are missing a couple of '}'s at the end of your sitemap. You need to close the Frame and Sitemap tags.

May I suggest to use the OpenHAB designer as this should help you catch these kind of mistakes rather quickly.

1 Like

What @KjetilA said, also please use the code fences function in the toolbar to achieve a better presentation of your code. Also I believe your idea of what Groups does is wrong.

I believe this would be closer to what you are trying to do:

sitemap default label="Henery Home" {
	Frame label="Rooms" icon="house" {
		Text label="LivingRoom" {
			Switch item=livingroomLamp1
			Switch item=livingroomLamp2
			Switch item=shereesLamp
			Switch item=stevensLamp
		}
		//Alternative:
		Group item=Back_Garden label="Back Garden"
	}
}

Again, please check out the documentation on Sitemaps I’ve linked to above.

Hi thanks very much for helping me.
I just have a very basic setup to start with.


Not really sure about code fences tbh. I took a lot of the white spacing out to make it look easier for me while editing. Its probably the wrong way to go but it seems to work.

I’m now trying to get persistence working with ifttt.
I have created myopenhab.persist and also edited the runtime.cfg to include #org.eclipse.smarthome.persistence:default=myopenhab
I have myopenhab cloud all set up and can access remotely but can’t see ifttt items in drop down