evcc
evcc copied to clipboard
Enphase IQ: battery does not report charge and discharge watt values
Describe the bug
For a battery connected via enphase template inverter, the soc values are reported but charge and discharge watt are always 0
Steps to reproduce
- deploy config
- start evcc
- check logs for 0 values ...
Configuration details
---
network:
schema: "http"
host: "0.0.0.0"
port: 7070
interval: "2s"
sponsortoken: "..."
log: "trace"
meters:
- name: "Gattringer"
type: "custom"
power:
source: "mqtt"
topic: "wa-pi/grid"
currents:
- source: "mqtt"
topic: "wa-pi/grid/p1"
- source: "mqtt"
topic: "wa-pi/grid/p2"
- source: "mqtt"
topic: "wa-pi/grid/p3"
- name: "Batterie"
type: "template"
template: "enphase"
usage: "battery"
host: "10.0.0.98"
token: "..."
- name: "PV"
type: "template"
template: "enphase"
usage: "pv"
host: "10.0.0.98"
token: "..."
chargers:
- name: "Go-E-Simulator"
type: "template"
template: "go-e-v3"
host: "localhost:8091"
site:
title: "Gattringer"
meters:
grid: "Gattringer"
pv:
- "PV"
battery:
- "Batterie"
residualPower: 100
loadpoints:
- title: "Go-E-Simulator"
charger: "Go-E-Simulator"
phases: 0
mqtt:
broker: "127.0.0.1"
topic: "evcc"
user: "wm-DwS8L5ZoQQhx"
password: "..."
Log details
Mar 19 16:09:40 iWattControllerV3 evcc[32534]: [http ] TRACE 2024/03/19 16:09:40 GET https://10.0.0.98/production.json
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: [mqtt ] TRACE 2024/03/19 16:09:41 recv wa-pi/grid: '-173.79004'
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: [mqtt ] TRACE 2024/03/19 16:09:41 recv wa-pi/grid/p1: '1.7969993'
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: [mqtt ] TRACE 2024/03/19 16:09:41 recv wa-pi/grid/p2: '-1.5058553'
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: [mqtt ] TRACE 2024/03/19 16:09:41 recv wa-pi/grid/p3: '-1.0369297'
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: [http ] TRACE 2024/03/19 16:09:41 {"production":[{"type":"inverters","activeCount":24,"readingTime":1710860850,"wNow":1080,"whLifetime":227636},{"type":"eim","activeCount":1,"measurementType":"production","readingTime":1710860972,"wNow":1036.66,"whLifetime":222523.914,"varhLeadLifetime":250.512,"varhLagLifetime":63198.996,"vahLifetime":278892.95,"rmsCurrent":5.18,"rmsVoltage":696.71,"reactPwr":404.809,"apprntPwr":1201.751,"pwrFactor":0.86,"whToday":16760.914,"whLastSevenDays":195634.914,"vahToday":20360.95,"varhLeadToday":4.512,"varhLagToday":5784.996}],"consumption":[{"type":"eim","activeCount":1,"measurementType":"total-consumption","readingTime":1710860972,"wNow":974.325,"whLifetime":293912.215,"varhLeadLifetime":226443.858,"varhLagLifetime":-62113.01,"vahLifetime":388805.287,"rmsCurrent":3.343,"rmsVoltage":696.839,"reactPwr":-621.117,"apprntPwr":775.941,"pwrFactor":1.0,"whToday":27569.215,"whLastSevenDays":79.215,"vahToday":33187.287,"varhLeadToday":20264.858,"varhLagToday":0.0},{"type":"eim","activeCount":1,"measurementType":"net-consumption","readingTime":1710860972,"wNow":-62.335,"whLifetime":69789.744,"varhLeadLifetime":226694.37,"varhLagLifetime":1085.986,"vahLifetime":388805.287,"rmsCurrent":-1.837,"rmsVoltage":696.839,"reactPwr":-1025.926,"apprntPwr":-427.144,"pwrFactor":-1.0,"whToday":0,"whLastSevenDays":0,"vahToday":0,"varhLeadToday":0,"varhLagToday":0}],"storage":[{"type":"acb","activeCount":0,"readingTime":0,"wNow":0,"whNow":0,"state":"idle"}]}
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: [http ] TRACE 2024/03/19 16:09:41 GET http://10.0.0.98/ivp/ensemble/inventory
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: [http ] TRACE 2024/03/19 16:09:41 <html>
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: <head><title>301 Moved Permanently</title></head>
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: <body>
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: <center><h1>301 Moved Permanently</h1></center>
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: <hr><center>openresty/1.17.8.1</center>
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: </body>
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: </html>
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: [http ] TRACE 2024/03/19 16:09:41 GET https://10.0.0.98/ivp/ensemble/inventory
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: [http ] TRACE 2024/03/19 16:09:41 [
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: {
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "type": "ENCHARGE",
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "devices": [
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: {
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "part_num": "830-01760-r37",
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "installed": 1710617793,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "serial_num": "122245100740",
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "device_status": [
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "envoy.global.ok",
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "prop.done"
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: ],
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "last_rpt_date": 1710860731,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "admin_state": 6,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "admin_state_str": "ENCHG_STATE_READY",
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "created_date": 1710617793,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "img_load_date": 1710617793,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "img_pnum_running": "2.6.5973_rel/22.11",
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "zigbee_dongle_fw_version": "100F",
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "bmu_fw_version": "2.1.34",
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "operating": true,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "communicating": true,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "sleep_enabled": false,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "percentFull": 31,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "temperature": 19,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "maxCellTemp": 20,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "comm_level_sub_ghz": 5,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "comm_level_2_4_ghz": 5,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "led_status": 13,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "dc_switch_off": false,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "encharge_rev": 2,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "encharge_capacity": 3500
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: },
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: {
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "part_num": "830-01760-r37",
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "installed": 1710733238,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "serial_num": "122245100753",
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "device_status": [
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "envoy.global.ok",
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "prop.done"
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: ],
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "last_rpt_date": 1710860876,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "admin_state": 6,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "admin_state_str": "ENCHG_STATE_READY",
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "created_date": 1710733238,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "img_load_date": 1710733238,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "img_pnum_running": "2.6.5973_rel/22.11",
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "zigbee_dongle_fw_version": "100F",
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "bmu_fw_version": "2.1.34",
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "operating": true,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "communicating": true,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "sleep_enabled": false,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "percentFull": 31,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "temperature": 19,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "maxCellTemp": 20,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "comm_level_sub_ghz": 5,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "comm_level_2_4_ghz": 5,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "led_status": 13,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "dc_switch_off": false,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "encharge_rev": 2,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "encharge_capacity": 3500
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: },
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: {
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "part_num": "830-01760-r37",
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "installed": 1710617798,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "serial_num": "122245100810",
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "device_status": [
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "envoy.global.ok",
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "prop.done"
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: ],
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "last_rpt_date": 1710860953,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "admin_state": 6,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "admin_state_str": "ENCHG_STATE_READY",
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "created_date": 1710617798,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "img_load_date": 1710617798,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "img_pnum_running": "2.6.5973_rel/22.11",
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "zigbee_dongle_fw_version": "100F",
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "bmu_fw_version": "2.1.34",
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "operating": true,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "communicating": true,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "sleep_enabled": false,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "percentFull": 33,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "temperature": 19,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "maxCellTemp": 20,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "comm_level_sub_ghz": 5,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "comm_level_2_4_ghz": 5,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "led_status": 13,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "dc_switch_off": false,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "encharge_rev": 2,
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: "encharge_capacity": 3500
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: }
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: ]
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: }
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: ]
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: [site ] DEBUG 2024/03/19 16:09:41 battery soc: 32%
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: [site ] DEBUG 2024/03/19 16:09:41 battery power: 0W
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: [cache ] TRACE 2024/03/19 16:09:41 batteryCapacity: 0
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: [site ] DEBUG 2024/03/19 16:09:41 grid meter: -174W
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: [site ] DEBUG 2024/03/19 16:09:41 grid currents: [1.8 -1.51 -1.04]A
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: [site ] DEBUG 2024/03/19 16:09:41 site power: -74W
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: [cache ] TRACE 2024/03/19 16:09:41 batterySoc: 31.666666666666668
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: [cache ] TRACE 2024/03/19 16:09:41 batteryPower: 0
Mar 19 16:09:41 iWattControllerV3 evcc[32534]: [cache ] TRACE 2024/03/19 16:09:41 batteryEnergy: 0
What type of operating system are you running?
Linux
Version
evcc version 0.124.10
Siehe:
https://github.com/evcc-io/evcc/discussions/12103
Danke Tobias, das ist ja schade. Wärst Du so nett und würdest im Template einen Hinweis für die IQ Battery ergänzen? Gerne mit Verlinkung auf Dein Dokument?
Danke auch von meiner Seite. Was haltet ihr davon das Template anzupassen und das Polling direkt in EVCC einzubauen?
Das wäre dann https://github.com/evcc-io/evcc/pull/13066
@premultiply was hat das Polling beim battery mode mit den fehlenden Leistungen zu tun? Im Zweifel müsste das jemand mal ausprobieren.
Überhaupt nix. Man muss aber hier wohl regelmäßig den POST-Request absetzen um dauerhaft Daten zu erhalten.
Dann wird das so nicht funktionieren weil BatteryMode im Zweifel nie aufgerufen wird.
Ja, stimmt. Schade. Hast du einen alternativen Vorschlag?
Wie wärs denn (ungetestet) mit:
power:
add:
- watchdog
- http
muss vielleicht nochwas für getan werden, aber das könnte plausibel sein?
@premultiply willst Du die Variante noch probieren?
Eine weitere Option wäre, ein generelles heartbeat
Interface einzuführen, das custom
Geräte implementieren können. Dann wäre das unabhängig von einer einzelnen Funktion.
Dritte Variante: statt heartbeat
ein setup
Interface. Damit wäre auch klar, dass setup
verschiedene Aufgaben übernehmen könnte und im setup
drin dann- wie in Deinem Prototyp auch- ein watchdog
Plugin stecken müsste. Bei heartbeat
wäre nicht so ganz klar, wohin die Watchdoglogik gehört.
Was meinst Du? Gäbe es weitere Anwendungsfälle für setup
?
Bist du sicher dass das funktionieren sollte?
power:
add:
- watchdog
- http
watchdog
ist doch zum schreiben und add
würde einen Rückgabewert erwarten, oder?
setup
klingt für mich erstmal passender, könnte aber auch mit einem reinen Heartbeat-Interface gut leben.
Mit setup
könnte man prinzipiell auch gewisse Grundeinstellungen einmalig umstellen die für die weitere Funktion erforderlich sind. Das wäre z. B. dieser Remote-Modus bei SolarEdge. Ist aber wirklich nicht lebensnotwendig.
Magst Du es mal auf der Basis von https://github.com/evcc-io/evcc/pull/13129 probieren? Einfach auschecken und nochmal branchen.