{
  "title": "Demo Home",
  "icon": "house",
  "sources": {
    "home": {
      "url": "https://legatobar.com/examples/design-home-state.json",
      "every": "1m"
    }
  },
  "cards": [
    {
      "id": "sample",
      "type": "text",
      "body": "Sample readings. Connect your own source to see your home."
    },
    {
      "id": "security",
      "type": "link",
      "label": "Security",
      "url": "legato://page/design-security"
    },
    {
      "id": "attention",
      "type": "heading",
      "text": "Needs attention"
    },
    {
      "id": "garage",
      "type": "status",
      "label": "Garage door open",
      "state": "warning",
      "url": "legato://page/design-security",
      "source": {
        "ref": "home",
        "map": {
          "state": {
            "path": "garage_open",
            "values": {
              "true": "warning",
              "false": "ok"
            },
            "default": "unknown"
          }
        },
        "when": {
          "path": "garage_open",
          "equals": true
        }
      }
    },
    {
      "id": "activity",
      "type": "heading",
      "text": "Activity"
    },
    {
      "id": "water",
      "type": "stat",
      "label": "Water flowing",
      "unit": "gal/min",
      "source": {
        "ref": "home",
        "map": {
          "value": "water_flow"
        },
        "when": {
          "path": "water_flow",
          "gt": 0
        }
      }
    }
  ]
}
