{
  "ok": true,
  "site": "skaly-kovarna",
  "updated_at": "2026-08-12T03:46:25.477Z",
  "meters": {
    "house-main": {
      "online": true,
      "age_seconds": 36,
      "total_power_w": -16.59,
      "total_current_a": 1.61,
      "phases": [
        {
          "phase": "L1",
          "power_w": -27.9,
          "voltage_v": 238.2,
          "current_a": 0.73,
          "pf": 0.16
        },
        {
          "phase": "L2",
          "power_w": -44.7,
          "voltage_v": 235.9,
          "current_a": 0.34,
          "pf": 0.54
        },
        {
          "phase": "L3",
          "power_w": 56,
          "voltage_v": 238.9,
          "current_a": 0.54,
          "pf": 0.46
        }
      ]
    },
    "fve-solar": {
      "online": true,
      "age_seconds": 29,
      "total_power_w": -162.45,
      "total_current_a": 1.01,
      "phases": [
        {
          "phase": "L1",
          "power_w": -63.83,
          "voltage_v": 237.09,
          "current_a": 0.36,
          "pf": -0.73
        },
        {
          "phase": "L2",
          "power_w": -45.94,
          "voltage_v": 234.76,
          "current_a": 0.31,
          "pf": -0.62
        },
        {
          "phase": "L3",
          "power_w": -52.68,
          "voltage_v": 237.62,
          "current_a": 0.34,
          "pf": -0.64
        }
      ]
    }
  },
  "derived": {
    "grid_w": -16.59,
    "grid_import_w": 0,
    "grid_export_w": 16.59,
    "production_w": 162.45,
    "consumption_w": 145.86,
    "direction": "balanced",
    "self_sufficiency_now_pct": 100,
    "has_battery": true,
    "battery_discharge_likely": false
  },
  "inverter": {
    "available": true,
    "source": "solaredge-kiosk",
    "status": "online",
    "age_seconds": 101,
    "power_w": 0,
    "solar_w": 0,
    "battery_w": 210,
    "battery_soc_pct": 6,
    "battery_status": "discharging",
    "grid_w": 0,
    "consumption_w": 210,
    "ac_output_estimate_w": 210,
    "today_kwh": 0
  },
  "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."
  }
}