{
  "ok": true,
  "site": "skaly-kovarna",
  "updated_at": "2026-09-24T19:06:34.185Z",
  "meters": {
    "house-main": {
      "online": true,
      "age_seconds": 35,
      "total_power_w": 1222.35,
      "total_current_a": 6.38,
      "phases": [
        {
          "phase": "L1",
          "power_w": 795.6,
          "voltage_v": 237.2,
          "current_a": 4.24,
          "pf": 0.79
        },
        {
          "phase": "L2",
          "power_w": 36.7,
          "voltage_v": 237.6,
          "current_a": 0.35,
          "pf": 0.44
        },
        {
          "phase": "L3",
          "power_w": 390,
          "voltage_v": 240.9,
          "current_a": 1.79,
          "pf": 0.9
        }
      ]
    },
    "fve-solar": {
      "online": true,
      "age_seconds": 28,
      "total_power_w": 61.73,
      "total_current_a": 0.89,
      "phases": [
        {
          "phase": "L1",
          "power_w": 8.42,
          "voltage_v": 235.97,
          "current_a": 0.28,
          "pf": 0.13
        },
        {
          "phase": "L2",
          "power_w": 26.02,
          "voltage_v": 236.62,
          "current_a": 0.3,
          "pf": 0.37
        },
        {
          "phase": "L3",
          "power_w": 27.29,
          "voltage_v": 239.18,
          "current_a": 0.31,
          "pf": 0.36
        }
      ]
    }
  },
  "derived": {
    "grid_w": 1222.35,
    "grid_import_w": 1222.35,
    "grid_export_w": 0,
    "production_w": 0,
    "consumption_w": 1222.35,
    "direction": "importing",
    "self_sufficiency_now_pct": 0,
    "has_battery": true,
    "battery_discharge_likely": false
  },
  "inverter": {
    "available": true,
    "source": "solaredge-kiosk",
    "status": "online",
    "age_seconds": 43,
    "power_w": 0,
    "solar_w": 0,
    "battery_w": 0,
    "battery_soc_pct": 1,
    "battery_status": "idle",
    "grid_w": 1190,
    "consumption_w": 1190,
    "ac_output_estimate_w": 0,
    "today_kwh": 28.03
  },
  "has_battery": true,
  "battery_note": "FVE meter includes battery discharge. Night-time production indicates battery output, not solar.",
  "semantics": {
    "site": "A real house in Skaly (Czech countryside) with a rooftop photovoltaic plant (FVE).",
    "meters": {
      "house-main": "Three-phase meter at the grid connection point. power > 0 = the house IMPORTS from the grid; power < 0 = the house EXPORTS surplus solar to the grid.",
      "fve-solar": "Three-phase meter on the photovoltaic (FVE) feed. production_w is always reported as a positive number of watts. IMPORTANT: the house has a BATTERY behind the same hybrid inverter — this meter measures solar production AND battery discharge combined. Night-time production = battery output, not sunlight."
    },
    "battery": "FVE meter includes battery discharge. Night-time production indicates battery output, not solar. A single meter measures the hybrid inverter output (solar + battery combined) — solar-only vs battery-only flows cannot be separated in the Shelly meter data. Use /api/v1/energy/inverter (independent SolarEdge inverter cloud data) to see solar-only production, battery power and state of charge separately.",
    "derived": {
      "consumption_w": "What the house is using right now = production_w + grid power (import positive).",
      "self_consumption_pct": "Share of the hybrid inverter output (FVE + battery) used directly by the house instead of exported: (production - export) / production.",
      "self_sufficiency_now_pct": "Share of current consumption covered by the hybrid inverter output (FVE + battery) right now."
    },
    "units": "Power in watts (W), energy in watt-hours (Wh). 1000 Wh = 1 kWh.",
    "inverter": "GET /api/v1/energy/inverter is an INDEPENDENT second data source (SolarEdge inverter cloud, public kiosk): solar-only production, battery power (+discharge/−charge) and battery state of charge — the solar/battery separation the Shelly meter cannot provide. Cross-check both sources via /api/v1/energy/comparison."
  }
}