evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Nibe S Serie Modbus not working with newer firmware - possible issue found

Open maduuto opened this issue 7 months ago • 5 comments

Describe the bug

As some has been wroten when updating the NIBE S Series EVCC can not longer access and control the nibe. Have not the error anymore. As analysis i exported the modbus registers before and after the update i found following difference: Old: AUX von Modbus MODBUS_HOLDING_REGISTER 2741 1 s16 0 0 0 new AUX von Modbus MODBUS_INPUT_REGISTER 2741 1 s16 0 0 0

Nibe has changed from Holding to input. I dont know how to test it, if someone could help me how to modify my evcc files to test it i will test it tomorrow. Maybe i can check the others registers as well if you would supply me the numbers of registers?

Steps to reproduce

  1. Works before Nibe update
  2. after update not working (didnt saved the modbus error message)
  3. after reverting firmware update worked normally ...

Configuration details

{
  "charger": [
    {"id":18,"name":"db:18","config":{"baudrate":9600,"comset":"8N1","host":"192.168.150.70","id":"4","modbus":"tcpip","port":502,"powercontrol":true,"template":"nibe-s-series","tempsource":"water_mid"},"deviceProduct":"NIBE Nibe S-Series (SG Ready)","type":"template"},
    {"id":1,"name":"db:1","config":{"host":"192.168.150.180","template":"go-e-v3"},"type":"template"}
  ],
  "circuits": "#- name: main # unique name, used as reference, e.g. as parent in other circuits
#  title: Main Circuit # used in the UI
#  maxcurrent: 63 # 63A main circuit breaker (optional)
#  maxPower: 30000 # 30kW (optional)
#  meter: grid # associated meter to monitor the power consumption (optional)
#  parent: # no parent, this is the root circuit
#- name: garage # unique name, used as reference, e.g. to associate loadpoints
#  title: Garage # used in the UI
#  maxcurrent: 24 # allow individual phase use up to 24A
#  maxPower: 11000 # limit total power to 11kW
#  meter: garage # dedicated meter for the garage
#  parent: main # 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
- name: main # eindeutiger Name, wird als Referenz für andere Circuits verwendet
  title: Hauptstromkreis # Anzeige in der UI (später)
  maxCurrent: 35  # 63A (optional)
  maxPower: 30000 # 30kW (optional)
  meter: db:4 # optional",
  "experimental": true,
  "hems": "## external control via binary in put

#type: relay
#maxPower: 4200 # limit loadpoints to 4.2 kW total
#limit: # limit signal, plugin
#  source: template
#  template: homematic
#  host: 192.168.150.220
#  port: 2010
#  device: '00161BE99EA94E'
#  switchchannel: 18
#topic: hems/limit/status # 0/false = normal, 1/true = limit active

## external control via EEBus protocol

#type: eebus # general EEBus setup (cert gen) required
#ski: *****

## SMA Sunny Home Manager 2.0, will change soon https://github.com/evcc-io/evcc/pull/23190

#type: sma
#allowcontrol: false
#vendorid: AAAAAAAA
#deviceid: BBBBBBBB",
  "influx": {"url":"","database":"","token":"","org":"","user":"","password":"","insecure":false},
  "interval": 20,
  "loadpoints": [
    {"id":2,"name":"db:2","batteryBoostLimit":30,"charger":"db:1","circuit":"main","defaultMode":"off","limitEnergy":0,"limitSoc":0,"maxCurrent":16,"minCurrent":6,"phasesConfigured":0,"planEnergy":0,"planPrecondition":0,"planStrategy":{"continuous":false,"precondition":0},"planTime":"0001-01-01T00:00:00Z","priority":5,"smartCostLimit":null,"smartFeedInPriorityLimit":null,"soc":{"poll":{"mode":"connected","interval":600000000000},"estimate":true},"thresholds":{"enable":{"delay":60000000000,"threshold":0},"disable":{"delay":180000000000,"threshold":0}},"title":"Carport"},
    {"id":19,"name":"db:19","batteryBoostLimit":100,"charger":"db:18","circuit":"main","defaultMode":"pv","limitEnergy":0,"limitSoc":0,"maxCurrent":39,"minCurrent":3,"phasesConfigured":1,"planEnergy":0,"planPrecondition":0,"planStrategy":{"continuous":false,"precondition":0},"planTime":"0001-01-01T00:00:00Z","priority":2,"smartCostLimit":null,"smartFeedInPriorityLimit":null,"soc":{"poll":{"mode":"charging","interval":3600000000000},"estimate":true},"thresholds":{"enable":{"delay":300000000000,"threshold":-1500},"disable":{"delay":300000000000,"threshold":100}},"title":"Nibe SG-Ready"}
  ],
  "meter": [
    {"id":5,"name":"db:5","config":{"baudrate":9600,"capacity":6.7,"comset":"8N1","host":"192.168.150.52","id":1,"maxacpower":4600,"maxdischargepower":"5000","modbus":"tcpip","port":"1502","template":"solaredge-hybrid","usage":"pv","watchdog":"60s"},"deviceTitle":"solaredge-hybrid","type":"template"},
    {"id":7,"name":"db:7","config":{"baudrate":9600,"comset":"8N1","host":"192.168.150.181","id":1,"modbus":"tcpip","port":502,"template":"huawei-dongle","timeout":15000000000,"usage":"pv"},"deviceTitle":"huawei","type":"template"},
    {"id":4,"name":"db:4","config":{"baudrate":9600,"capacity":6.7,"comset":"8N1","host":"192.168.150.52","id":"1","maxacpower":4350,"maxdischargepower":"5000","modbus":"tcpip","port":"1502","template":"solaredge-hybrid","usage":"grid","watchdog":"60s"},"type":"template"},
    {"id":6,"name":"db:6","config":{"baudrate":9600,"capacity":6.7,"comset":"8N1","host":"192.168.150.52","id":"1","maxacpower":4350,"maxchargepower":3500,"maxdischargepower":3500,"maxsoc":100,"minsoc":10,"modbus":"tcpip","port":"1502","template":"solaredge-hybrid","usage":"battery","watchdog":"60s"},"deviceTitle":"Solaredge","type":"template"}
  ],
  "modbusproxy": [{"port":5021,"readonly":"false","settings":{"uri":"192.168.150.52:1502","rtu":false}},{"port":5022,"readonly":"false","settings":{"uri":"192.168.150.181:502","rtu":false}}],
  "mqtt": {"broker":"wss://mqtt.evcc-crowdscience.de","user":"","password":"","clientID":"","insecure":false,"caCert":"","clientCert":"","clientKey":"","topic":"evcc/019c8a76-9ec5-7000-a064-9977ac92ea83"},
  "shm": {"vendorId":"","deviceId":"","deviceSerial":""},
  "site": {"title":"Wallbox","grid":"db:4","pv":["db:5","db:7"],"battery":["db:6"],"aux":null,"ext":null},
  "tariff": [
    {"id":25,"name":"db:25","config":{"price":0.2506,"template":"fixed-zones","zones":[{"days":"","hours":"00:00-05:00","months":"","price":0.08439999999999999},{"days":"","hours":"16:30-20:30","months":"","price":0.2748},{"days":"","hours":"23:00-00:00","months":"","price":0.2218}]},"deviceProduct":"Zeitabhängiger Tarif","type":"template"},
    {"id":21,"name":"db:21","config":{"price":0.08199999999999999,"template":"fixed"},"deviceProduct":"Fester Preis","type":"template"},
    {"id":23,"name":"db:23","config":{"ac":4600,"alphatemp":-0.0034,"az":5,"de":"0","dec":45,"dm":"0","efficiency":"100","interval":"1h","kwp":5.525,"lat":"***","lon":"***","rossmodel":"0.0342","template":"open-meteo"},"deviceProduct":"Open-Meteo","deviceTitle":"solaredge Anlage","type":"template"},
    {"id":24,"name":"db:24","config":{"ac":6600,"alphatemp":-0.0026,"az":5,"de":"0","dec":45,"dm":"0","efficiency":"100","interval":"1h","kwp":7.36,"lat":"***","lon":"***","rossmodel":"0.0342","template":"open-meteo"},"deviceProduct":"Open-Meteo","deviceTitle":"Huawei Anlage","type":"template"},
    {"id":22,"name":"db:22","config":{"template":"grünstromindex","zip":"***"},"deviceProduct":"Grünstromindex","type":"template"}
  ],
  "tariffRefs": {"grid":"db:25","feedIn":"db:21","co2":"db:22","planner":"","solar":["db:23","db:24"]},
  "vehicle": [
    {"id":3,"name":"db:3","config":{"cache":"15m","capacity":77,"icon":"car","maxCurrent":16,"maxPower":10500,"minCurrent":6,"mode":"pv","password":"***","phases":"","priority":5,"streaming":true,"template":"vw","timeout":"10s","title":"ID7","user":"***"},"type":"template"}
  ]
}

Log details

not available actually.

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

Linux

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

303.1

maduuto avatar Apr 07 '26 17:04 maduuto

The register has to be written if powercontrol == true. Input registers cannot be written. Ask Nibe what they think they are doing (and how to control power envelope) and set powercontrol == false for time being.

andig avatar Apr 07 '26 17:04 andig

Hallo, mit der Version 4.10.5 von Nibe ist das Problem nun behoben worden. Im übrigen bietet das Nibe jetzt auch über eine REST API an, ich weiß nicht, was für EVCC vorteilhafter ist ob modbus oder REST Api.

maduuto avatar Apr 20 '26 15:04 maduuto

Großartig, danke für die Info!

andig avatar Apr 20 '26 15:04 andig

Großartig, danke für die Info!

Kommando zurück. Leistungssteigerung geht zwar, aber das SGReady Signal scheint nicht verarbeitet zu werden... Versuche es rauszufinden. Aber im Trace werd ich von den Zahlen die von Modbus gesendet und empfangen werden nicht schlau

maduuto avatar Apr 21 '26 08:04 maduuto

Siehe https://github.com/evcc-io/evcc/pull/29293

andig avatar Apr 21 '26 08:04 andig