Report configured BMS source when disconnected

This commit is contained in:
2026-06-04 19:37:56 -06:00
parent 26e8cd01f4
commit abb197b36d
@@ -466,7 +466,11 @@ void buildStatusDocument(JsonDocument& doc) {
battery["cell_delta_mv"] = bmsData.cellDeltaMv;
battery["cells_valid"] = bmsData.cellsValid;
} else {
battery["source"] = "unconfigured";
if (appConfig.bms.enabled && appConfig.bms.address.length() > 0) {
battery["source"] = "jbd_bms";
} else {
battery["source"] = "unconfigured";
}
battery["connected"] = false;
battery["soc"] = 0;
battery["voltage"] = 0;