evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Problem with Solax Battery-Locking in Version 209.x

Open Joe-md opened this issue 1 year ago • 3 comments

Describe the bug

Since installing version 0.209.0, 0.209.2 and 0.209.6 I've seen an issue with locking my solax battery when doing a planned or fast charge. I get an error from the log: [site] ERROR 2025/11/02 22:24:14 battery mode: modbus: response unit id '1' does not match request '2'

Installation History evcc/evcc 0.209.6
evcc/evcc 0.209.2
evcc/evcc 0.209.0
evcc/evcc 0.208.1

Rolling back the system to 208.1 seems to fix the issue.

Inverter: Solax: X3-Hybrid-G4 Battery: Solax t-bat h 5.8 v2 (1 Master & 1 Slave)

My System Information can be found on "Problem mit führenden Leerzeichen in Influx URL" #19611

If any further information should be required, I would be happy to provide it...

Best Regards - Johannes

Steps to reproduce

...

Configuration details

/app # evcc -v
evcc version 0.208.1

/app # evcc dump --cfg
[main  ] INFO 2025/11/02 22:59:10 using config file: /etc/evcc.yaml
[db    ] INFO 2025/11/02 22:59:10 using sqlite database: /root/.evcc/evcc.db
[lp-2  ] WARN 2025/11/02 22:59:13 poll mode '{connected 1m0s}' may deplete your battery or lead to API misuse. USE AT YOUR OWN RISK.
[lp-3  ] WARN 2025/11/02 22:59:13 poll mode '{connected 1m0s}' may deplete your battery or lead to API misuse. USE AT YOUR OWN RISK.
[lp-4  ] WARN 2025/11/02 22:59:13 poll mode '{connected 1m0s}' may deplete your battery or lead to API misuse. USE AT YOUR OWN RISK.
[tariff] DEBUG 2025/11/02 22:59:13 using cache: grünstromindex-003871237a58c4f7870611ecca646722afd6696bf878cb07e07b7036d2f71573 (start: 2025-11-02 22:00:00 +0100 CET, end: 2025-11-07 00:00:00 +0100 CET)
[lp-1  ] DEBUG 2025/11/02 22:59:13 charge total import: 4820.555kWh
[lp-2  ] DEBUG 2025/11/02 22:59:13 charge total import: 1417.137kWh
[lp-3  ] DEBUG 2025/11/02 22:59:13 charge total import: 1092.958kWh
[lp-4  ] DEBUG 2025/11/02 22:59:13 charge total import: 1362.962kWh

Version: `0.208.1`

Konfiguration (/etc/evcc.yaml):

# open evcc at http://evcc.local:7070
network:
  schema: http
  host: evcc.local # .local suffix announces the hostname on MDNS
  port: 7070

log: debug
levels:
  cache: error

# unique installation id
plant: *****

interval: 30s # control cycle interval

# sponsor token, valid 1095 Tage ab 16.09.2024
sponsortoken: *****

# sponsors can set telemetry: true to enable anonymous data aggregation
# see https://github.com/evcc-io/evcc/discussions/4554
telemetry: true

meters:
- type: template
  template: solax
  id: 1
  host: 192.168.x.x
  port: 502
  usage: grid
  modbus: tcpip
  name: grid1
- type: template
  template: solax
  id: 1
  host: 192.168.x.x
  port: 502
  usage: pv
  modbus: tcpip
  name: pv1
- type: template
  template: solax
  id: 2
  host: 192.168.x.x
  port: 502
  usage: battery
  modbus: tcpip
  capacity: 10.4
  name: battery1

chargers:
- type: template
  template: go-e-v3
  host: 192.168.x.x
  name: wallbox5
- type: template
  template: shelly
  name: ShellyHWR1
  heating: true
  host: 192.168.x.x # IP-Adresse oder Hostname
  user: *****
  password: *****
  channel: 0 # Optional
- type: template
  template: shelly
  name: ShellyHWR2
  heating: true
  host: 192.168.x.x # IP-Adresse oder Hostname
  user: *****
  password: *****
  channel: 0 # Optional
- type: template
  template: shelly
  name: ShellyHWR3
  heating: true
  host: 192.168.x.x # IP-Adresse oder Hostname
  user: *****
  password: *****
  channel: 0 # Optional

vehicles:
- type: template
  template: vw
  title: ID-4
  icon: car
  user: *****
  password: *****
  vin: *****
  capacity: 77
  phases: 3
  cache: 15m
  mode: pv
  minCurrent: 2
  maxCurrent: 16
  timeout: 10s
  name: ev4
- name: WWSpeicher_HWR
  type: custom
  title: WWSpeicher # display name for UI
  icon: waterheater
  capacity: 73 # battery capacity (kWh)
  phases: 1
  soc:
    source: http
    uri: http://192.168.x.x/rpc/Shelly.GetStatus
    jq: .["temperature:100"].tC

loadpoints:
- title: go-e-Carport
  charger: wallbox5
  vehicle: ev4
  mode: pv
  priority: 5
- title: WWShelly1 # display name for UI
  charger: ShellyHWR1 # charger
  vehicle: WWSpeicher_HWR
  mode: pv
  priority: 1
  mincurrent: 10 # 9A220V=1980W minimum charge current (default 6A)
  maxcurrent: 10 # 10A220V=2200W maximum charge current (default 16A)
  phases: 1 # ev phases (default 3)
  soc:
    poll:
      mode: connected
      interval: 10m
- title: WWShelly2 # display name for UI
  charger: ShellyHWR2 # charger
  vehicle: WWSpeicher_HWR
  mode: pv
  priority: 1
  mincurrent: 10 # 9A220V=1980W minimum charge current (default 6A)
  maxcurrent: 10 # 10A220V=2200W maximum charge current (default 16A)
  phases: 1 # ev phases (default 3)
  soc:
    poll:
      mode: connected
      interval: 10m
- title: WWShelly3 # display name for UI
  charger: ShellyHWR3 # charger
  vehicle: WWSpeicher_HWR
  mode: pv
  priority: 1
  mincurrent: 10 # 9A220V=1980W minimum charge current (default 6A)
  maxcurrent: 10 # 10A220V=2200W maximum charge current (default 16A)
  phases: 1 # ev phases (default 3)
  soc:
    poll:
      mode: connected
      interval: 10m
site:
  title: Kirchweg 11
  meters:
    grid: grid1
    pv:
    - pv1
    battery:
    - battery1
  residualPower: 100

Log details

`[site] ERROR 2025/11/02 22:24:14 battery mode: modbus: response unit id '1' does not match request '2'`

no other errors

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

Docker container

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

evcc version 0.208.1

Joe-md avatar Nov 02 '25 22:11 Joe-md

Rolling back the system to 208.1 seems to fix the issue.

Please share modbus trace log of

evcc meter --log trace,db:error --batterymode

of working and non-working version.

andig avatar Nov 03 '25 08:11 andig

I had the same problem (Solax Hybrid X 1 G4) in evcc, but habe not used older versions. In Home Assistant, when I canged a setting of my Solax battery, I had to set solax_lock_state to unlocked before. maybe it is here the same thing required.

SmaMa82 avatar Nov 05 '25 21:11 SmaMa82

Too bad 😔

https://github.com/evcc-io/evcc/issues/24988#issuecomment-3479435703

andig avatar Nov 18 '25 06:11 andig