{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/tibber/main/json-schema/tibber-live-measurement-schema.json",
  "title": "Tibber Live Measurement",
  "description": "Real-time reading streamed over the GraphQL `liveMeasurement` subscription from a Tibber Pulse paired with a HAN-port or P1-port smart meter.",
  "type": "object",
  "required": ["timestamp", "power", "accumulatedConsumption", "accumulatedProduction", "minPower", "averagePower", "maxPower"],
  "properties": {
    "timestamp": { "type": "string", "format": "date-time" },
    "power": { "type": "number", "description": "Instantaneous consumption in watts." },
    "lastMeterConsumption": { "type": "number" },
    "accumulatedConsumption": { "type": "number" },
    "accumulatedProduction": { "type": "number" },
    "accumulatedConsumptionLastHour": { "type": "number" },
    "accumulatedProductionLastHour": { "type": "number" },
    "accumulatedCost": { "type": "number" },
    "accumulatedReward": { "type": "number" },
    "currency": { "type": "string" },
    "minPower": { "type": "number" },
    "averagePower": { "type": "number" },
    "maxPower": { "type": "number" },
    "powerProduction": { "type": "number" },
    "powerReactive": { "type": "number" },
    "powerProductionReactive": { "type": "number" },
    "minPowerProduction": { "type": "number" },
    "maxPowerProduction": { "type": "number" },
    "lastMeterProduction": { "type": "number" },
    "powerFactor": { "type": "number" },
    "voltagePhase1": { "type": "number" },
    "voltagePhase2": { "type": "number" },
    "voltagePhase3": { "type": "number" },
    "currentL1": { "type": "number" },
    "currentL2": { "type": "number" },
    "currentL3": { "type": "number" },
    "signalStrength": { "type": "integer" }
  }
}
