Text Based Config: Where am I going wrong?


#1

{
“dashboards”: {
“home”: {
“columns”: 8,
“rows”: 6,
“pages”: [
{
“label”: “Home”,
“icon”: “home”,
“widgets”: [

{
“type”: “room”,
“position”: “0-0,3-3”,
“properties”: {
“label”: “Master Bedroom”,
“photo”: {
“binding”: “Backdrop_Living_Room”
},
“elements”: {
“lights”: {
“type”: “switch”,
“icon”: “light”,
“state”: {
“binding”: “gRM_MBedroom_Lights_S”
}
},
“fan”: {
“type”: “switch”,
“icon”: “fan”,
“state”: {
“binding”: “Dimmer_BR_Fan”
}
},
“motion”: {
“type”: “motion”,
“icon”: “motion”,
“state”: {
“binding”: “MBR_Occupancy”
}
},
“temperature”: {
“type”: “temperature”,
“icon”: “temperature”,
“state”: {
“binding”: “MBedRoomTemp”
}
}
}
}
}

{
“type”: “switch”,
“position”: “4-0,1-1”,
“properties”: {
“label”: “Outlet”,
“icon”: “switch”,
“state”: {
“binding”: “Outlet_BR_1”
},
“reverse”: false
}
}

	  ]
    },
    {
      "label": "Page #2",
      "icon": "number-2",
      "widgets": []
    },
    {
      "label": "Page #3",
      "icon": "number-3",
      "widgets": []
    },
    {
      "label": "Page #4",
      "icon": "number-4",
      "widgets": []
    },
    {
      "label": "Page #5",
      "icon": "number-5",
      "widgets": []
    }
  ]
}

}
}


#2

Got it… You need commas between widgets opening and closing brackets. Maybe we need to add an entire example config file. Just to show people how it looks put together.