Revert "KOSTAL Plenticore (Gen 2): Enables charging while being on hold" #26778
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Based on discussions #26709 and probably #25773,
A change from battery mode "charge" to "hold" actually has written to charge power into Register 1034 and starts writing the value 0 in register 1040 which means continued charging and avoidance of discharging.
Same might occur for an edge-case directly after switching to normal: batteryMode normal has written 0 to 1034. Going into hold within 60s is starting to write 0 to register 1040. Because 1034 and 1040 are set the inverter is not able to charge surplus into the battery, discharging is avoided.
This is because we had no reset to internal mode between battery mode transition and the written values remain while being externally controlled. The use of two registers leads into unexpected behavior.
The change restores the limitation where surplus charging is not possible during hold as a required and unwanted limitation.