More than one Room Widget at page

Hi,

I have tried to add more than one room widget in an page which was not working. Only the last room widget was shown. I used following test code:

“label”: “Haus”,
“icon”: “light”,
“widgets”:
[
{
“type”: “room”,
“position”: “0-0,1-3”,
“properties”:
{
“label”: “Wohnzimmer”,
“photo”:
{
“binding”:
},
“elements”:
{
}
},

                        "type": "room",
                        "position": "1-0,1-3",
                        "properties": 
                        {
                            "label": "Schlafzimmer",
                            "photo": 
                            {
                                    "binding": 
                            },
                            "elements": 
                            {
                            } 
                        }
                    }

                ]
            },

I see few issues with this JSON that could be the reason:

  • double quotes are different characters in the first and second parts
  • “binding” keys don’t have corresponding value
  • second widget is missing opening bracket

This JSON works for me:

{
  "label": "Haus",
  "icon": "light",
  "widgets": [
    {
      "type": "room",
      "position": "0-0,1-3",
      "properties": {
        "label": "Wohnzimmer",
        "photo": {
          "binding": ""
        },
        "elements": {

        }
      }
    },
    {
      "type": "room",
      "position": "1-0,1-3",
      "properties": {
        "label": "Schlafzimmer",
        "photo": {
          "binding": ""
        },
        "elements": {

        }
      }
    }
  ]
}

Yes this work thanks a lot.