Report configured BMS source when disconnected
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user