evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Sigenergy as Grid Meter

Open sandervandijen opened this issue 5 months ago • 4 comments

Description

Hi,

I'm using my sigenergy installation as Grid meter in the app. This seemed to work fine, but I now discover that it's not actually using the grid meter in the gateway, but the meter in the inverter. This is not working for load balancing, since the integration should use the grid meter of the gateway.

Steps to Reproduce

There is no reproduction, this is an ongoing issue. I have Screenshots of the evcc app showing the wrong grid load, and the sigenergy app showing the correct grid load at the same time.

Configuration (YAML)

no yaml configuration

Configuration (UI)

{
  "charger": [
    {"id":15,"name":"db:15","type":"template","config":{"baudrate":9600,"comset":"8N1","host":"10.0.1.35","id":1,"modbus":"tcpip","port":502,"template":"alfen"},"deviceProduct":"Alfen Eve"}
  ],
  "circuits": "name: Thuis # unique name, used as reference, e.g. as parent in other circuits
title: Thuis Totaal LB # used in the UI
maxcurrent: 25 # 63A main circuit breaker (optional)
maxPower: 17250 # 30kW (optional)
meter: db:19 # associated meter to monitor the power consumption (optional)
#  parent: # no parent, this is the root circuit
#- name: Laadpaal # unique name, used as reference, e.g. to associate loadpoints
#  title: Alfen # used in the UI
#  maxcurrent: 16 # allow individual phase use up to 24A
#  maxPower: 11000 # limit total power to 11kW
#  meter: Alfen # dedicated meter for the garage
#  parent: Thuis # parent to the main circuit
#- name: carport # unique name, used as reference, e.g. to associate loadpoints
#  title: Carport # used in the UI
#  maxCurrent: 32 # 32A circuit breaker
#  maxPower: # no limit, only check current
#  meter: # no meter, using data from loadpoints
#  parent: main # parent to the main circuit",
  "experimental": false,
  "influx": {"url":"","database":"","token":"","org":"","user":"","password":"","insecure":false},
  "interval": 30,
  "loadpoints": [
    {"id":16,"name":"db:16","batteryBoostLimit":100,"charger":"db:15","defaultMode":"","limitEnergy":0,"limitSoc":80,"maxCurrent":16,"minCurrent":4,"phasesConfigured":0,"planEnergy":0,"planPrecondition":0,"planStrategy":{"continuous":false,"precondition":0},"planTime":"0001-01-01T00:00:00Z","priority":0,"smartCostLimit":null,"smartFeedInPriorityLimit":0.33,"soc":{"poll":{"mode":"charging","interval":3600000000000},"estimate":true},"thresholds":{"enable":{"delay":60000000000,"threshold":0},"disable":{"delay":180000000000,"threshold":0}},"title":"Alfen"}
  ],
  "meter": [
    {"id":26,"name":"db:26","type":"template","config":{"host":"10.0.1.90","template":"goodwe-wifi-dt","usage":"pv"},"deviceProduct":"GoodWe SDT/DT Inverter (WiFi)","deviceTitle":"Goodwe"},
    {"id":19,"name":"db:19","type":"template","config":{"host":"10.0.1.253","id":"1","maxacpower":"0","port":"502","template":"sigenergy","usage":"grid"},"deviceProduct":"Sigenergy SigenStore EC"},
    {"id":25,"name":"db:25","type":"template","config":{"battery_type":"iq","cache":"1s","host":"10.0.1.128","schema":"https","template":"enphase","timeout":"10s","token":"***","usage":"pv"},"deviceProduct":"Enphase IQ Gateway","deviceTitle":"Enphase"},
    {"id":18,"name":"db:18","type":"template","config":{"capacity":36,"host":"10.0.1.253","id":"1","maxacpower":"0","maxsoc":100,"minsoc":5,"port":"502","template":"sigenergy","usage":"battery"},"deviceProduct":"Sigenergy SigenStore EC","deviceTitle":"Sigenergy"}
  ],
  "mqtt": {"broker":"","user":"","password":"","clientID":"","insecure":false,"caCert":"","clientCert":"","clientKey":"","topic":"evcc"},
  "residualPower": 100,
  "shm": {"vendorId":"","deviceId":"","deviceSerial":""},
  "site": {"title":"EVCC","grid":"db:19","pv":["db:25","db:26"],"battery":["db:18"],"aux":null,"ext":null},
  "tariff": [
    {"id":24,"name":"db:24","type":"template","config":{"az":-130,"dec":4,"interval":"1h","kwp":1.1,"lat":"***","lon":"***","template":"forecast-solar"},"deviceProduct":"Forecast.Solar","deviceTitle":"Zon voorspelling schuur"},
    {"id":23,"name":"db:23","type":"template","config":{"az":-40,"dec":25,"interval":"1h","kwp":6.9,"lat":"***","lon":"***","template":"forecast-solar"},"deviceProduct":"Forecast.Solar","deviceTitle":"Zon voorspelling huis"},
    {"id":20,"name":"db:20","type":"template","config":{"template":"tibber","token":"***"},"deviceProduct":"Tibber"},
    {"id":21,"name":"db:21","type":"template","config":{"charges":0,"template":"tibber","token":"***"},"deviceProduct":"Tibber"},
    {"id":22,"name":"db:22","type":"template","config":{"apiKey":"***","template":"ned"},"deviceProduct":"Nationaal Energie Dashboard"}
  ],
  "tariffRefs": {"grid":"db:20","feedIn":"db:21","co2":"db:22","planner":"","solar":["db:23","db:24"]},
  "vehicle": [
    {"id":17,"name":"db:17","type":"template","config":{"cache":"15m","capacity":87,"icon":"car","maxCurrent":16,"minCurrent":6,"mode":"minpv","password":"***","phases":"3","priority":0,"template":"renault","title":"Scenic","user":"***","wakeupmode":"default"},"deviceProduct":"Renault"}
  ]
}

Logs

[lp-1  ] DEBUG 2026/06/14 13:41:44 charge total import: 6269.301kWh
[lp-1  ] DEBUG 2026/06/14 13:41:44 charger status: B
[lp-1  ] DEBUG 2026/06/14 13:41:44 !! plan: plan time zero
[lp-1  ] DEBUG 2026/06/14 13:41:44 limitSoc reached: 80.0% > 80%
[site  ] DEBUG 2026/06/14 13:41:44 solar forecast: produced 16.936kWh, forecasted 12.262kWh, scale 1.381
[site  ] DEBUG 2026/06/14 13:42:13 ----
[lp-1  ] DEBUG 2026/06/14 13:42:13 charge power: 0W
[lp-1  ] DEBUG 2026/06/14 13:42:13 charge currents: [0 0 0]A
[Thuis ] DEBUG 2026/06/14 13:42:13 power: 16992W
[Thuis ] WARN 2026/06/14 13:42:13 over current detected: 26.7A > 25A
[site  ] DEBUG 2026/06/14 13:42:13 grid power: 16992W
[site  ] DEBUG 2026/06/14 13:42:13 pv 1 power: 1378W
[site  ] DEBUG 2026/06/14 13:42:13 battery 1 power: -16246W
[site  ] DEBUG 2026/06/14 13:42:13 grid currents: [25.3 26.7 22.5]A
[site  ] DEBUG 2026/06/14 13:42:13 battery 1 soc: 27%
[site  ] DEBUG 2026/06/14 13:42:13 pv 2 power: 351W
[site  ] DEBUG 2026/06/14 13:42:13 pv power: 1729W
[site  ] DEBUG 2026/06/14 13:42:13 battery has priority at soc 27% (< 90%)
[site  ] DEBUG 2026/06/14 13:42:13 site power: 17092W
[lp-1  ] DEBUG 2026/06/14 13:42:14 charge voltages: [232 232 231]V
[lp-1  ] DEBUG 2026/06/14 13:42:14 charge total import: 6269.301kWh
[lp-1  ] DEBUG 2026/06/14 13:42:14 charger status: B
[lp-1  ] DEBUG 2026/06/14 13:42:14 !! plan: plan time zero
[lp-1  ] DEBUG 2026/06/14 13:42:14 limitSoc reached: 80.0% > 80%
[site  ] DEBUG 2026/06/14 13:42:14 solar forecast: produced 16.936kWh, forecasted 12.262kWh, scale 1.381

Version

v0.309.0

System

linux/amd64, CEST +02:00

sandervandijen avatar Jun 14 '26 11:06 sandervandijen

Maybe. Needs documentation and reference about proper registers.

premultiply avatar Jun 14 '26 12:06 premultiply

https://pdf.tritec.info/pdf/produkte/Sigenergy_Modbus_Protocol_20240409_EN.pdf

eikewink avatar Jun 24 '26 12:06 eikewink

Please note that on HomeAssistant the grid meters do show up correctly, so i guess EVCC is looking at the incorrect parameters. Might be that a checkbox must be added to verify if a user has a gateway or not. This changes where the GRID statistics should be read out from :)

sandervandijen avatar Jun 24 '26 13:06 sandervandijen

Still present in v0.317.1: same setup (SigenStor + Gateway Home, grid meter via template: sigenergy, unit ID 1), single phase, Australia.

The grid meter's currents follow inverter/PV output, not grid import. 18 Oct, 09:15–09:25: grid power (30005) stayed ~0 W while the circuit current rose from ~9 A to 16.5 A and 18.8 A in step with PV (~5 kW). The circuit validation dialog shows the same: Power −28 W, Current 8.1 A.

Impact: at night, with the battery held (discharge lock during planned charging), the reported current stays near 0 A while real import was ~12 kW (~50 A on a 50 A main). A static circuit with maxCurrent: 50 never curtailed the charger. The workaround is maxPower instead of maxCurrent.

#31182 already addressed this (gateway grid-sensor registers on ID 247: per-phase power 30052/54/56, energy 30216/30220) but was closed unmerged. Could this be reopened and the template fixed? I'm happy to test a nightly.

alexisuk24 avatar Oct 18 '26 00:10 alexisuk24