evcc icon indicating copy to clipboard operation
evcc copied to clipboard

RCT Power: battery minimum SoC stayed at 79% after EV charging / battery protection; battery stopped discharging (v0.317.1)

Open Soul7495 opened this issue 1 month ago β€’ 18 comments

Describe the bug

On 2026-10-13, my RCT Power home battery did not discharge into the house despite having approximately 78% SoC. In the RCT Power app, Min SOC target (Min SOC Zielwert) showed 0.79 = 79%. The app displayed approximately 1 W battery power, 1,274 W house consumption, and 0 W PV power at about 05:21 CEST. This resulted in grid consumption despite sufficient stored energy. Before the incident I had used evcc's battery discharge protection associated with fast EV charging. I had also configured 80% values in evcc, but their meaning requires care: a later debug log (after recovery) shows buffer soc: 80 and priority soc: 80, which are not evidence by themselves that the RCT 79% minimum was written by evcc. RCT's SOC target selection (SOC Zielauswahl) was set to Internal. Initially, trying to change the RCT minimum SoC manually to 0.05 or 0.07 in the RCT Android app appeared to revert to 0.79. The manual change to 0.07 (7%) succeeded during an evcc restart. Afterwards, the battery resumed normal discharge. I did not preserve a log that shows the original problem occurring, so whether evcc sent, failed to send, or repeated a write cannot yet be determined. Expected: Once discharge protection is no longer needed, the RCT battery should be allowed to discharge according to its normal configured lower SoC limit rather than remain effectively locked at ~79%. Observed: High RCT minimum SoC remained and household demand was supplied largely by the grid; changing the parameter succeeded only while evcc was restarting. It is a single observed occurrence, not a verified repeatable reproduction.

Image Image Image Image [EVCC_Debug_Log_nach_Korrektur_bereinigt.log](https://github.com/user-attachments/files/33365890/EVCC_Debug_Log_nach_Korrektur_bereinigt.log) Image Image

Steps to reproduce

1.Use an RCT Power inverter and battery in evcc, with discharge protection enabled for fast EV charging. Use fast charging, then end fast charging / return to a state in which the home battery should be allowed to discharge. Check RCT Min SOC Zielwert and the battery power. In this case, the target stayed around 79% while the battery SoC was ~78% and battery output ~1 W. Attempts to set the limit to 5% or 7% through the RCT app did not stick initially. After deactivating/restarting evcc, a manual change to 7% made during evcc restart was accepted. Afterward, battery discharge resumed. The exact loadpoint mode transition and battery-protection state at the onset were not logged, so these steps describe the observed incident and a potential reproduction path rather than a fully confirmed minimal reproduction. ...

Configuration details

evcc version: v0.317.1 stable (reported as current in UI on 2026-10-13).
Battery: RCT Power, one battery tower. Physical system described as ~11.85 kWh nominal; evcc configuration shows 10.32 kWh, and device test reports 10.3 kWh capacity. This difference may reflect usable capacity but has not been verified.
EV: VW ID.3.
RCT SOC target selection: Internal.
Min SOC on RCT during incident: 0.79 (79%).
Min SOC manually restored in RCT app: 0.07 (7%).
evcc minimum SoC shown in later configuration screenshot: 5%; maximum SoC: 100%. This is a mismatch with the manually restored RCT value, and the exact previous RCT lower limit was not confirmed before the incident.
RCT TCP port: 8899 (local IP addresses removed from log attached here).
evcc installation environment: not yet confirmed.
Full evcc configuration (evcc.yaml / evcc config): not available at the time of reporting.
Other automation writing to RCT: not definitively excluded.
Nightly test: not performed, because I do not want to change a productive home energy system to an unfamiliar development build without a need and a clear rollback plan.

Log details

The log attached is a DEBUG log from after manual recovery, not a TRACE capture of the original failure. It was created on 2026-10-13 and covers approximately 05:45 to 06:23 CEST.
Relevant excerpts:
[site  ] DEBUG 2026/10/13 05:45:07 set buffer soc: 80
[site  ] DEBUG 2026/10/13 05:45:07 set priority soc: 80
[site  ] DEBUG 2026/10/13 05:45:07 set battery discharge control: false
[site  ] DEBUG 2026/10/13 05:45:07 set battery grid discharge: false
[site  ] DEBUG 2026/10/13 05:45:07 battery 1 power: 1W
[site  ] DEBUG 2026/10/13 05:45:09 battery 1 soc: 78%
[site  ] DEBUG 2026/10/13 05:46:09 battery 1 power: 198W
[site  ] DEBUG 2026/10/13 05:46:39 battery 1 power: 794W
[rct   ] ERROR 2026/10/13 05:50:56 read tcp <evcc-host>:36206-><rct-host>:8899: read: connection reset by peer
[rct   ] ERROR 2026/10/13 05:53:04 read tcp <evcc-host>:44580-><rct-host>:8899: read: connection reset by peer
[rct   ] ERROR 2026/10/13 06:20:31 read tcp <evcc-host>:37476-><rct-host>:8899: read: connection reset by peer
[rct   ] ERROR 2026/10/13 06:22:40 read tcp <evcc-host>:47420-><rct-host>:8899: read: connection reset by peer
[site  ] DEBUG 2026/10/13 06:23:09 battery 1 power: 210W
[site  ] DEBUG 2026/10/13 06:23:09 battery 1 soc: 76%
The log contains multiple must retry errors and four connection reset by peer errors involving RCT TCP port 8899. These are relevant communication issues, but do not prove that the original minimum-SoC lock was caused by those errors. Following recovery, the battery was able to discharge and grid power was close to zero.

What type of operating system or environment does evcc run on?

HomeAssistant Add-on

External automation

  • [x] I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.

Nightly build

  • [x] I have verified that the issue is reproducible with the latest nightly build

Version

V0.317.1

Soul7495 avatar Oct 13 '26 04:10 Soul7495

Thanks for the detailed report. I can't name a root cause yet.

What the code does (meter/rct.go, batteryMode): when evcc holds the battery (BatteryHold, e.g. discharge protection during fast charging), it writes the current SoC to BatterySoCTargetMin. That matches the ~79% you saw at ~78% SoC. When the hold ends (BatteryNormal), evcc writes the configured min SoC back, together with the max SoC and the external power. If that restore write failed or never happened, the inverter would stay locked at the hold value. The connection reset by peer errors on port 8899 show the connection to the inverter is unstable, so a failed write is plausible. Your attached log starts after recovery, so it can't confirm this.

To narrow it down:

  • Please share the full evcc config (evcc.yaml or the config screens for the RCT meter and the site battery settings), especially the RCT minsoc/maxsoc values.
  • If it happens again, please capture a log before changing anything: run with --log debug,rct:trace and include the lines around the end of fast charging (set battery mode / battery discharge control and RCT write errors).
  • Is the RCT app or any other client (Home Assistant, RCT Power app schedules) writing to the inverter at the same time? A second client on port 8899 can cause the resets.

Related: none found in the last 3 months.

πŸ€– Generated with Claude Code

github-actions[bot] avatar Oct 13 '26 04:10 github-actions[bot]

Additional information regarding other RCT connections:

I also use the official RCT Power App and the RCT Power Portal App.

The RCT Power App is used for local monitoring and manual configuration. The RCT Power Portal App is used for remote monitoring.

There are no additional automations controlling the RCT inverter.

I cannot confirm whether the active RCT Power Portal connection has any influence on the TCP connection resets observed on port 8899.

Soul7495 avatar Oct 13 '26 05:10 Soul7495

Thanks for the additional info. The RCT Power App and Portal are a plausible source of the connection resets on port 8899, but they don't explain the stuck value yet.

One more detail from meter/rct.go (batteryMode): BatteryHold writes the current SoC (here ~79%) to BatterySoCTargetMin, and only BatteryNormal writes the configured min SoC back. If evcc was restarted or lost the connection while the hold was active, that restore would never be sent. This fits the manual change succeeding during an evcc restart, but I can't confirm it without a log of the original event.

Still missing:

  • the evcc config (evcc.yaml or the config screens) for the RCT meter and site battery settings, in particular any battery discharge control and minsoc/maxsoc values
  • whether evcc was restarted or the inverter connection was lost during or shortly before the fast charge
  • if it happens again, a log from --log debug,rct:trace covering the end of fast charging, before changing anything

πŸ€– Generated with Claude Code

github-actions[bot] avatar Oct 13 '26 05:10 github-actions[bot]

Thanks for the analysis.

I can now provide the remaining information about the battery settings and the restart.

Battery usage configuration:

  • Battery priority SoC: 80%
  • Battery buffer SoC: 80%
  • Prevent home battery discharge during fast charging and scheduled charging: Enabled
  • Allow home battery discharge to the grid: Disabled
  • Minimum SoC configured in evcc: 5%
  • Maximum SoC configured in evcc: 100%
  • RCT SoC strategy: Internal
  • RCT connection: TCP port 8899

The 80% values are configured for battery priority and buffer usage, not as the minimum battery SoC.

Regarding the restart:

I restarted evcc only after discovering the problem, as part of troubleshooting.

The RCT minimum SoC was already stuck at 79% before I restarted evcc.

During the restart, I was able to manually restore the RCT minimum SoC to 7%. The battery subsequently resumed normal discharge.

Therefore, the restart was part of the recovery process, not the initial trigger.

I have attached a screenshot of the battery usage settings.

If the issue occurs again, I will collect RCT TRACE logs before changing any settings.

Could the transition from BatteryHold to BatteryNormal fail to restore the minimum SoC if communication with the RCT inverter is temporarily interrupted?

Image

Soul7495 avatar Oct 13 '26 05:10 Soul7495

Answering the question: a single failed restore should not leave the value stuck. In core/site_battery.go (applyBatteryMode), the device mode is only recorded as applied after SetBatteryMode returned without error. On an error (e.g. connection reset by peer) it is logged as battery mode: ... and the BatteryNormal write is retried on the next control cycle. So an interruption alone shouldn't explain a permanent 79%, unless the connection stayed broken the whole time or the write was acknowledged by evcc but not applied by the inverter.

In meter/rct.go the BatteryNormal restore writes the min SoC from evcc's configured limits, so a 79% value that persists means either the restore never ran, or something wrote the value afterwards. I can't tell which without logs.

If it happens again, please capture before changing anything:

  • --log debug,rct:trace output around the end of fast charging
  • any battery mode: error lines and the set battery mode: ... / set battery ... mode: ... lines (they show whether normal was ever applied)
  • the current value shown in the RCT app at that time

Without that I can't identify a root cause or confirm a defect.

πŸ€– Generated with Claude Code

github-actions[bot] avatar Oct 13 '26 05:10 github-actions[bot]

Update – Issue reproduced on October 17, 2026 (RCT TRACE logs available)

The issue occurred again today, October 17, 2026. This time, I was able to collect ERROR, WARN, INFO, DEBUG and TRACE logs before restarting evcc or changing the settings.

Observed behavior

  • Battery SoC: approximately 37%
  • Battery discharge power: 0 W
  • Household electricity was being imported from the grid.
  • RCT minimum SoC target: approximately 37.41%
  • Previously configured minimum SoC: 7%
  • RCT SoC strategy: Internal

Unlike the previous incident, where the minimum SoC was stuck at 79%, it was now stuck at approximately 37%.

RCT TRACE findings

The TRACE log confirms that the inverter itself reported:

  • Battery SOC target min: 37.41%
  • Battery SOC target min island: 7%
  • Power management SOC target set: 100%
  • Power management SOC strategy: 04

The elevated minimum SoC was therefore not just an incorrect display value in evcc.

Communication errors

The logs contain 12 RCT TCP connection resets on port 8899, along with numerous unsuccessful battery, PV and grid data requests.

Example:

"read tcp ->:8899: read: connection reset by peer"

evcc also reported:

"battery soc: read failed, keeping last 37%"

These are the same types of communication errors observed during the previous incident.

Additional important observation

I tried to manually restore the minimum SoC to 7% using the RCT Power App.

The app reported "Flash OK", indicating that saving appeared successful. However, the minimum SoC repeatedly returned to approximately 37%.

After further attempts, the setting suddenly worked again and the discharge problem disappeared.

This behavior is similar to the previous incident, where manual changes initially did not persist but eventually succeeded.

I cannot confirm what caused the setting to be accepted this time.

Possible cause

evcc's BatteryHold functionality can set the RCT minimum SoC to the current battery SoC. This seems consistent with both incidents:

  • October 13: battery approximately 78%, minimum SoC stuck at 79%.
  • October 17: battery approximately 37%, minimum SoC stuck at 37.41%.

However, the available logs do not conclusively demonstrate that evcc wrote these values or that a BatteryNormal restoration failed.

Questions

  1. Could the BatteryHold / BatteryNormal transition explain the repeated behavior?
  2. Could RCT communication interruptions interfere with restoring the original minimum SoC?
  3. Why might the RCT Power App report "Flash OK" while the minimum SoC immediately returns to the previous elevated value?
  4. Could evcc periodically reapply the BatteryHold value even after a manual change in the RCT app?

I have collected six log exports, including RCT TRACE data from the second incident.

The problem is now reproducible in the sense that it has occurred twice, although the exact trigger is still unknown.

evcc-20261017-233236-trace.log

evcc_issue_34779_2026-10-17_logs_redacted.zip

Soul7495 avatar Oct 17 '26 21:10 Soul7495

Thanks for the trace. I found a plausible mechanism in the code, not yet confirmed by your logs.

BatteryHold in meter/rct.go (batteryMode) issues several writes in parallel (strategy, max SoC, min SoC = current SoC) and returns an error if any one of them fails. Meanwhile applyBatteryMode in core/site_battery.go only records a mode as applied after success, so the last applied mode stays normal. If the hold write to BatterySoCTargetMin reached the inverter but another write (or the response) hit a connection reset by peer, the inverter keeps the elevated min SoC (37.41% / 79%), while evcc still considers normal as applied. When the hold request ends, the normal request is skipped ("don't re-apply the mode the battery is already in"), so the min SoC is never restored. This would fit both incidents and your answers to questions 1 and 2. It does not reapply the hold value periodically (question 4), and the "Flash OK" behaviour (question 3) is on the inverter/app side, I can't explain it from evcc's code.

To confirm, please check in the logs for the time before the min SoC got stuck:

  • a battery mode: error line (or the RCT write error) right after fast charging started or the hold was requested
  • whether there is a set battery ... mode: hold line followed by a set battery ... mode: normal line, or no normal line at all

If that matches, a fix would be to clear the applied mode on a failed SetBatteryMode so the next cycle re-applies it.

Related: none found in the last 3 months.

πŸ€– Generated with Claude Code

github-actions[bot] avatar Oct 17 '26 21:10 github-actions[bot]

Something similar has happened to me twice in the last two weeks. Once the battery got stuck at 7% and didn't charge for two days and right now it got stuck at 73%. Setting the battery mode back to normal via API doesn’t work. So far, only turning the battery off and back on worked for me.

[site ] DEBUG 2026/10/20 20:01:24 set external battery mode: hold
[site ] DEBUG 2026/10/20 20:01:49 set battery battery mode: hold
[site ] DEBUG 2026/10/20 20:01:49 set battery mode: hold
[site ] DEBUG 2026/10/20 20:01:54 set external battery mode: hold
[site ] DEBUG 2026/10/20 20:02:24 set external battery mode: hold
[site ] DEBUG 2026/10/20 20:02:54 set external battery mode: hold
[site ] DEBUG 2026/10/20 20:03:24 set external battery mode: hold
[site ] DEBUG 2026/10/20 20:03:54 set external battery mode: hold
[site ] DEBUG 2026/10/20 20:04:24 set external battery mode: hold
[site ] DEBUG 2026/10/20 20:04:54 set external battery mode: hold
[site ] DEBUG 2026/10/20 20:05:24 set external battery mode: hold
[site ] DEBUG 2026/10/20 20:05:54 set external battery mode: hold
[site ] DEBUG 2026/10/20 20:41:28 set external battery mode: normal
[site ] DEBUG 2026/10/20 20:41:46 set battery battery mode: normal
[site ] DEBUG 2026/10/20 20:41:46 set battery mode: normal 

The hold via API was intended, but the automated fallback to nomal when the API commands stopped didn't work, neither did the manual command after I noticed it.

I don't have a trace from when it happened, but something went apparently wrong.

[rct ] TRACE 2026/10/20 20:50:30 recv: (05) Response (BD3A23C3) Power management SOC charge [3d 4c cc cd]
[rct ] TRACE 2026/10/20 20:50:30 recv: (05) Response (BD008E29) Power management battery external power [W] [00 00 00 00]
[rct ] TRACE 2026/10/20 20:50:30 recv: (05) Response (682CDDA1) #INVALID [03]
[rct ] TRACE 2026/10/20 20:50:30 recv: (05) Response (F168B748) Power management SOC strategy [04]
[rct ] TRACE 2026/10/20 20:50:30 recv: (05) Response (4C6E4169) #INVALID [01]
[rct ] TRACE 2026/10/20 20:50:30 recv: (05) Response (8B9FF008) Battery SOC target [3f 78 51 ec]
[rct ] TRACE 2026/10/20 20:50:30 recv: (05) Response (485AD749) #INVALID [43 c8 9f dd]
[rct ] TRACE 2026/10/20 20:50:30 recv: (05) Response (F25C339B) #INVALID [43 c8 59 5d]
[rct ] TRACE 2026/10/20 20:50:30 recv: (05) Response (9A67600D) #INVALID [45 fa 00 00]
[rct ] TRACE 2026/10/20 20:50:30 recv: (05) Response (F2405AC6) #INVALID [00 00 00 00]
[rct ] TRACE 2026/10/20 20:50:30 recv: (05) Response (03A39CA2) #INVALID [42 33 a1 42]
[rct ] TRACE 2026/10/20 20:50:30 recv: (05) Response (2788928C) #INVALID [42 9b 41 89]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (D197CBE0) #INVALID [40 20 00 00]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (F1342795) #INVALID [40 20 00 00]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (972B3029) #INVALID [3f 00 00 00]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (1D2994EA) Power management SOC charge power [W] [42 c8 00 00]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (65EED11B) #INVALID [43 1f a5 e3]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (27BE51D9) #INVALID [42 35 49 62]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (B221BCFA) #INVALID [43 45 21 2e]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (CF053085) #INVALID [43 66 d5 34]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (54B4684E) #INVALID [43 68 1c bf]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (2545E22D) #INVALID [43 67 c5 b0]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (63476DBE) #INVALID [43 c8 6b 0e]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (99EA35E2) #INVALID [01]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (663F1452) Number of batteries connected to inverter [01]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (BD870886) #INVALID [01]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (CE266F0F) Battery SOC target min [3f 3a 50 f1]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (8EBF9574) Battery SOC target min island [3d 8f 5c 29]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (97997C93) Power management SOC max [3f 78 51 ec]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (D1DFC969) Power management SOC target set [3f 80 00 00]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (85886E2E) #INVALID [45 fd 20 00]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (9AF45866) #INVALID [44 fa 00 00]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (59358EB2) #INVALID [43 25 84 9c]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (B55BA2CE) #INVALID [41 a1 f2 c7]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (B0041187) #INVALID [41 a7 f3 99]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (B84FDCF9) #INVALID [43 1f e9 80]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (B403A7E6) #INVALID [47 00 00 00]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (F8C0D255) #INVALID [1b fd 0c 00 1b fd 0c 00 1b fd 0c 00 1b fd 0c 00 1b fd 0c 00 ... (96)]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (649B10DA) #INVALID [05 27 00 00 04 c9 00 00 05 4d 00 00 05 4b 00 00 05 6e 00 00 ... (96)]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (71CB0B57) #INVALID [05 81 00 00 05 54 00 00 05 86 00 00 05 9d 00 00 05 58 00 00 ... (96)]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (4D684EF2) #INVALID [00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... (96)]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (0C2A7286) #INVALID [00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... (96)]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (54829753) Power management grid power limit [W] [44 fa 00 00]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (91617C58) Total grid power [W] [43 9d b2 8e]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (1AC87AA0) #INVALID [43 9d b2 8e]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (E96F1844) S0 external power [W] [00 00 00 00]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (5F33284E) Inverter state [06]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (F0B436DD) #INVALID [43 45 1d 98]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (31ED1B75) #INVALID [00]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (2703A771) #INVALID [01]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (87E4387A) #INVALID [43 1c 00 00]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (437B8122) #INVALID [00]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (3623D82A) #INVALID [00 02]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (0DE3D20D) Battery status for both batteries [00 00 00 00]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (70A2AF4F) Battery status for first battery [00 00 00 00]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (90F123FA) #INVALID [00]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (4F330E08) #INVALID [00]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (46635546) #INVALID [00]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (C0A7074F) #INVALID [f7 2a b8 c3 50 53 20 38 2e 30 20 50 43 50 41 00 00 00 00 00 ... (108)]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (400F015B) Battery power [W] [41 26 54 9a]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (1C4A665F) #INVALID [42 47 ff 15]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (EBC62737) #INVALID [50 53 20 38 2e 30 20 50 43 50 41 00 00 00 00 00 00 00 00 00 ... (64)]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (DDD1C2D0) #INVALID [32 2e 33 2e 35 36 38 39 00 00 00 00 00 00 00 00]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (959930BF) Battery state of charge [3f 39 5a bc]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (8B4BE168) Battery Placeholer 0 Soc [00 00 00 00]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (DB11855B) #INVALID [00 00 00 04]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (0CB5D21B) #INVALID [00 00 00 04]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (DB2D69AE) Inverter AC power [W] [00 00 00 00]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (8FC89B10) #INVALID [00]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (EB7BCB93) #INVALID [00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... (24)]
[rct ] TRACE 2026/10/20 20:50:31 recv: (05) Response (4E04DD55) #INVALID [3b c4 9b a7]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (AEF76FA1) #INVALID [43 11 ad d3]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (BD3A23C3) Power management SOC charge [3d 4c cc cd]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (BD008E29) Power management battery external power [W] [00 00 00 00]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (682CDDA1) #INVALID [03]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (F168B748) Power management SOC strategy [04]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (4C6E4169) #INVALID [01]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (8B9FF008) Battery SOC target [3f 78 51 ec]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (485AD749) #INVALID [43 c8 5e 2c]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (F25C339B) #INVALID [43 c8 53 7d]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (9A67600D) #INVALID [45 fa 00 00]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (F2405AC6) #INVALID [00 00 00 00]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (03A39CA2) #INVALID [42 4a b6 24]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (2788928C) #INVALID [42 a0 05 8e]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (D197CBE0) #INVALID [40 20 00 00]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (F1342795) #INVALID [40 20 00 00]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (972B3029) #INVALID [3f 00 00 00]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (1D2994EA) Power management SOC charge power [W] [42 c8 00 00]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (65EED11B) #INVALID [43 1f a6 25]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (27BE51D9) #INVALID [42 45 b9 08]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (B221BCFA) #INVALID [43 42 e2 01]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (CF053085) #INVALID [43 66 d7 a5]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (54B4684E) #INVALID [43 68 1d 63]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (2545E22D) #INVALID [43 67 cf bb]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (63476DBE) #INVALID [43 c8 71 c3]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (99EA35E2) #INVALID [01]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (663F1452) Number of batteries connected to inverter [01]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (BD870886) #INVALID [01]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (CE266F0F) Battery SOC target min [3f 3a 50 f1]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (8EBF9574) Battery SOC target min island [3d 8f 5c 29]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (97997C93) Power management SOC max [3f 78 51 ec]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (D1DFC969) Power management SOC target set [3f 80 00 00]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (85886E2E) #INVALID [45 fd 20 00]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (9AF45866) #INVALID [44 fa 00 00]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (59358EB2) #INVALID [43 25 84 9c]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (B55BA2CE) #INVALID [41 a1 f5 49]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (B0041187) #INVALID [41 a7 f3 87]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (B84FDCF9) #INVALID [43 20 10 90]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (B403A7E6) #INVALID [47 00 00 00]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (F8C0D255) #INVALID [1b fd 0c 00 1b fd 0c 00 1b fd 0c 00 1b fd 0c 00 1b ff 0c 00 ... (96)]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (649B10DA) #INVALID [05 27 00 00 04 c9 00 00 05 4d 00 00 05 4b 00 00 05 6e 00 00 ... (96)]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (71CB0B57) #INVALID [05 81 00 00 05 54 00 00 05 86 00 00 05 9d 00 00 05 58 00 00 ... (96)]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (4D684EF2) #INVALID [00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... (96)]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (0C2A7286) #INVALID [00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... (96)]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (54829753) Power management grid power limit [W] [44 fa 00 00]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (91617C58) Total grid power [W] [43 a0 2b b0]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (1AC87AA0) #INVALID [43 a0 2b b0]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (E96F1844) S0 external power [W] [00 00 00 00]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (5F33284E) Inverter state [06]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (F0B436DD) #INVALID [43 43 ed 9f]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (31ED1B75) #INVALID [00]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (2703A771) #INVALID [01]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (87E4387A) #INVALID [43 1c 00 00]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (437B8122) #INVALID [00]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (3623D82A) #INVALID [00 02]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (0DE3D20D) Battery status for both batteries [00 00 00 00]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (70A2AF4F) Battery status for first battery [00 00 00 00]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (90F123FA) #INVALID [00]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (4F330E08) #INVALID [00]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (46635546) #INVALID [00]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (C0A7074F) #INVALID [f7 2a b8 c3 50 53 20 38 2e 30 20 50 43 50 41 00 00 00 00 00 ... (108)]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (400F015B) Battery power [W] [41 26 59 e7]
[rct ] TRACE 2026/10/20 20:50:32 recv: (05) Response (1C4A665F) #INVALID [42 48 06 27]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (EBC62737) #INVALID [50 53 20 38 2e 30 20 50 43 50 41 00 00 00 00 00 00 00 00 00 ... (64)]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (DDD1C2D0) #INVALID [32 2e 33 2e 35 36 38 39 00 00 00 00 00 00 00 00]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (959930BF) Battery state of charge [3f 39 5a a1]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (8B4BE168) Battery Placeholer 0 Soc [00 00 00 00]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (DB11855B) #INVALID [00 00 00 04]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (0CB5D21B) #INVALID [00 00 00 04]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (DB2D69AE) Inverter AC power [W] [00 00 00 00]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (8FC89B10) #INVALID [00]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (EB7BCB93) #INVALID [00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... (24)]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (4E04DD55) #INVALID [3a 83 12 6f]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (AEF76FA1) #INVALID [43 11 a2 4e]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (BD3A23C3) Power management SOC charge [3d 4c cc cd]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (BD008E29) Power management battery external power [W] [00 00 00 00]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (682CDDA1) #INVALID [03]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (F168B748) Power management SOC strategy [04]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (4C6E4169) #INVALID [01]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (8B9FF008) Battery SOC target [3f 78 51 ec]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (485AD749) #INVALID [43 c8 60 da]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (F25C339B) #INVALID [43 c8 55 5e]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (9A67600D) #INVALID [45 fa 00 00]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (F2405AC6) #INVALID [00 00 00 00]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (03A39CA2) #INVALID [42 24 39 49]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (2788928C) #INVALID [42 92 16 eb]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (D197CBE0) #INVALID [40 20 00 00]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (F1342795) #INVALID [40 20 00 00]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (972B3029) #INVALID [3f 00 00 00]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (1D2994EA) Power management SOC charge power [W] [42 c8 00 00]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (65EED11B) #INVALID [43 1f a6 25]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (27BE51D9) #INVALID [42 1a af a5]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (B221BCFA) #INVALID [43 45 8c cf]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (CF053085) #INVALID [43 66 db e9]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (54B4684E) #INVALID [43 68 20 e9]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (2545E22D) #INVALID [43 68 54 ec]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (63476DBE) #INVALID [43 c8 31 92]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (99EA35E2) #INVALID [01]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (663F1452) Number of batteries connected to inverter [01]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (BD870886) #INVALID [01]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (CE266F0F) Battery SOC target min [3f 3a 50 f1]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (8EBF9574) Battery SOC target min island [3d 8f 5c 29]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (97997C93) Power management SOC max [3f 78 51 ec]
[rct ] TRACE 2026/10/20 20:50:33 recv: (05) Response (D1DFC969) Power management SOC target set [3f 80 00 00] 

After I connected to the battery using the RCT Power App, at least the responses normalised.

[rct ] TRACE 2026/10/20 20:51:14 recv: (05) Response (663F1452) Number of batteries connected to inverter [01]
[rct ] TRACE 2026/10/20 20:51:14 recv: (05) Response (BD870886) #INVALID [01]
[rct ] TRACE 2026/10/20 20:51:14 recv: (05) Response (959930BF) Battery state of charge [3f 39 57 1b]
[rct ] TRACE 2026/10/20 20:51:14 recv: (05) Response (8B4BE168) Battery Placeholer 0 Soc [00 00 00 00]
[rct ] TRACE 2026/10/20 20:51:14 recv: (05) Response (DB11855B) #INVALID [00 00 00 04]
[rct ] TRACE 2026/10/20 20:51:15 recv: (05) Response (0CB5D21B) #INVALID [00 00 00 04]
[rct ] TRACE 2026/10/20 20:51:15 recv: (05) Response (400F015B) Battery power [W] [41 26 e5 41]
[rct ] TRACE 2026/10/20 20:51:15 recv: (05) Response (DB2D69AE) Inverter AC power [W] [00 00 00 00]
[rct ] TRACE 2026/10/20 20:51:15 recv: (05) Response (91617C58) Total grid power [W] [43 9d 53 cc]
[rct ] TRACE 2026/10/20 20:51:15 recv: (05) Response (1AC87AA0) #INVALID [43 9d 53 cc]
[rct ] TRACE 2026/10/20 20:51:15 recv: (05) Response (E96F1844) S0 external power [W] [00 00 00 00]
[rct ] TRACE 2026/10/20 20:51:15 recv: (05) Response (2703A771) #INVALID [01]
[rct ] TRACE 2026/10/20 20:51:15 recv: (05) Response (99EA35E2) #INVALID [01]
[rct ] TRACE 2026/10/20 20:51:15 recv: (05) Response (1D2994EA) Power management SOC charge power [W] [42 c8 00 00]
[rct ] TRACE 2026/10/20 20:51:15 recv: (05) Response (BD3A23C3) Power management SOC charge [3d 4c cc cd]
[rct ] TRACE 2026/10/20 20:51:15 recv: (05) Response (BD008E29) Power management battery external power [W] [00 00 00 00]
[rct ] TRACE 2026/10/20 20:51:16 send: (01) Read (AA9AA253) Solar generator B power [W] []
[rct ] TRACE 2026/10/20 20:51:16 send: (01) Read (62FBE7DC) Total energy grid load [Wh] []
[rct ] TRACE 2026/10/20 20:51:16 send: (01) Read (A9033880) Total energy batt out [Wh] []
[rct ] TRACE 2026/10/20 20:51:16 send: (01) Read (B5317B78) Solar generator A power [W] []
[rct ] TRACE 2026/10/20 20:51:16 send: (01) Read (AA9AA253) Solar generator B power [W] []
[rct ] TRACE 2026/10/20 20:51:16 send: (01) Read (62FBE7DC) Total energy grid load [Wh] []
[rct ] TRACE 2026/10/20 20:51:17 send: (01) Read (B5317B78) Solar generator A power [W] []
[rct ] TRACE 2026/10/20 20:51:17 send: (01) Read (A9033880) Total energy batt out [Wh] []
[rct ] TRACE 2026/10/20 20:51:17 send: (01) Read (62FBE7DC) Total energy grid load [Wh] []
[rct ] TRACE 2026/10/20 20:51:17 send: (01) Read (B5317B78) Solar generator A power [W] []
[rct ] TRACE 2026/10/20 20:51:18 send: (01) Read (AA9AA253) Solar generator B power [W] []
[rct ] TRACE 2026/10/20 20:51:18 send: (01) Read (A9033880) Total energy batt out [Wh] []
[rct ] TRACE 2026/10/20 20:51:18 send: (01) Read (AA9AA253) Solar generator B power [W] []
[rct ] TRACE 2026/10/20 20:51:18 send: (01) Read (A9033880) Total energy batt out [Wh] []
[rct ] TRACE 2026/10/20 20:51:18 send: (01) Read (B5317B78) Solar generator A power [W] []
[rct ] TRACE 2026/10/20 20:51:18 recv: (05) Response (AA9AA253) Solar generator B power [W] [00 00 00 00]
[rct ] TRACE 2026/10/20 20:51:18 recv: (05) Response (A9033880) Total energy batt out [Wh] [49 dd 0c c8]
[rct ] TRACE 2026/10/20 20:51:18 recv: (05) Response (B5317B78) Solar generator A power [W] [00 00 00 00]
[rct ] TRACE 2026/10/20 20:51:19 send: (01) Read (62FBE7DC) Total energy grid load [Wh] []
[rct ] TRACE 2026/10/20 20:51:19 recv: (05) Response (62FBE7DC) Total energy grid load [Wh] [4a 91 7e 34]
[rct ] TRACE 2026/10/20 20:51:20 send: (01) Read (5570401B) Total energy batt in [Wh] []
[rct ] TRACE 2026/10/20 20:51:20 recv: (05) Response (5570401B) Total energy batt in [Wh] [49 f7 47 88]
[rct ] TRACE 2026/10/20 20:51:20 send: (01) Read (68EEFD3D) Total energy solarGenB [Wh] []
[rct ] TRACE 2026/10/20 20:51:20 send: (01) Read (FC724A9E) Total energy solarGenA [Wh] []
[rct ] TRACE 2026/10/20 20:51:20 recv: (05) Response (68EEFD3D) Total energy solarGenB [Wh] [4b 05 62 00]
[rct ] TRACE 2026/10/20 20:51:20 recv: (05) Response (FC724A9E) Total energy solarGenA [Wh] [4a da 69 ed]
[rct ] TRACE 2026/10/20 20:51:21 send: (01) Read (44D4C533) Total energy grid feed in [Wh] []
[rct ] TRACE 2026/10/20 20:51:21 recv: (05) Response (44D4C533) Total energy grid feed in [Wh] [cb 1d 37 ec] 

After updating min SoC several times in the app, the battery finally accepted the setting and is now discharging.

jjfx141 avatar Oct 20 '26 19:10 jjfx141

Thanks for sharing your experience, @jjfx141. Your issue sounds very similar to mine.

How I temporarily recovered my system:

October 13 – Minimum SoC stuck at 79%

  • The battery stopped discharging although its actual SoC was around 78%.
  • I restarted evcc only after discovering the problem.
  • During the restart, I manually restored the RCT minimum SoC to 7% using the RCT Power App.
  • Normal battery discharge resumed.

October 17 – Minimum SoC stuck at 37.41%

  • The issue occurred again with the battery at approximately 37%.
  • I completely stopped evcc before attempting to restore the minimum SoC using the RCT Power App.
  • Despite evcc being stopped, the app repeatedly displayed "Flash OK", but the minimum SoC reverted to approximately 37%.
  • After several attempts, the manually configured 7% finally persisted and the battery resumed normal discharge.

This is an important observation: evcc was not running during the failed manual recovery attempts. Therefore, evcc could not have been actively rewriting the minimum SoC at that time.

This suggests that the failed manual restoration may also involve the RCT inverter, its firmware or how configuration changes are stored.

Further findings:

My logs show repeated RCT TCP connection resets on port 8899 and numerous "must retry" errors, even without active EV charging.

On October 18 and 19, I also tested stopping charging through evcc and unplugging the VW ID.3 directly. Both tests showed evcc sending "BatteryNormal" and restoring the configured 5% minimum SoC. However, the battery was already near 5%, so those tests cannot conclusively exclude the original problem.

The previously discussed hypothesis of a partially successful "BatteryHold" operation remains possible, but has not been confirmed.

A few questions:

  1. Which evcc version and RCT firmware are you using?
  2. Have you tried manually restoring the minimum SoC while evcc was completely stopped?
  3. Did you observe RCT connection errors around the "hold β†’ normal" transition?

I'll continue collecting TRACE logs to help identify the root cause.

Thanks for contributing your findings!

Soul7495 avatar Oct 20 '26 19:10 Soul7495

evcc: v0.318.0-dev.1792156885 BMS: 5617 Inverter: 2.3.5689

Most likely the final RCT firmware versions.

No, evcc was running all the time and after a few attempts the battery still accepted the min SoC entered via the app. There was just one connection error around the time I tried changing the min SoC.

jjfx141 avatar Oct 21 '26 18:10 jjfx141

Right now nothing we want to fix on evcc side. Please investigate with RCT why inverter apparently refuses to apply settings.

andig avatar Oct 24 '26 14:10 andig

Following up on the mechanism the bot sketched above, with a finding that may matter regardless of whether evcc changes anything: a naive read-before-write in the RCT meter makes this bug worse, and I can reproduce both variants.

Why the mode is re-applied at all

batteryMode writes its registers unconditionally. BatteryNormal rewrites the configured min and max soc every time a hold ends, even though those only change when the configuration does. So a user who raises the min soc on the device sees it reset, and every mode change spends writes that cannot change anything β€” each one being another chance to fail or be answered late, which is exactly how a mode ends up half applied.

The cache trap

Connection.Query serves reads from a cache for the configured cache duration, and Write does not invalidate that entry. The entry for BatterySoCTargetMin is filled before BatteryHold writes the current soc to it, so shortly afterwards the cache still reports the configured min soc. A read-before-write that trusts it therefore skips the BatteryNormal write and leaves the hold in place β€” the battery keeps its elevated min soc and stops discharging.

Verified against a protocol-level RCT simulator I maintain, which logs every register write. Same test, two implementations, minsoc: 20, 30 s cache, hold immediately followed by normal:

# read-before-write trusting the cache  -> hold is never released
WRITE 0xCE266F0F Battery SOC target min = 0.5462841    (hold)
(marker: normal requested)                             <- no write, min soc stays 0.546

# readback only trusted when newer than our own last write
WRITE 0xCE266F0F Battery SOC target min = 0.5340662    (hold)
(marker: normal requested)
WRITE 0xCE266F0F Battery SOC target min = 0.2000000    (normal, hold released)

The same run also shows the intended effect: re-applying BatteryNormal with nothing changed produces no write at all, while a min soc raised by hand to 0.30 is still written back to the configured 0.20 β€” the configuration keeps winning, only the pointless writes disappear.

Patch

Reads each register back and writes only on a difference; a failed readback falls through to the write, and the readback is trusted only when it is newer than the meter's own last write to that register. Tolerance absorbs the float32 round-trip while staying two orders of magnitude below the one percent the app offers. Unit tests cover the comparison including the cache case; go build, go vet, gofmt clean.

This does not fix the root cause you pointed at β€” if the inverter refuses a write, nothing here helps. It removes the writes that carry no new value, and with them most of the occasions for the failure to happen at all. Happy to open a PR if that is wanted.

meter/rct.go + tests (diff)
diff --git a/meter/rct.go b/meter/rct.go
index afa3ebf..8d14255 100644
--- a/meter/rct.go
+++ b/meter/rct.go
@@ -26,7 +26,8 @@ type RCT struct {
 	externalPower bool            // whether to query external power
 
 	mu           sync.Mutex
-	rSocStrategy *uint8 // remembers overwritten soc strategy value
+	rSocStrategy *uint8                       // remembers overwritten soc strategy value
+	lastWrite    map[rct.Identifier]time.Time // when this meter last wrote a register
 }
 
 // takeRSocStrategy atomically returns and clears the saved soc strategy, or nil
@@ -207,29 +208,29 @@ func NewRCT(ctx context.Context, uri, usage string, batterySocLimits batterySocL
 			case api.BatteryNormal:
 				if strategy := m.takeRSocStrategy(); strategy != nil {
 					eg.Go(func() error {
-						return m.conn.Write(rct.PowerMngSocStrategy, []byte{*strategy})
+						return m.writeByte(rct.PowerMngSocStrategy, *strategy)
 					})
 				}
 
 				eg.Go(func() error {
-					return m.conn.Write(rct.BatterySoCTargetMin, floatVal(batterySocLimits.MinSoc/100))
+					return m.writeFloat(rct.BatterySoCTargetMin, batterySocLimits.MinSoc/100, rctSocEpsilon)
 				})
 
 				eg.Go(func() error {
-					return m.conn.Write(rct.PowerMngSocMax, floatVal(batterySocLimits.MaxSoc/100))
+					return m.writeFloat(rct.PowerMngSocMax, batterySocLimits.MaxSoc/100, rctSocEpsilon)
 				})
 
 				eg.Go(func() error {
-					return m.conn.Write(rct.PowerMngBatteryPowerExternW, floatVal(0))
+					return m.writeFloat(rct.PowerMngBatteryPowerExternW, 0, rctPowerEpsilon)
 				})
 
 			case api.BatteryHold:
 				eg.Go(func() error {
-					return m.conn.Write(rct.PowerMngSocStrategy, []byte{rct.SOCTargetInternal})
+					return m.writeByte(rct.PowerMngSocStrategy, rct.SOCTargetInternal)
 				})
 
 				eg.Go(func() error {
-					return m.conn.Write(rct.PowerMngSocMax, floatVal(batterySocLimits.MaxSoc/100))
+					return m.writeFloat(rct.PowerMngSocMax, batterySocLimits.MaxSoc/100, rctSocEpsilon)
 				})
 
 				eg.Go(func() error {
@@ -239,42 +240,42 @@ func NewRCT(ctx context.Context, uri, usage string, batterySocLimits batterySocL
 					if err != nil {
 						return err
 					}
-					return m.conn.Write(rct.BatterySoCTargetMin, floatVal(soc))
+					return m.writeFloat(rct.BatterySoCTargetMin, soc, rctSocEpsilon)
 				})
 
 			case api.BatteryCharge:
 				eg.Go(func() error {
-					return m.conn.Write(rct.PowerMngUseGridPowerEnable, []byte{1})
+					return m.writeByte(rct.PowerMngUseGridPowerEnable, 1)
 				})
 
 				eg.Go(func() error {
-					return m.conn.Write(rct.PowerMngBatteryPowerExternW, floatVal(-batteryPowerLimits.MaxChargePower))
+					return m.writeFloat(rct.PowerMngBatteryPowerExternW, -batteryPowerLimits.MaxChargePower, rctPowerEpsilon)
 				})
 
 				eg.Go(func() error {
-					return m.conn.Write(rct.PowerMngSocStrategy, []byte{rct.SOCTargetExternal})
+					return m.writeByte(rct.PowerMngSocStrategy, rct.SOCTargetExternal)
 				})
 
 			case api.BatteryHoldCharge:
 				eg.Go(func() error {
-					return m.conn.Write(rct.PowerMngSocStrategy, []byte{rct.SOCTargetInternal})
+					return m.writeByte(rct.PowerMngSocStrategy, rct.SOCTargetInternal)
 				})
 
 				eg.Go(func() error {
-					return m.conn.Write(rct.BatterySoCTargetMin, floatVal(batterySocLimits.MinSoc/100))
+					return m.writeFloat(rct.BatterySoCTargetMin, batterySocLimits.MinSoc/100, rctSocEpsilon)
 				})
 
 				eg.Go(func() error {
-					return m.conn.Write(rct.PowerMngSocMax, floatVal(batterySocLimits.MinSoc/100))
+					return m.writeFloat(rct.PowerMngSocMax, batterySocLimits.MinSoc/100, rctSocEpsilon)
 				})
 
 			case api.BatteryDischarge:
 				eg.Go(func() error {
-					return m.conn.Write(rct.PowerMngBatteryPowerExternW, floatVal(batteryPowerLimits.MaxDischargePower))
+					return m.writeFloat(rct.PowerMngBatteryPowerExternW, batteryPowerLimits.MaxDischargePower, rctPowerEpsilon)
 				})
 
 				eg.Go(func() error {
-					return m.conn.Write(rct.PowerMngSocStrategy, []byte{rct.SOCTargetExternal})
+					return m.writeByte(rct.PowerMngSocStrategy, rct.SOCTargetExternal)
 				})
 
 			default:
@@ -395,6 +396,89 @@ func (m *RCT) returnEnergy() (float64, error) {
 	}
 }
 
+// rctSocEpsilon is the tolerance for comparing a soc fraction (0 ... 1) read
+// back from the inverter. The float32 round-trip does not reproduce a written
+// value exactly (see curtailed above), and this is two orders of magnitude
+// below the one percent the RCT app itself offers.
+const rctSocEpsilon = 1e-4
+
+// rctPowerEpsilon is the tolerance in W for a power setpoint read back.
+const rctPowerEpsilon = 0.5
+
+// noteWrite records when a register was last written by this meter.
+func (m *RCT) noteWrite(id rct.Identifier) {
+	m.mu.Lock()
+	defer m.mu.Unlock()
+
+	if m.lastWrite == nil {
+		m.lastWrite = make(map[rct.Identifier]time.Time)
+	}
+	m.lastWrite[id] = time.Now()
+}
+
+// lastWriteAt returns when this meter last wrote id, or the zero time.
+func (m *RCT) lastWriteAt(id rct.Identifier) time.Time {
+	m.mu.Lock()
+	defer m.mu.Unlock()
+	return m.lastWrite[id]
+}
+
+// writeSkippable reports whether a write can be skipped because the inverter
+// already holds the value.
+//
+// Three things must hold: the readback succeeded, it matches within epsilon,
+// and it is newer than the last write this meter made to the register.
+// Connection.Query serves reads from a cache for the configured cache duration
+// and a write does not invalidate that entry, so an entry read before our own
+// write still carries the value from before it -- skipping on that would leave
+// the register at whatever the earlier write put there.
+func writeSkippable(cur float64, err error, readAt, lastWrite time.Time, val, epsilon float64) bool {
+	return err == nil && readAt.After(lastWrite) && math.Abs(cur-val) <= epsilon
+}
+
+// writeFloat writes val to id unless the inverter already holds that value.
+//
+// Battery modes are regularly applied with values the inverter already has:
+// BatteryNormal rewrites the configured min and max soc every time a hold
+// ends, and those only change when the configuration does. Each write is
+// stored by the inverter and is one more chance for a write to fail or to be
+// answered late, which can leave a mode half applied (evcc-io/evcc#34779), so
+// writes that cannot change anything are not worth making.
+func (m *RCT) writeFloat(id rct.Identifier, val, epsilon float64) error {
+	cur, err := m.queryFloat(id)
+	_, readAt := m.conn.Get(id)
+
+	if writeSkippable(cur, err, readAt, m.lastWriteAt(id), val, epsilon) {
+		return nil
+	}
+
+	if err := m.conn.Write(id, floatVal(val)); err != nil {
+		return err
+	}
+
+	m.noteWrite(id)
+
+	return nil
+}
+
+// writeByte is writeFloat for a single-byte enum or bool register.
+func (m *RCT) writeByte(id rct.Identifier, val uint8) error {
+	cur, err := m.queryUint8(id)
+	_, readAt := m.conn.Get(id)
+
+	if writeSkippable(float64(cur), err, readAt, m.lastWriteAt(id), float64(val), 0) {
+		return nil
+	}
+
+	if err := m.conn.Write(id, []byte{val}); err != nil {
+		return err
+	}
+
+	m.noteWrite(id)
+
+	return nil
+}
+
 func floatVal(f float64) []byte {
 	data := make([]byte, 4)
 	binary.BigEndian.PutUint32(data, math.Float32bits(float32(f)))
diff --git a/meter/rct_test.go b/meter/rct_test.go
index acc2905..cb7ba79 100644
--- a/meter/rct_test.go
+++ b/meter/rct_test.go
@@ -1,7 +1,12 @@
 package meter
 
 import (
+	"errors"
+	"math"
 	"testing"
+	"time"
+
+	"github.com/evcc-io/rct"
 
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
@@ -36,3 +41,74 @@ func TestRCTSetRSocStrategyIfAbsent(t *testing.T) {
 	require.NotNil(t, strategy)
 	assert.Equal(t, uint8(4), *strategy)
 }
+
+// TestRCTWriteSkippable verifies the readback comparison that keeps a battery
+// mode from rewriting values the inverter already holds (#34779).
+func TestRCTWriteSkippable(t *testing.T) {
+	errRead := errors.New("connection reset by peer")
+
+	var (
+		wrote = time.Now()
+		after = wrote.Add(time.Second)
+		befor = wrote.Add(-time.Second)
+		never = time.Time{}
+	)
+
+	tc := []struct {
+		name            string
+		cur             float64
+		err             error
+		readAt, written time.Time
+		val, epsilon    float64
+		skip            bool
+	}{
+		{"identical soc, never written", 0.2, nil, after, never, 0.2, rctSocEpsilon, true},
+		{"identical soc, read after our write", 0.2, nil, after, wrote, 0.2, rctSocEpsilon, true},
+		// what a written value actually reads back as
+		{"float32 round-trip", float64(float32(0.3)), nil, after, never, 0.3, rctSocEpsilon, true},
+		// a manually raised reserve is still overwritten with the configured one
+		{"soc differs", 0.3, nil, after, never, 0.2, rctSocEpsilon, false},
+		// the tolerance must stay well below the one percent the app offers
+		{"one percent apart", 0.21, nil, after, never, 0.2, rctSocEpsilon, false},
+		{"power setpoint reached", 0.0, nil, after, never, 0, rctPowerEpsilon, true},
+		{"power setpoint differs", -4200, nil, after, never, 0, rctPowerEpsilon, false},
+		// a readback that failed says nothing, so the write must happen
+		{"read failed", 0.2, errRead, after, never, 0.2, rctSocEpsilon, false},
+		// the hold -> normal case inside the cache window: the cached entry was
+		// read before the hold wrote the current soc, so it still reads as the
+		// configured min soc. Skipping here would leave the hold in place.
+		{"cached from before our write", 0.2, nil, befor, wrote, 0.2, rctSocEpsilon, false},
+	}
+
+	for _, tc := range tc {
+		t.Run(tc.name, func(t *testing.T) {
+			assert.Equal(t, tc.skip, writeSkippable(tc.cur, tc.err, tc.readAt, tc.written, tc.val, tc.epsilon))
+		})
+	}
+}
+
+// TestRCTNoteWrite verifies the per-register write timestamps the readback
+// comparison relies on.
+func TestRCTNoteWrite(t *testing.T) {
+	m := &RCT{}
+
+	// nothing written yet: any readback is newer than the zero time
+	assert.True(t, m.lastWriteAt(rct.BatterySoCTargetMin).IsZero())
+
+	before := time.Now()
+	m.noteWrite(rct.BatterySoCTargetMin)
+
+	assert.False(t, m.lastWriteAt(rct.BatterySoCTargetMin).Before(before))
+	// registers are tracked separately
+	assert.True(t, m.lastWriteAt(rct.PowerMngSocMax).IsZero())
+}
+
+// TestRCTSocEpsilonResolution guards the tolerance against being widened to
+// where it would swallow a change the RCT app can make (one percent).
+func TestRCTSocEpsilonResolution(t *testing.T) {
+	assert.Less(t, rctSocEpsilon, 0.01)
+	// and it must still absorb the float32 round-trip of any soc fraction
+	for _, soc := range []float64{0.05, 0.07, 0.2, 0.3, 0.95, 1} {
+		assert.LessOrEqual(t, math.Abs(float64(float32(soc))-soc), rctSocEpsilon)
+	}
+}

πŸ€– Generated with Claude Code

HWE70 avatar Oct 25 '26 14:10 HWE70

So what does the support suggest?

andig avatar Oct 25 '26 14:10 andig

25. So what does the support suggest? I fear there is nobody to support currently: https://www.pv-magazine.de/2026/09/16/speicheranbieter-rct-power-meldet-insolvenz-an/

Or to be more precise, you can raise a Ticket, but due to the current situation, you have to prepay 89€, without any warranty that there will any meaningful answer, because I am sure the 2nd level support won't be able to answer this, just development - as long as there should be any developer left ...

HWE70 avatar Oct 25 '26 15:10 HWE70

Sounds like a don’t buy this advise 😭

andig avatar Oct 25 '26 15:10 andig

27. Sounds like a don’t buy this advise 😭

Yes I think so 😭. I liked the devices very much. By the end of Nov they are now looking for somebody to take over. Fingers crossed, but I can't see anybody being interested. All European branches have their own problems anyway. They don't need to take over foreign problems on top. Sonnen also just started the insolvency process ....

HWE70 avatar Oct 25 '26 15:10 HWE70

I tested a patched version with Read-before-Write and Read-back against the simulator. The latter is much more risky. Anyway, I just applied it to my own RCT-environment and will watch it closely ....

HWE70 avatar Oct 25 '26 16:10 HWE70

I am experiencing a similar problem with an RCT battery, although the minimum SOC does not appear to be the cause in my case. Setup evcc version: 0.318.1 Installation: Home Assistant add-on Inverter: RCT Power Storage PS 8.0 GH5H Battery capacity: 7.6 kWh Observed behavior The battery charges, but does not discharge to cover household consumption: Today, the battery SOC increased from approximately 91% to 97%. With the battery still at approximately 96.4%, household demand is supplied from the grid. Battery power remains approximately 1–2 W. Price-triggered grid charging starts and stops as expected. The RCT app continuously shows SOC target selection as External. The SOC target selection menu cannot be opened, even after logging out and logging back in with the installer password. The behavior persists with evcc stopped and the Home Assistant RCT integration disabled. The Home Assistant battery status sensor reports normal. I understand this is separate from the SOC control strategy. In evcc’s /api/state, batteryMode alternates between normal and unknown.

evcc-20261029-172935-debug.log

manuausruben avatar Oct 29 '26 16:10 manuausruben