{
  "format": 1,
  "name": "Villa",
  "theme": "night",
  "buttons": "plain",
  "keepScreenOn": true,
  "favorites": ["t1", "t4", "t8"],
  "dock": ["t1", "t8", "t9"],
  "connection": { "mode": "gateway", "gateway": { "name": "Main gateway", "host": "192.168.1.20" } },
  "home": {
    "name": "Home",
    "icon": "home",
    "tiles": [
      { "type": "section", "name": "Spaces", "icon": "at_home" },
      { "type": "navigation", "name": "Living room", "icon": "living", "target": "r1", "cardColor": "#1E3A5F" },
      { "type": "navigation", "name": "Kitchen", "icon": "kitchen", "target": "r2", "cardColor": "#4A3420" },
      { "type": "navigation", "name": "Bedroom", "icon": "bedroom", "target": "r3", "cardColor": "#3B2A4D" },

      { "type": "section", "name": "Outside", "icon": "sun", "collapsible": true },
      { "type": "valueDisplay", "name": "Outdoor", "icon": "temperature", "valueType": "f16", "unit": "°C", "decimals": 1, "status": { "address": "5/1/1", "dpt": "9.001" } },
      { "type": "statusIndicator", "name": "Rain", "icon": "rain", "status": "5/1/2", "zeroLabel": "Dry", "oneLabel": "Raining", "onColor": "#4FC3F7" },
      { "id": "t9", "type": "scene", "name": "All off", "icon": "all_off", "command": "4/0/1", "scene": 0, "cardColor": "#5C1F24", "color": "#FF8A80" }
    ],
    "rooms": [
      {
        "id": "r1",
        "name": "Living room",
        "icon": "living",
        "panels": [
          {
            "tiles": [
              { "type": "section", "name": "Lights", "icon": "light", "color": "#FFD166", "collapsible": true },
              { "id": "t1", "type": "switch", "name": "Ceiling light", "icon": "light_group", "command": "1/1/1", "status": "1/1/2", "cardColor": "#1E3A5F", "onColor": "#FFD166" },
              { "type": "dimmer", "name": "Sofa lamp", "icon": "floor_lamp", "switch": "1/1/10", "switchStatus": "1/1/11", "brightness": "1/1/12", "brightnessStatus": "1/1/13", "cardColor": "#1E3A5F", "onColor": "#FFD166" },
              { "type": "colorLight", "name": "Accent strip", "light": "rgb", "switch": "1/3/1", "rgb": "1/3/2", "rgbStatus": "1/3/3", "cardColor": "#1E3A5F" },

              { "type": "section", "name": "Shading", "icon": "shutter", "collapsible": true },
              { "type": "blind", "name": "Terrace blind", "move": "2/1/1", "stop": "2/1/2", "positionStatus": "2/1/3", "cardColor": "#1E3A5F", "onColor": "#80CBC4" }
            ]
          },
          {
            "tiles": [
              { "type": "section", "name": "Climate", "icon": "heating" },
              { "id": "t4", "type": "thermostat", "name": "Living room", "setpoint": "3/1/1", "setpointStatus": "3/1/2", "roomTemperature": "3/1/3", "cardColor": "#12343B" },
              { "type": "modeStatus", "name": "Heating mode", "status": { "address": "3/1/9", "dpt": "20.102" }, "states": [{ "value": 1, "name": "Comfort" }, { "value": 2, "name": "Standby" }, { "value": 3, "name": "Economy" }], "cardColor": "#12343B" }
            ]
          }
        ]
      },
      {
        "id": "r2",
        "name": "Kitchen",
        "icon": "kitchen",
        "tiles": [
          { "type": "section", "name": "Lights", "icon": "light" },
          { "type": "switch", "name": "Counter light", "icon": "wall_lamp", "command": "1/4/1", "status": "1/4/2", "cardColor": "#4A3420", "onColor": "#FFB74D" },
          { "type": "tunableWhite", "name": "Island", "switch": "1/4/10", "brightness": "1/4/11", "temperature": "1/4/12", "temperatureStatus": "1/4/13", "cardColor": "#4A3420" },

          { "type": "section", "name": "Appliances", "icon": "oven" },
          { "type": "valueControl", "name": "Hood fan", "icon": "speed", "valueType": "percent", "control": "buttons", "command": { "address": "6/2/1", "dpt": "5.001" }, "status": { "address": "6/2/2", "dpt": "5.001" }, "choices": [{ "value": 0, "name": "Off" }, { "value": 50, "name": "Half" }, { "value": 100, "name": "Full" }] },
          { "type": "statusIndicator", "name": "Window", "icon": "window", "status": { "address": "6/1/1", "dpt": "1.019" }, "zeroLabel": "Closed", "oneLabel": "Open", "onColor": "orange" }
        ]
      },
      {
        "id": "r3",
        "name": "Bedroom",
        "icon": "bedroom",
        "tiles": [
          { "type": "section", "name": "Comfort", "icon": "sleep" },
          { "id": "t8", "type": "airConditioner", "name": "Bedroom AC", "switchCommand": "8/1/1", "switchStatus": "8/1/2", "setpoint": "8/1/3", "mode": "8/1/4", "fanSpeed": "8/1/5", "cardColor": "#3B2A4D", "onColor": "#80DEEA" },
          { "type": "fanCoil", "name": "Fan coil", "fanSpeed": "7/1/1", "fanSpeedStatus": "7/1/2", "onOff": true, "switchCommand": "7/1/3", "switchStatus": "7/1/4", "cardColor": "#3B2A4D" },
          { "type": "dimmer", "name": "Bedside", "icon": "table_lamp", "switch": "1/5/1", "brightness": "1/5/2", "brightnessStatus": "1/5/3", "cardColor": "#3B2A4D", "onColor": "#FFD166" }
        ]
      }
    ]
  }
}
