diff --git a/src/Components/Wallbox/HeidelbergWallbox.cpp b/src/Components/Wallbox/HeidelbergWallbox.cpp index c1bcf7b..39f1098 100644 --- a/src/Components/Wallbox/HeidelbergWallbox.cpp +++ b/src/Components/Wallbox/HeidelbergWallbox.cpp @@ -28,6 +28,11 @@ void HeidelbergWallbox::Init() // Error writing modbus register Logger::Error("ERROR: Could not configure standby"); } + else + { + // Remember what was just written, so the reported state matches the register even if reads later fail. + mStandbyEnabled = Constants::HeidelbergWallbox::AllowStandby; + } // Disable watchdog Logger::Debug("Heidelberg wallbox: Setting watch dog timeout to %d s", Constants::HeidelbergWallbox::WatchdogTimeoutS);