Skip to content

Commit 40826a6

Browse files
committed
Expose the divert_active var via the status to get the current value when loading the UI
1 parent 9396d0b commit 40826a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/web_server.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,7 @@ handleStatus(MongooseHttpServerRequest *request) {
617617
doc["grid_ie"] = grid_ie;
618618
doc["charge_rate"] = charge_rate;
619619
doc["divert_update"] = (millis() - lastUpdate) / 1000;
620+
doc["divert_active"] = divert_active;
620621

621622
doc["service_level"] = static_cast<uint8_t>(evse.getActualServiceLevel());
622623

0 commit comments

Comments
 (0)