{
  "generated_at": "2026-06-29 01:16:35",
  "health_cards": [
    {
      "title": "Live Data",
      "status": "OK",
      "class": "healthy",
      "detail": "MQTT fallback values were received."
    },
    {
      "title": "Monitor",
      "status": "Check",
      "class": "warning",
      "detail": "Availability: online | State: Unknown"
    },
    {
      "title": "BMS Reads",
      "status": "Fresh",
      "class": "healthy",
      "detail": "Analog age: 6s | Warning age: 0s"
    },
    {
      "title": "Warnings",
      "status": "BMS Caution",
      "class": "caution",
      "detail": "4 pack(s) with active BMS warnings."
    },
    {
      "title": "Telegram",
      "status": "Check",
      "class": "warning",
      "detail": "Telegram is disabled or token/chat ID is missing."
    },
    {
      "title": "Home Assistant Discovery",
      "status": "Enabled",
      "class": "healthy",
      "detail": "Discovery topic: homeassistant"
    },
    {
      "title": "Config Backups",
      "status": "2 / 10",
      "class": "healthy",
      "detail": "Latest: 2026-06-03 15:54:23"
    },
    {
      "title": "Read-Only BMS Safety",
      "status": "Read-only",
      "class": "healthy",
      "detail": "The web UI writes Home Assistant add-on options only. It does not write to the BMS."
    }
  ],
  "live": {
    "ok": true,
    "error": "",
    "source": "mqtt_retained",
    "data_source": "MQTT fallback",
    "base_topic": "pacebms",
    "availability": "online",
    "monitor_state": "Unknown",
    "last_analog_read": "2026-06-29 01:16:29",
    "last_warn_read": "2026-06-29 01:16:26",
    "stale": "OFF",
    "stale_reason": "Fresh",
    "analog_age_seconds": "6",
    "warn_age_seconds": "0",
    "bms_status": "Not available",
    "bms_error": "Not available",
    "bms_version": "Unknown",
    "bms_sn": "Unknown",
    "pack_sn": "Unknown",
    "pack_count": 4,
    "total_cells": 60,
    "layout": "4 pack(s), 60 cells total \u2014 Pack 01: 15 cells, Pack 02: 15 cells, Pack 03: 15 cells, Pack 04: 15 cells",
    "overall_status": "BMS Caution",
    "overall_class": "caution",
    "warning_count": 4,
    "severity_summary": {
      "Caution": 4
    },
    "cell_high_ref": 4.2,
    "cell_low_ref": 3.0,
    "packs": [
      {
        "id": "01",
        "role": "Master",
        "serial": "Unknown",
        "serial_note": "Current BMS read does not expose a separate serial for this pack",
        "cell_count": 15,
        "soc": "85.62",
        "soh": "100.0",
        "cycles": "10",
        "remaining_capacity_ah": "176",
        "full_capacity_ah": "206",
        "design_capacity_ah": "200",
        "voltage": "49.8",
        "current": "-2.05",
        "power_kw": "-0.10",
        "delta": "1",
        "temperatures": [
          22.1,
          22.6,
          22.8,
          23.0,
          23.4,
          23.7
        ],
        "warnings": "Control State: Current limit function disabled",
        "has_warning": true,
        "severity_class": "caution",
        "severity_label": "BMS Caution",
        "highest_cell": {
          "number": "07",
          "voltage": "3.322"
        },
        "lowest_cell": {
          "number": "01",
          "voltage": "3.321"
        },
        "cells": [
          {
            "number": "01",
            "voltage": "3.321",
            "labels": [
              "Lowest"
            ],
            "class": "cell-highlow",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "02",
            "voltage": "3.321",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "03",
            "voltage": "3.321",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "04",
            "voltage": "3.321",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "05",
            "voltage": "3.321",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "06",
            "voltage": "3.321",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "07",
            "voltage": "3.322",
            "labels": [
              "Highest"
            ],
            "class": "cell-highlow",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "08",
            "voltage": "3.322",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "09",
            "voltage": "3.322",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "10",
            "voltage": "3.322",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "11",
            "voltage": "3.321",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "12",
            "voltage": "3.321",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "13",
            "voltage": "3.321",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "14",
            "voltage": "3.321",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "15",
            "voltage": "3.322",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          }
        ],
        "cell_high_ref": "3.51",
        "cell_low_ref": "2.80",
        "pack_high_ref": "52.65",
        "pack_low_ref": "42.00",
        "battery_profile": "P16S / Eenovance MANA LFP 51.2V",
        "reference_source": "battery profile defaults",
        "reference_checks": [
          "BMS warning is active. No matching configured reference check was available."
        ],
        "balancing1": "00000000",
        "balancing2": "00000000",
        "balancing_cells": [],
        "balancing_summary": "None active",
        "charge_fet": "ON",
        "discharge_fet": "ON",
        "fully": "OFF",
        "warning_intelligence": {
          "groups": [],
          "user_reference_rows": [],
          "show_user_reference_details": false,
          "user_reference_summary": "All configured user alert references are within limits.",
          "reference_checks": [
            "Cell high reference: 3.51 V",
            "Pack high reference: 52.65 V",
            "Battery profile: P16S / Eenovance MANA LFP 51.2V",
            "Reference source: battery profile defaults",
            "BMS warning is active below configured reference.",
            "BMS internal threshold appears lower than the configured user reference."
          ],
          "telegram_policy": "User reference exceeded, plus BMS critical/protection",
          "telegram_decision": "Telegram BMS warning alerts are disabled.",
          "telegram_decision_class": "warning",
          "interpretation": "BMS warning is active even though the configured user references have not been exceeded. This usually means the BMS internal threshold is different from the app reference, or the warning was triggered briefly before the latest retained reading.",
          "suggested_action": "Keep watching the trend and verify the BMS internal thresholds against the configured user references."
        }
      },
      {
        "id": "02",
        "role": "Slave",
        "serial": "N/A",
        "serial_note": "Current BMS read does not expose a separate serial for this pack",
        "cell_count": 15,
        "soc": "86.46",
        "soh": "100.0",
        "cycles": "10",
        "remaining_capacity_ah": "178",
        "full_capacity_ah": "206",
        "design_capacity_ah": "200",
        "voltage": "49.792",
        "current": "-1.98",
        "power_kw": "-0.10",
        "delta": "1",
        "temperatures": [
          22.3,
          22.3,
          22.4,
          22.6,
          22.8,
          22.8
        ],
        "warnings": "Control State: Current limit function disabled",
        "has_warning": true,
        "severity_class": "caution",
        "severity_label": "BMS Caution",
        "highest_cell": {
          "number": "06",
          "voltage": "3.320"
        },
        "lowest_cell": {
          "number": "01",
          "voltage": "3.319"
        },
        "cells": [
          {
            "number": "01",
            "voltage": "3.319",
            "labels": [
              "Lowest"
            ],
            "class": "cell-highlow",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "02",
            "voltage": "3.319",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "03",
            "voltage": "3.319",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "04",
            "voltage": "3.319",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "05",
            "voltage": "3.319",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "06",
            "voltage": "3.320",
            "labels": [
              "Highest"
            ],
            "class": "cell-highlow",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "07",
            "voltage": "3.320",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "08",
            "voltage": "3.320",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "09",
            "voltage": "3.319",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "10",
            "voltage": "3.320",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "11",
            "voltage": "3.320",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "12",
            "voltage": "3.320",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "13",
            "voltage": "3.319",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "14",
            "voltage": "3.319",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "15",
            "voltage": "3.320",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          }
        ],
        "cell_high_ref": "3.51",
        "cell_low_ref": "2.80",
        "pack_high_ref": "52.65",
        "pack_low_ref": "42.00",
        "battery_profile": "P16S / Eenovance MANA LFP 51.2V",
        "reference_source": "battery profile defaults",
        "reference_checks": [
          "BMS warning is active. No matching configured reference check was available."
        ],
        "balancing1": "00000000",
        "balancing2": "00000000",
        "balancing_cells": [],
        "balancing_summary": "None active",
        "charge_fet": "ON",
        "discharge_fet": "ON",
        "fully": "OFF",
        "warning_intelligence": {
          "groups": [],
          "user_reference_rows": [],
          "show_user_reference_details": false,
          "user_reference_summary": "All configured user alert references are within limits.",
          "reference_checks": [
            "Cell high reference: 3.51 V",
            "Pack high reference: 52.65 V",
            "Battery profile: P16S / Eenovance MANA LFP 51.2V",
            "Reference source: battery profile defaults",
            "BMS warning is active below configured reference.",
            "BMS internal threshold appears lower than the configured user reference."
          ],
          "telegram_policy": "User reference exceeded, plus BMS critical/protection",
          "telegram_decision": "Telegram BMS warning alerts are disabled.",
          "telegram_decision_class": "warning",
          "interpretation": "BMS warning is active even though the configured user references have not been exceeded. This usually means the BMS internal threshold is different from the app reference, or the warning was triggered briefly before the latest retained reading.",
          "suggested_action": "Keep watching the trend and verify the BMS internal thresholds against the configured user references."
        }
      },
      {
        "id": "03",
        "role": "Slave",
        "serial": "N/A",
        "serial_note": "Current BMS read does not expose a separate serial for this pack",
        "cell_count": 15,
        "soc": "86.69",
        "soh": "100.0",
        "cycles": "10",
        "remaining_capacity_ah": "180",
        "full_capacity_ah": "207",
        "design_capacity_ah": "200",
        "voltage": "49.794",
        "current": "-1.98",
        "power_kw": "-0.10",
        "delta": "1",
        "temperatures": [
          22.0,
          22.1,
          22.3,
          22.4,
          22.8,
          23.0
        ],
        "warnings": "Control State: Current limit function disabled",
        "has_warning": true,
        "severity_class": "caution",
        "severity_label": "BMS Caution",
        "highest_cell": {
          "number": "05",
          "voltage": "3.321"
        },
        "lowest_cell": {
          "number": "01",
          "voltage": "3.320"
        },
        "cells": [
          {
            "number": "01",
            "voltage": "3.320",
            "labels": [
              "Lowest"
            ],
            "class": "cell-highlow",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "02",
            "voltage": "3.320",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "03",
            "voltage": "3.320",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "04",
            "voltage": "3.320",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "05",
            "voltage": "3.321",
            "labels": [
              "Highest"
            ],
            "class": "cell-highlow",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "06",
            "voltage": "3.321",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "07",
            "voltage": "3.320",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "08",
            "voltage": "3.321",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "09",
            "voltage": "3.320",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "10",
            "voltage": "3.321",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "11",
            "voltage": "3.320",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "12",
            "voltage": "3.320",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "13",
            "voltage": "3.320",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "14",
            "voltage": "3.320",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "15",
            "voltage": "3.320",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          }
        ],
        "cell_high_ref": "3.51",
        "cell_low_ref": "2.80",
        "pack_high_ref": "52.65",
        "pack_low_ref": "42.00",
        "battery_profile": "P16S / Eenovance MANA LFP 51.2V",
        "reference_source": "battery profile defaults",
        "reference_checks": [
          "BMS warning is active. No matching configured reference check was available."
        ],
        "balancing1": "00000000",
        "balancing2": "00000000",
        "balancing_cells": [],
        "balancing_summary": "None active",
        "charge_fet": "ON",
        "discharge_fet": "ON",
        "fully": "OFF",
        "warning_intelligence": {
          "groups": [],
          "user_reference_rows": [],
          "show_user_reference_details": false,
          "user_reference_summary": "All configured user alert references are within limits.",
          "reference_checks": [
            "Cell high reference: 3.51 V",
            "Pack high reference: 52.65 V",
            "Battery profile: P16S / Eenovance MANA LFP 51.2V",
            "Reference source: battery profile defaults",
            "BMS warning is active below configured reference.",
            "BMS internal threshold appears lower than the configured user reference."
          ],
          "telegram_policy": "User reference exceeded, plus BMS critical/protection",
          "telegram_decision": "Telegram BMS warning alerts are disabled.",
          "telegram_decision_class": "warning",
          "interpretation": "BMS warning is active even though the configured user references have not been exceeded. This usually means the BMS internal threshold is different from the app reference, or the warning was triggered briefly before the latest retained reading.",
          "suggested_action": "Keep watching the trend and verify the BMS internal thresholds against the configured user references."
        }
      },
      {
        "id": "04",
        "role": "Slave",
        "serial": "N/A",
        "serial_note": "Current BMS read does not expose a separate serial for this pack",
        "cell_count": 15,
        "soc": "86.9",
        "soh": "100.0",
        "cycles": "10",
        "remaining_capacity_ah": "180",
        "full_capacity_ah": "207",
        "design_capacity_ah": "200",
        "voltage": "49.825",
        "current": "-1.92",
        "power_kw": "-0.10",
        "delta": "1",
        "temperatures": [
          21.3,
          21.4,
          21.5,
          21.6,
          21.7,
          22.2
        ],
        "warnings": "Control State: Current limit function disabled",
        "has_warning": true,
        "severity_class": "caution",
        "severity_label": "BMS Caution",
        "highest_cell": {
          "number": "06",
          "voltage": "3.323"
        },
        "lowest_cell": {
          "number": "01",
          "voltage": "3.322"
        },
        "cells": [
          {
            "number": "01",
            "voltage": "3.322",
            "labels": [
              "Lowest"
            ],
            "class": "cell-highlow",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "02",
            "voltage": "3.322",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "03",
            "voltage": "3.322",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "04",
            "voltage": "3.322",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "05",
            "voltage": "3.322",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "06",
            "voltage": "3.323",
            "labels": [
              "Highest"
            ],
            "class": "cell-highlow",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "07",
            "voltage": "3.323",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "08",
            "voltage": "3.323",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "09",
            "voltage": "3.322",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "10",
            "voltage": "3.322",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "11",
            "voltage": "3.323",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "12",
            "voltage": "3.322",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "13",
            "voltage": "3.322",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "14",
            "voltage": "3.323",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          },
          {
            "number": "15",
            "voltage": "3.322",
            "labels": [],
            "class": "cell-normal",
            "ocv_ref": {
              "label": "N/A",
              "status": "No profile table",
              "class": "unknown",
              "note": "No OCV reference table is configured for this battery profile."
            },
            "balancing": false,
            "balancing_label": "-",
            "balancing_class": "off"
          }
        ],
        "cell_high_ref": "3.51",
        "cell_low_ref": "2.80",
        "pack_high_ref": "52.65",
        "pack_low_ref": "42.00",
        "battery_profile": "P16S / Eenovance MANA LFP 51.2V",
        "reference_source": "battery profile defaults",
        "reference_checks": [
          "BMS warning is active. No matching configured reference check was available."
        ],
        "balancing1": "00000000",
        "balancing2": "00000000",
        "balancing_cells": [],
        "balancing_summary": "None active",
        "charge_fet": "ON",
        "discharge_fet": "ON",
        "fully": "OFF",
        "warning_intelligence": {
          "groups": [],
          "user_reference_rows": [],
          "show_user_reference_details": false,
          "user_reference_summary": "All configured user alert references are within limits.",
          "reference_checks": [
            "Cell high reference: 3.51 V",
            "Pack high reference: 52.65 V",
            "Battery profile: P16S / Eenovance MANA LFP 51.2V",
            "Reference source: battery profile defaults",
            "BMS warning is active below configured reference.",
            "BMS internal threshold appears lower than the configured user reference."
          ],
          "telegram_policy": "User reference exceeded, plus BMS critical/protection",
          "telegram_decision": "Telegram BMS warning alerts are disabled.",
          "telegram_decision_class": "warning",
          "interpretation": "BMS warning is active even though the configured user references have not been exceeded. This usually means the BMS internal threshold is different from the app reference, or the warning was triggered briefly before the latest retained reading.",
          "suggested_action": "Keep watching the trend and verify the BMS internal thresholds against the configured user references."
        }
      }
    ],
    "fetched_at": "2026-06-29 01:16:34",
    "chart_data": [
      {
        "pack": "Pack 01",
        "soc": 85.62,
        "soh": 100.0,
        "voltage": 49.8,
        "delta": 1.0,
        "highest_cell": 3.322,
        "lowest_cell": 3.321
      },
      {
        "pack": "Pack 02",
        "soc": 86.46,
        "soh": 100.0,
        "voltage": 49.792,
        "delta": 1.0,
        "highest_cell": 3.32,
        "lowest_cell": 3.319
      },
      {
        "pack": "Pack 03",
        "soc": 86.69,
        "soh": 100.0,
        "voltage": 49.794,
        "delta": 1.0,
        "highest_cell": 3.321,
        "lowest_cell": 3.32
      },
      {
        "pack": "Pack 04",
        "soc": 86.9,
        "soh": 100.0,
        "voltage": 49.825,
        "delta": 1.0,
        "highest_cell": 3.323,
        "lowest_cell": 3.322
      }
    ],
    "warning_signature": "01:Control State: Current limit function disabled:BMS Caution||02:Control State: Current limit function disabled:BMS Caution||03:Control State: Current limit function disabled:BMS Caution||04:Control State: Current limit function disabled:BMS Caution",
    "monitoring_health": {
      "status": "Needs Attention",
      "class": "warning",
      "summary": "Monitor status or heartbeat is not confirmed healthy.",
      "checks": [
        {
          "label": "Monitor heartbeat",
          "value": "6s",
          "class": "healthy",
          "detail": "State: running | Timeout: 60s"
        },
        {
          "label": "Data source",
          "value": "MQTT fallback",
          "class": "healthy",
          "detail": "Snapshot source: mqtt_retained"
        },
        {
          "label": "Monitor state",
          "value": "Unknown",
          "class": "warning",
          "detail": "Availability: online"
        },
        {
          "label": "Analog data age",
          "value": "6s",
          "class": "healthy",
          "detail": "Last analog read: 2026-06-29 01:16:29"
        },
        {
          "label": "Warning data age",
          "value": "0s",
          "class": "healthy",
          "detail": "Last warning read: 2026-06-29 01:16:26"
        },
        {
          "label": "Detected packs",
          "value": "4",
          "class": "healthy",
          "detail": "4 pack(s), 60 cells total \u2014 Pack 01: 15 cells, Pack 02: 15 cells, Pack 03: 15 cells, Pack 04: 15 cells"
        },
        {
          "label": "Cell count",
          "value": "60",
          "class": "healthy",
          "detail": "Detected from current live data source."
        }
      ],
      "stale_threshold_seconds": 120,
      "stale_repeat_seconds": 1800,
      "heartbeat_age_seconds": 6,
      "heartbeat_timeout_seconds": 60
    },
    "user_summary": {
      "status": "BMS Caution",
      "class": "caution",
      "power_state": "Discharging",
      "power_state_class": "warning",
      "summary": "BMS Caution. 4 pack(s), 60 cells detected.",
      "combined_soc": "86.4%",
      "combined_soh": "100.0%",
      "total_power_kw": "-0.39 kW",
      "power_flow": "Discharging at 0.39 kW",
      "power_detail": "Power is flowing out of the battery.",
      "power_class": "discharging",
      "pack_voltage": "49.80 V",
      "battery_current": "-7.93 A",
      "remaining_capacity_ah": "714 Ah",
      "full_capacity_ah": "826 Ah",
      "design_capacity_ah": "800 Ah",
      "remaining_energy_kwh": "35.56 kWh",
      "capacity_detail": "Full: 826 Ah | Design: 800 Ah",
      "time_label": "Runtime Estimate",
      "runtime_remaining": "3d 18h",
      "runtime_detail": "Estimate based on current discharge power.",
      "health": "100.0%",
      "temperature": "23.7 C",
      "temperature_status": "Normal",
      "temperature_class": "healthy",
      "active_warnings": "4",
      "warning_summary": "4 active warning(s) - highest severity: BMS Caution",
      "warning_class": "caution",
      "last_updated": "2026-06-29 01:16:34"
    }
  },
  "backup_summary": {
    "count": 2,
    "keep_count": 10,
    "latest": "2026-06-03 15:54:23",
    "oldest": "2026-06-03 15:49:56",
    "folder": "/data/config_backups"
  },
  "config_summary": {
    "bms_connection_mode": "Serial",
    "connection_type": "Serial",
    "bms_serial": "/dev/pacebms",
    "bms_baudrate": 9600,
    "scan_interval": 5,
    "ui_data_source": "auto",
    "metrics_enabled": true,
    "history_sample_seconds": 10,
    "history_cell_sample_seconds": 30,
    "history_retention_days": 90,
    "history_event_retention_days": 365,
    "mqtt_enabled": true,
    "mqtt_host": "172.16.13.31",
    "mqtt_port": 1883,
    "mqtt_user": "user",
    "mqtt_password": "redacted",
    "mqtt_base_topic": "pacebms",
    "mqtt_ha_discovery": true,
    "mqtt_ha_discovery_topic": "homeassistant",
    "mqtt_retain_state": true,
    "state_force_republish_seconds": 300,
    "warn_force_republish_seconds": 300,
    "debug_output": 0,
    "zero_pad_number_cells": 2,
    "zero_pad_number_packs": 2,
    "notify_enabled": false,
    "telegram_bot_token": "redacted",
    "telegram_chat_id": "redacted",
    "notify_startup": true,
    "notify_disconnect": true,
    "notify_stale_data": true,
    "notify_stale_recovery": true,
    "notify_soc_low": true,
    "notify_soc_high": true,
    "notify_soc_high_on_startup": false,
    "notify_soh": true,
    "notify_soh_on_startup": false,
    "notify_warnings": true,
    "notify_fet": true,
    "notify_ignore_charge_fet_off_when_full": true,
    "notify_alert_discharge_fet_off": true,
    "notify_fet_repeat_seconds": 3600,
    "notify_soc_low_thresholds": "50,25,10",
    "notify_soc_high_threshold": 98,
    "notify_soc_high_reset": 95,
    "notify_soh_threshold": 95,
    "notify_retry_count": 3,
    "notify_stale_data_seconds": 120,
    "notify_stale_data_repeat_seconds": 1800,
    "notify_warning_repeat_seconds": 1800,
    "notify_warning_repeat_caution_seconds": 21600,
    "notify_warning_repeat_warning_seconds": 3600,
    "notify_warning_repeat_critical_seconds": 1800,
    "notify_warning_clear_confirm_reads": 2,
    "notify_warning_detail_enabled": true,
    "notify_include_highest_and_lowest_cell": true,
    "notify_include_pack_voltage": true,
    "notify_include_soc_soh": true,
    "notify_daily_summary": true,
    "notify_daily_summary_time": "19:00",
    "notify_delta_report_time": "10:15",
    "notify_delta_window_start": "00:00",
    "notify_delta_window_end": "10:00",
    "daily_energy_current_deadband_a": 0.2,
    "battery_profile": "auto",
    "notify_bms_warning_policy": "user_reference_or_critical",
    "expected_cell_count": 0,
    "expected_pack_count": 0,
    "capacity_fallback_enabled": false,
    "capacity_per_pack_ah": 0,
    "notify_cell_high_warn_voltage": 4.2,
    "notify_cell_low_warn_voltage": 3.0,
    "notify_cell_delta_warn_mv": 100,
    "notify_temp_high_warn_c": 55,
    "notify_temp_low_warn_c": 0,
    "notify_alert_cell_high_voltage": true,
    "notify_alert_cell_low_voltage": true,
    "notify_alert_cell_delta": true,
    "notify_alert_pack_high_voltage": true,
    "notify_alert_pack_low_voltage": true,
    "notify_alert_temp_high": true,
    "notify_alert_temp_low": true,
    "notify_include_all_cells_above_threshold": true,
    "notify_include_all_cells_below_threshold": true,
    "notify_delta_report": true
  },
  "events_count": 50,
  "latest_events": [
    {
      "time": "2026-06-20 22:55:00",
      "ts": 1781949300,
      "type": "startup",
      "level": "ok",
      "title": "Monitor started",
      "detail": "SN: 413021350200084"
    },
    {
      "time": "2026-06-20 22:55:00",
      "ts": 1781949300,
      "type": "startup",
      "level": "info",
      "title": "Monitor starting",
      "detail": "SN: 413021350200084"
    },
    {
      "time": "2026-06-20 22:37:59",
      "ts": 1781948279,
      "type": "shutdown",
      "level": "warn",
      "title": "Monitor stopped",
      "detail": "SN: 413021350200084"
    },
    {
      "time": "2026-06-20 22:36:58",
      "ts": 1781948218,
      "type": "disconnect",
      "level": "danger",
      "title": "BMS disconnected",
      "detail": "Send failed"
    },
    {
      "time": "2026-06-20 16:31:03",
      "ts": 1781926263,
      "type": "startup",
      "level": "ok",
      "title": "Monitor started",
      "detail": "SN: 413021350200084"
    },
    {
      "time": "2026-06-20 16:31:03",
      "ts": 1781926263,
      "type": "startup",
      "level": "info",
      "title": "Monitor starting",
      "detail": "SN: 413021350200084"
    },
    {
      "time": "2026-06-20 16:27:42",
      "ts": 1781926062,
      "type": "shutdown",
      "level": "warn",
      "title": "Monitor stopped",
      "detail": "SN: 413021350200084"
    },
    {
      "time": "2026-06-20 16:18:30",
      "ts": 1781925510,
      "type": "recovery",
      "level": "ok",
      "title": "BMS reconnected",
      "detail": "Offline: 6s; retries: 1"
    },
    {
      "time": "2026-06-20 16:18:23",
      "ts": 1781925503,
      "type": "disconnect",
      "level": "danger",
      "title": "BMS disconnected",
      "detail": "Checksum error"
    },
    {
      "time": "2026-06-20 16:17:58",
      "ts": 1781925478,
      "type": "recovery",
      "level": "ok",
      "title": "BMS reconnected",
      "detail": "Offline: 6s; retries: 1"
    }
  ],
  "battery_topology": {
    "connection_type": "Serial",
    "bms_serial": "Unknown",
    "pack_serial": "Unknown",
    "bms_version": "Unknown",
    "pack_count": 4,
    "total_cells": 60,
    "configuration": "Master + Slave",
    "master_pack": "Pack 01",
    "slave_packs": "Pack 02, Pack 03, Pack 04",
    "max_cycles": 10,
    "min_soh": "100.0%",
    "avg_soc": "86.4%",
    "rows": [
      {
        "role": "Master",
        "pack": "Pack 01",
        "serial": "Unknown",
        "serial_note": "Not reported",
        "cells": 15,
        "soc": "85.62",
        "soh": "100.0",
        "cycles": "10",
        "voltage": "49.8",
        "current": "-2.05",
        "delta": "1",
        "status": "BMS Caution",
        "warnings": "Control State: Current limit function disabled"
      },
      {
        "role": "Slave",
        "pack": "Pack 02",
        "serial": "N/A",
        "serial_note": "Current BMS read does not expose a separate serial for this pack",
        "cells": 15,
        "soc": "86.46",
        "soh": "100.0",
        "cycles": "10",
        "voltage": "49.792",
        "current": "-1.98",
        "delta": "1",
        "status": "BMS Caution",
        "warnings": "Control State: Current limit function disabled"
      },
      {
        "role": "Slave",
        "pack": "Pack 03",
        "serial": "N/A",
        "serial_note": "Current BMS read does not expose a separate serial for this pack",
        "cells": 15,
        "soc": "86.69",
        "soh": "100.0",
        "cycles": "10",
        "voltage": "49.794",
        "current": "-1.98",
        "delta": "1",
        "status": "BMS Caution",
        "warnings": "Control State: Current limit function disabled"
      },
      {
        "role": "Slave",
        "pack": "Pack 04",
        "serial": "N/A",
        "serial_note": "Current BMS read does not expose a separate serial for this pack",
        "cells": 15,
        "soc": "86.9",
        "soh": "100.0",
        "cycles": "10",
        "voltage": "49.825",
        "current": "-1.92",
        "delta": "1",
        "status": "BMS Caution",
        "warnings": "Control State: Current limit function disabled"
      }
    ]
  },
  "clean_bms_serial": "Unknown",
  "clean_bms_version": "Unknown",
  "read_only_safety": {
    "bms_writes": false,
    "fet_control": false,
    "threshold_writes": false,
    "config_writes": "Home Assistant add-on options only"
  },
  "history_status": {
    "enabled": "ON",
    "class": "healthy",
    "db_path": "/data/pacebms_metrics.db",
    "db_size": "412.8 MB",
    "wal_size": "4.0 MB",
    "latest_sample": "2026-06-29 01:16:23",
    "retention": "Raw 90 days | Events 365 days",
    "rows": {
      "bank": 182249,
      "pack": 728996,
      "cell": 3754080,
      "temperature": 1501632,
      "warnings": 594,
      "system": 0
    },
    "error": ""
  }
}