Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netzladen mit Sonnenbatterie funktioniert nicht #15926

Closed
mabasger opened this issue Sep 6, 2024 · 4 comments · Fixed by #15956
Closed

Netzladen mit Sonnenbatterie funktioniert nicht #15926

mabasger opened this issue Sep 6, 2024 · 4 comments · Fixed by #15956
Labels
devices Specific device support enhancement New feature or request

Comments

@mabasger
Copy link

mabasger commented Sep 6, 2024

Describe the bug

Netzladen ist konfiguriert. Das Event tritt ein. Es ist in UI und Logs ersichtlich, dass EVCC etwas versucht. Die Batterie reagiert jedoch nicht, es findet kein Laden statt.

Steps to reproduce

  1. Netzladen ist konfiguriert
  2. Preisgrenze tritt ein
  3. UI zeigt "Batterie laden günstige Netzenergie"
    ----> Logik durch EVCC hat offensichtlich gegriffen
  4. "set batterie mode charge" in logs ersichtlich
  5. Sonnenbatterie arbeitet aber völlig normal weiter

Configuration details

meters:
- type: template
  template: sonnenbatterie 
  usage: grid  
  host: 192.168.1.80  
  port: 8080  
  name: grid1
- type: template
  template: sonnenbatterie 
  usage: pv  
  host: 192.168.1.80  
  port: 8080  
  name: pv2
- type: template
  template: sonnenbatterie 
  usage: battery  
  host: 192.168.1.80  
  port: 8080  
  name: battery3
  token: ed8966d3-fd2c-467e-b529-undnocheinpaarzahlen
  capacity: 6

Log details

Sep 06 16:11:16 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:11:16 ----
Sep 06 16:11:16 raspberrypi evcc[20471]: [lp-1  ] DEBUG 2024/09/06 16:11:16 charge power: 0W
Sep 06 16:11:16 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:11:16 set battery mode: charge
Sep 06 16:11:16 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:11:16 pv power: 1968W
Sep 06 16:11:16 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:11:16 battery soc: 66%
Sep 06 16:11:16 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:11:16 battery power: -1569W
Sep 06 16:11:16 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:11:16 grid meter: -62W
Sep 06 16:11:16 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:11:16 battery has priority at soc 66% (< 80%)
Sep 06 16:11:16 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:11:16 site power: -62W
Sep 06 16:11:16 raspberrypi evcc[20471]: [lp-1  ] DEBUG 2024/09/06 16:11:16 charger status: A
Sep 06 16:11:46 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:11:46 ----
Sep 06 16:11:46 raspberrypi evcc[20471]: [lp-1  ] DEBUG 2024/09/06 16:11:46 charge power: 0W
Sep 06 16:11:46 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:11:46 pv power: 2073W
Sep 06 16:11:46 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:11:46 battery soc: 66%
Sep 06 16:11:46 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:11:46 battery power: -1668W
Sep 06 16:11:46 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:11:46 grid meter: 33W
Sep 06 16:11:46 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:11:46 battery has priority at soc 66% (< 80%)
Sep 06 16:11:46 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:11:46 site power: 33W
Sep 06 16:11:46 raspberrypi evcc[20471]: [lp-1  ] DEBUG 2024/09/06 16:11:46 charger status: A
Sep 06 16:11:56 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:11:56 set grid charge limit: 0.1
Sep 06 16:12:16 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:12:16 ----
Sep 06 16:12:16 raspberrypi evcc[20471]: [lp-1  ] DEBUG 2024/09/06 16:12:16 charge power: 0W
Sep 06 16:12:16 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:12:16 set battery mode: normal
Sep 06 16:12:16 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:12:16 pv power: 2149W
Sep 06 16:12:16 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:12:16 battery soc: 67%
Sep 06 16:12:16 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:12:16 battery power: -1686W
Sep 06 16:12:16 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:12:16 grid meter: -71W
Sep 06 16:12:16 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:12:16 battery has priority at soc 67% (< 80%)
Sep 06 16:12:16 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:12:16 site power: -71W
Sep 06 16:12:16 raspberrypi evcc[20471]: [lp-1  ] DEBUG 2024/09/06 16:12:16 charger status: A
Sep 06 16:12:29 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:12:29 set grid charge limit: 0.4
Sep 06 16:12:46 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:12:46 ----
Sep 06 16:12:46 raspberrypi evcc[20471]: [lp-1  ] DEBUG 2024/09/06 16:12:46 charge power: 0W
Sep 06 16:12:46 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:12:46 set battery mode: charge
Sep 06 16:12:46 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:12:46 pv power: 1937W
Sep 06 16:12:46 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:12:46 battery soc: 67%
Sep 06 16:12:46 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:12:46 battery power: -1562W
Sep 06 16:12:46 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:12:46 grid meter: -13W
Sep 06 16:12:46 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:12:46 battery has priority at soc 67% (< 80%)
Sep 06 16:12:46 raspberrypi evcc[20471]: [site  ] DEBUG 2024/09/06 16:12:46 site power: -13W
Sep 06 16:12:46 raspberrypi evcc[20471]: [lp-1  ] DEBUG 2024/09/06 16:12:46 charger status: A

What type of operating system are you running?

Linux

Version

No response

@andig
Copy link
Member

andig commented Sep 6, 2024

Das ist nicht implementiert, siehe #11990

@andig andig closed this as completed Sep 6, 2024
@mabasger
Copy link
Author

mabasger commented Sep 7, 2024

Danke fürs nachgucken! Und unverschämterweise würde ich auch gleich noch mehr anfragen: eine Codeänderung. Copy & paste von 2 Zeilen. Das wäre sehr freundlich :-)

Mir ist unklar, warum Case 3 (Charge) nicht umgesetzt wurde, da das nötige Kommando in case 2 (hold) bereits vorhanden ist. Wahrscheinlich war das "damals" einfach unwichtig. Case 3 müsste den gleichen API-Call (/api/v2/setpoint/charge/) wie Case 2 enthalten. Nur anstelle von /charge/0 müsste /charge/3000 stehen, um eine Ladung mit den 3kW der Sonnenbatterie auszulösen. Siehe Code der Sonnenbatterie.yaml:

  • source: http
    uri: http://{{ .host }}/api/v2/setpoint/charge/0
    insecure: true
    method: POST
    headers:
    - content-type: application/json
    - Auth-Token: {{ .token }}
    - case: 3 # charge
    set:
    source: http
    uri: http://{{ .host }}/api/v2/configurations hier müsste uri: http://{{ .host }}/api/v2/setpoint/charge/3000 stehen
    insecure: true
    method: PUT das zu POST
    headers:
    • content-type: application/json
    • Auth-Token: {{ .token }}
      body: '{"EM_OperatingMode":"2"}' # self consumption

Dokumentation von Sonnen:

Charge/Discharge battery
The discharging power of a storage system can be controlled by setting a setpoint in watts. The corresponding value of the setpoint is kept until the battery receives a new charging or discharging value. If VPP is active, the request will be rejected.
direction (required) string charge\discharge
Setpoint direction: must be "charge" or "discharge".
watts (required) string 
Amount of charge or discharge, in watts. Must be a positive number less than 1.000.000.000 (1000 MW).

Besonderer Return 403 If VPP is enabled for this battery, it's not possible to charge or discharge using this endpoint.

@andig
Copy link
Member

andig commented Sep 7, 2024

Gerne PR /cc @rivengh

@rivengh
Copy link
Contributor

rivengh commented Sep 7, 2024

Gerne PR /cc @rivengh

Alles klar, mache ich gerne.

@andig andig added enhancement New feature or request devices Specific device support labels Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devices Specific device support enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants