{
  "hub": {
    "id": "hub-home-01",
    "name": "Maple House",
    "timezone": "America/Toronto",
    "location": {
      "latitude": 43.6532,
      "longitude": -79.3832,
      "elevationMeters": 76
    },
    "firmware": {
      "version": "4.18.2",
      "channel": "stable",
      "autoUpdate": true,
      "maintenanceWindow": {
        "day": "Sunday",
        "start": "03:00",
        "durationMinutes": 90
      }
    },
    "network": {
      "status": "online",
      "connection": "ethernet",
      "localAddress": "192.168.1.20",
      "fallbackWifi": {
        "enabled": true,
        "ssid": "MapleHouse-IoT"
      }
    }
  },
  "services": {
    "mqtt": {
      "enabled": true,
      "host": "mqtt.local",
      "port": 8883,
      "tls": true,
      "clientId": "maple-house-hub",
      "topicPrefix": "home/maple"
    },
    "discovery": {
      "mdns": true,
      "ssdp": true,
      "scanIntervalSeconds": 300
    },
    "telemetry": {
      "enabled": true,
      "retentionDays": 30,
      "metrics": [
        "temperature",
        "humidity",
        "energy",
        "air_quality"
      ]
    }
  },
  "rooms": [
    {
      "id": "room-living",
      "name": "Living Room",
      "floor": 1,
      "devices": [
        {
          "id": "light-living-main",
          "type": "dimmable_light",
          "name": "Ceiling Lights",
          "online": true,
          "state": {
            "power": true,
            "brightness": 68,
            "colorTemperatureKelvin": 3200
          },
          "capabilities": [
            "power",
            "brightness",
            "color_temperature"
          ]
        },
        {
          "id": "sensor-living-climate",
          "type": "climate_sensor",
          "name": "Living Room Sensor",
          "online": true,
          "state": {
            "temperatureCelsius": 21.7,
            "humidityPercent": 42,
            "co2Ppm": 612,
            "batteryPercent": 84
          },
          "lastSeen": "2026-07-16T14:32:18-04:00"
        }
      ]
    },
    {
      "id": "room-kitchen",
      "name": "Kitchen",
      "floor": 1,
      "devices": [
        {
          "id": "plug-kitchen-coffee",
          "type": "smart_plug",
          "name": "Coffee Maker",
          "online": true,
          "state": {
            "power": false,
            "currentWatts": 0,
            "energyTodayKwh": 0.42
          },
          "safety": {
            "maximumWatts": 1500,
            "autoOffMinutes": 30
          }
        },
        {
          "id": "sensor-kitchen-leak",
          "type": "water_leak_sensor",
          "name": "Sink Leak Sensor",
          "online": true,
          "state": {
            "leakDetected": false,
            "batteryPercent": 96
          },
          "lastTested": "2026-07-01T09:15:00-04:00"
        }
      ]
    },
    {
      "id": "room-bedroom-primary",
      "name": "Primary Bedroom",
      "floor": 2,
      "devices": [
        {
          "id": "thermostat-bedroom",
          "type": "thermostat",
          "name": "Bedroom Thermostat",
          "online": true,
          "state": {
            "mode": "cool",
            "ambientTemperatureCelsius": 22.4,
            "targetTemperatureCelsius": 21,
            "fan": "auto",
            "running": false
          },
          "scheduleId": "schedule-sleep"
        }
      ]
    }
  ],
  "automations": [
    {
      "id": "automation-arrive-home",
      "name": "Welcome Home",
      "enabled": true,
      "trigger": {
        "type": "presence",
        "event": "first_person_arrives",
        "zones": [
          "home"
        ]
      },
      "conditions": [
        {
          "type": "sun",
          "after": "sunset"
        }
      ],
      "actions": [
        {
          "service": "light.turn_on",
          "targets": [
            "light-living-main"
          ],
          "parameters": {
            "brightness": 55,
            "transitionSeconds": 2
          }
        }
      ]
    },
    {
      "id": "automation-leak-alert",
      "name": "Water Leak Emergency",
      "enabled": true,
      "trigger": {
        "type": "device_state",
        "deviceId": "sensor-kitchen-leak",
        "property": "leakDetected",
        "equals": true
      },
      "actions": [
        {
          "service": "notification.send",
          "targets": [
            "owner-primary",
            "owner-secondary"
          ],
          "parameters": {
            "priority": "critical",
            "message": "Water detected under the kitchen sink."
          }
        },
        {
          "service": "valve.close",
          "targets": [
            "valve-main-water"
          ],
          "parameters": {}
        }
      ]
    }
  ],
  "users": [
    {
      "id": "owner-primary",
      "displayName": "Alex",
      "role": "owner",
      "presence": {
        "status": "home",
        "updatedAt": "2026-07-16T14:28:04-04:00"
      },
      "notifications": {
        "push": true,
        "email": true,
        "criticalAlerts": true
      }
    },
    {
      "id": "owner-secondary",
      "displayName": "Sam",
      "role": "administrator",
      "presence": {
        "status": "away",
        "updatedAt": "2026-07-16T08:03:41-04:00"
      },
      "notifications": {
        "push": true,
        "email": false,
        "criticalAlerts": true
      }
    }
  ],
  "system": {
    "status": "healthy",
    "uptimeSeconds": 1843921,
    "lastBackup": {
      "completedAt": "2026-07-16T02:05:12-04:00",
      "destination": "encrypted_local_storage",
      "sizeBytes": 4831932,
      "verified": true
    },
    "alerts": [],
    "generatedAt": "2026-07-16T14:33:00-04:00"
  }
}