Closed leonidnf closed 1 day ago
Evcc cannot read home battery data while using "sungrow-hybrid" template.
Issue unclear.
Hi @andig , thank you for your fast response!
The first screenshot shows that the Battery SOC is 73% (which is correct), but the battery discharging is 0.0 w (which is not correct). In the second screenshot, it can be seen that the battery discharging 1.05 kW. In the EVCC logs can be seen that
[site ] DEBUG 2024/10/17 20:17:53 battery power: 0W
I assume that the EVCC sungrow-hybrid template can not properly calculate the charging/discharging power of the battery. Please let me know if additional info is needed.
Was sagt
evcc meter --log trace,db:error
Welche Werte stimmen nicht?
Hi @andig ,
I'm running the EVCC as a HomeAssistant Add-on and I can not run evcc meter
command inside of the docker container (it can not find the evcc.yaml config file there).
But from the Log dashboard, I can see that the following value is not correct:
DEBUG 2024/10/18 14:50:21 battery power: 0W
At the moment battery power should be around 1000W.
I'm using EVCC as a Modbus proxy and an entire dashboard is based on the values provided by this proxy. On that dashboard I can see the battery power
Lets see evcc meter
please.
@andig
I have installed the Evcc on standalone linux server just for debugging and was able to pull the evcc meter logs
battery3
--------
[battery3] TRACE 2024/10/18 15:15:24 modbus: send 00 0b 00 00 00 06 01 04 32 dd 00 01
[battery3] TRACE 2024/10/18 15:15:24 modbus: recv 00 0b 00 00 00 05 01 04 02 00 91
[battery3] TRACE 2024/10/18 15:15:24 modbus: send 00 0c 00 00 00 06 01 04 32 c8 00 01
[battery3] TRACE 2024/10/18 15:15:24 modbus: recv 00 0c 00 00 00 05 01 04 02 00 00
[battery3] TRACE 2024/10/18 15:15:24 modbus: send 00 0d 00 00 00 06 01 04 32 c8 00 01
[battery3] TRACE 2024/10/18 15:15:24 modbus: recv 00 0d 00 00 00 05 01 04 02 00 00
[battery3] TRACE 2024/10/18 15:15:24 modbus: send 00 0e 00 00 00 06 01 04 32 e2 00 02
[battery3] TRACE 2024/10/18 15:15:24 modbus: recv 00 0e 00 00 00 07 01 04 04 01 6c 00 00
[battery3] TRACE 2024/10/18 15:15:24 modbus: send 00 0f 00 00 00 06 01 04 32 de 00 01
[battery3] TRACE 2024/10/18 15:15:24 modbus: recv 00 0f 00 00 00 05 01 04 02 00 f6
Power: 0W
Energy: 36.4kWh
Soc: 25%
Controllable: true
Battery 3 power is shown as 0
, but it should be 129W
Battery power is the odd one:
power:
source: calc
mul:
- source: modbus
{{- include "modbus" . | indent 4 }}
register:
address: 13021 # Battery power 32DD -> 00 91
type: input
decode: int16
- source: calc
add:
- source: modbus
{{- include "modbus" . | indent 6 }}
register:
type: input
address: 13000 # Battery running state 32C8 -> 00 00
decode: bool16
bitmask: 2 # Charging
scale: -1
- source: modbus
{{- include "modbus" . | indent 6 }}
register:
type: input
address: 13000 # Battery running state 32C8 -> 00 00
decode: bool16
bitmask: 4 # Discharging
According to the bitmask your battery is neither charging nor discharging. Whatever that means.
That doesn't tell me anything. Check the docs for Register 13000 Running State. Afaik our implementation is correct (based on https://forum.iobroker.net/topic/50564/bedeutung-codes-running-states-sungrow-wechselrichter). If new docs say differently we'd need them to double-check.
Closing until new documentation available.
@andig Thank you! Will check the docs and maybe some other open source materials. I see that evcc users have a similar issue: https://github.com/evcc-io/evcc/issues/15915
Describe the bug
Evcc cannot read home battery data while using "sungrow-hybrid" template. The inverter SH15T, communication device Winet-S2, and the Battery SBR128 are updated to the latest firmware.
The inverter is connected via the LAN port on the Winet-S2 dongle.
Still, the invertor data is shown on another dashboard and there the Battery data is shown:
Steps to reproduce
Restart the Evcc
Configuration details
Log details
What type of operating system are you running?
HomeAssistant Add-on
Nightly build
Version
v0.130.13