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

Kein Netzaden mit SMA template "sma-hybrid" und WR SMA Sunny Tripower 8.0 Smart Energy mit BYD HVS #17115

Open
1 task done
birkenhost opened this issue Nov 6, 2024 · 10 comments · May be fixed by #17393
Open
1 task done
Assignees
Labels
bug Something isn't working devices Specific device support

Comments

@birkenhost
Copy link

birkenhost commented Nov 6, 2024

Describe the bug

Verwende das template "sma-hybrid".
Bei erreichen der Preisschwelle wird nur die Batterie in Standby versetzt. Sollte sie gerade entladen werden wird sie "gesperrt".

Achtung: wenn ich das "falsche" template "sma-sbs-15-25-modbus" verwende, dann wird die Batterie geladen wenn die Preisschwelle unterschritten wird. Leider ist dann die maximale Ladeleistung nur 2,7kW

Der Code der SMA templates macht einen sehr unterschiedlichen Eindruck vom Entwicklungsstand. Aber ihr habt ja auch geschrieben, dass das Feature aktuell experimentell ist.

Vielen Dank für eure Mühe!

Steps to reproduce

  1. Konfiguration wie angegeben
  2. manuelles einstellen der zur Unterschreitung der Preisschwelle im UI
  3. Batterie geht in Standby, mehr nicht (sollte sie entladen worden sein, geht sie hier auch in Standby)

Anlage:
SMA Sunny Tripower 8.0 Smart Energy
BYD HVS 10.2
SHM 2

Alles mit aktuellen Updates. Alle Komponenten stehen auf AutoUpdate: ja

Configuration details

network:
  # schema is the HTTP schema
  # setting to `https` does not enable https, it only changes the way URLs are generated
  schema: http
  # host is the hostname or IP address
  # if the host name contains a `.local` suffix, the name will be announced on MDNS
  # docker: MDNS announcements don't work. host must be set to the docker host's name.
  host: homeassistant.local
  # port is the listening port for UI and api
  # evcc will listen on all available interfaces
  port: 7070

interval: 10s # control cycle interval

# sponsor token enables optional features (request at https://cloud.evcc.io)
#sponsortoken: [Sponsortoken eintragen]

# telemetry enables aggregated statistics
#
# Telemetry allows collecting usage data (grid and green energy, charge power).
# Data is aggregated, no individual charging sessions are tracked. The collected,
# anonymous data can be retrieved using https://api.evcc.io.
#
# See https://github.com/evcc-io/evcc/pull/4343 or details.
#
# For time being, this is only available to sponsors, hence data is associated with
# the sponsor token's identity.
#
# telemetry: true

# log settings
log: info
levels:
  site: debug
  lp-1: debug
  lp-2: debug

# meter definitions
# name can be freely chosen and is used as reference when assigning meters to site and loadpoints
# for documentation see https://docs.evcc.io/docs/devices/meters

meters:
  - name: SMA_PV
    type: template
    template: sma-hybrid #sma-hybrid
    usage: pv
    
    # Modbus TCP
    modbus: tcpip
    id: 3
    host: 192.168.178.137 # Hostname
    port: 502 # Port
    watchdog: 30s # optional
    maxacpower: 7 # Maximale AC Leistung des Hybrid-Wechselrichters (optional)
    
  - name: BYD_battery
    type: template
    template: sma-hybrid
    usage: battery
    capacity: 10
    chargepower: 70000
    
    # Modbus TCP
    modbus: tcpip
    id: 3
    host: 192.168.178.137 # Hostname
    port: 502 # Port
    
  - name: SMH_grid
    type: template
    template: sma-home-manager
    usage: grid
    host: 192.168.178.134


# charger definitions
# name can be freely chosen and is used as reference when assigning charger to vehicle
# for documentation see https://docs.evcc.io/docs/devices/chargers

chargers:
  - name: my_charger
    type: template
    template: shelly
    host: 192.168.178.163 # IP-Adresse oder Hostname
    user: # Benutzerkonto (bspw. E-Mail Adresse, User Id, etc.) (optional)
    password: # Passwort des Benutzerkontos (bei führenden Nullen bitte in einfache Hochkommata setzen) (optional)
    channel: 1 # optional
    standbypower: 15 # Leistung oberhalb des angegebenen Wertes wird als Ladeleistung gewertet (optional)

# vehicle definitions
# name can be freely chosen and is used as reference when assigning vehicle to loadpoint
# for documentation see https://docs.evcc.io/docs/devices/vehicles
vehicles:
- type: template
  template: offline 
  title: Solar-Ladestation  
  icon: plug  
  phases: 1  
  mode: pv  
  name: my_car

# site describes the EVU connection, PV and home battery
site:
  title: Home # display name for UI
  meters:
    grid: SMH_grid # grid meter
    pv: 
      - SMA_PV # list of pv inverters/ meters
    battery:
      - BYD_battery
      
  residualPower: 0

# loadpoint describes the charger, charge meter and connected vehicle
loadpoints:
- title: Wohnung
  charger: my_charger
  vehicle: my_car
  mode: off
  mincurrent: 9 # 9A*220V=1980W minimum charge current (default 6A)
  maxcurrent: 10 # 10A*220V=2200W maximum charge current (default 16A)
  phases: 1 # ev phases (default 3)
  #enable:
  #  threshold: -25
  #  delay: 3m

# tariffs are the fixed or variable tariffs
# cheap (tibber/awattar) can be used to define a tariff rate considered cheap enough for charging
tariffs:
  currency: EUR # three letter ISO-4217 currency code (default EUR)
  grid:
    # either static grid price
    #type: fixed
    #price: 0.294 # EUR/kWh

    # # or variable via tibber
    type: tibber
    token: "aaaaaaaaaaaaaaaaaaaaaaa" # my api key removed for bug transmission
    
    # # or variable via awattar
    # type: awattar
    # cheap: 0.2 # EUR/kWh
    # region: de # optional, choose at for Austria
  feedin:
    # rate for feeding excess (pv) energy to the grid
    type: fixed
    price: 0.08 # EUR/kWh
    

Log details

[site  ] DEBUG 2024/11/17 12:26:02 ----
[lp-1  ] DEBUG 2024/11/17 12:26:02 charge power: 0W
[site  ] DEBUG 2024/11/17 12:26:02 grid power: 31W
[site  ] DEBUG 2024/11/17 12:26:02 grid powers: [61 -23 -7]W
[site  ] DEBUG 2024/11/17 12:26:02 grid currents: [0.505 -0.27 -0.334]A
[SMA_PV] TRACE 2024/11/17 12:26:02 modbus: send 00 e8 00 00 00 06 03 03 78 35 00 02
[SMA_PV] TRACE 2024/11/17 12:26:02 modbus: recv 00 e8 00 00 00 07 03 03 04 00 00 00 68
[SMA_PV] TRACE 2024/11/17 12:26:02 modbus: send 00 e9 00 00 00 06 03 03 78 f1 00 02
[SMA_PV] TRACE 2024/11/17 12:26:02 modbus: recv 00 e9 00 00 00 07 03 03 04 00 00 00 2e
[BYD_battery] TRACE 2024/11/17 12:26:02 modbus: send 00 ea 00 00 00 06 03 04 7a a3 00 02
[BYD_battery] TRACE 2024/11/17 12:26:02 modbus: recv 00 ea 00 00 00 07 03 04 04 00 00 00 00
[BYD_battery] TRACE 2024/11/17 12:26:02 modbus: send 00 eb 00 00 00 06 03 04 7a a1 00 02
[BYD_battery] TRACE 2024/11/17 12:26:02 modbus: recv 00 eb 00 00 00 07 03 04 04 00 00 00 00
[SMA_PV] TRACE 2024/11/17 12:26:02 modbus: send 00 ec 00 00 00 06 03 03 77 31 00 04
[SMA_PV] TRACE 2024/11/17 12:26:02 modbus: recv 00 ec 00 00 00 0b 03 03 08 00 00 00 00 00 66 8a 75
[site  ] DEBUG 2024/11/17 12:26:02 pv power: 150W
[BYD_battery] TRACE 2024/11/17 12:26:02 modbus: send 00 ed 00 00 00 06 03 03 7a a9 00 04
[BYD_battery] TRACE 2024/11/17 12:26:02 modbus: recv 00 ed 00 00 00 0b 03 03 08 00 00 00 00 00 14 83 6f
[BYD_battery] TRACE 2024/11/17 12:26:02 modbus: send 00 ee 00 00 00 06 03 03 78 7d 00 02
[BYD_battery] TRACE 2024/11/17 12:26:02 modbus: recv 00 ee 00 00 00 07 03 03 04 00 00 00 09
[site  ] DEBUG 2024/11/17 12:26:02 battery soc: 9%
[site  ] DEBUG 2024/11/17 12:26:02 battery power: 0W
[site  ] DEBUG 2024/11/17 12:26:02 site power: 131W
[lp-1  ] DEBUG 2024/11/17 12:26:02 charge total import: 0.000kWh
[lp-1  ] DEBUG 2024/11/17 12:26:02 charger status: B
[lp-1  ] DEBUG 2024/11/17 12:26:02 pv charge current: 0A = 0A + -0.569A (131W @ 1p)
[site  ] DEBUG 2024/11/17 12:26:02 set grid charge limit: 0.3
[site  ] DEBUG 2024/11/17 12:26:12 ----
[lp-1  ] DEBUG 2024/11/17 12:26:12 charge power: 0W
[BYD_battery] TRACE 2024/11/17 12:26:12 modbus: send 00 ef 00 00 00 0b 03 10 9c d5 00 02 04 00 00 00 00
[BYD_battery] TRACE 2024/11/17 12:26:12 modbus: recv 00 ef 00 00 00 06 03 10 9c d5 00 02
[BYD_battery] TRACE 2024/11/17 12:26:12 modbus: send 00 f0 00 00 00 0b 03 10 9c d7 00 02 04 00 00 03 22
[BYD_battery] TRACE 2024/11/17 12:26:12 modbus: recv 00 f0 00 00 00 06 03 10 9c d7 00 02
[site  ] DEBUG 2024/11/17 12:26:12 set battery mode: charge
[site  ] DEBUG 2024/11/17 12:26:12 grid power: 75W
[site  ] DEBUG 2024/11/17 12:26:12 grid powers: [101 -20 -6]W
[site  ] DEBUG 2024/11/17 12:26:12 grid currents: [0.7 -0.268 -0.33]A
[SMA_PV] TRACE 2024/11/17 12:26:12 modbus: send 00 f1 00 00 00 06 03 03 78 35 00 02
[SMA_PV] TRACE 2024/11/17 12:26:12 modbus: recv 00 f1 00 00 00 07 03 03 04 00 00 00 6a
[SMA_PV] TRACE 2024/11/17 12:26:12 modbus: send 00 f2 00 00 00 06 03 03 78 f1 00 02
[SMA_PV] TRACE 2024/11/17 12:26:12 modbus: recv 00 f2 00 00 00 07 03 03 04 00 00 00 33
[BYD_battery] TRACE 2024/11/17 12:26:12 modbus: send 00 f3 00 00 00 06 03 04 7a a3 00 02
[BYD_battery] TRACE 2024/11/17 12:26:12 modbus: recv 00 f3 00 00 00 07 03 04 04 00 00 00 00
[BYD_battery] TRACE 2024/11/17 12:26:12 modbus: send 00 f4 00 00 00 06 03 04 7a a1 00 02
[BYD_battery] TRACE 2024/11/17 12:26:12 modbus: recv 00 f4 00 00 00 07 03 04 04 00 00 00 00
[SMA_PV] TRACE 2024/11/17 12:26:12 modbus: send 00 f5 00 00 00 06 03 03 77 31 00 04
[SMA_PV] TRACE 2024/11/17 12:26:12 modbus: recv 00 f5 00 00 00 0b 03 03 08 00 00 00 00 00 66 8a 75
[site  ] DEBUG 2024/11/17 12:26:12 pv power: 157W
[BYD_battery] TRACE 2024/11/17 12:26:12 modbus: send 00 f6 00 00 00 06 03 03 7a a9 00 04
[BYD_battery] TRACE 2024/11/17 12:26:12 modbus: recv 00 f6 00 00 00 0b 03 03 08 00 00 00 00 00 14 83 6f
[BYD_battery] TRACE 2024/11/17 12:26:12 modbus: send 00 f7 00 00 00 06 03 03 78 7d 00 02
[BYD_battery] TRACE 2024/11/17 12:26:12 modbus: recv 00 f7 00 00 00 07 03 03 04 00 00 00 09
[site  ] DEBUG 2024/11/17 12:26:12 battery soc: 9%
[site  ] DEBUG 2024/11/17 12:26:12 battery power: 0W
[site  ] DEBUG 2024/11/17 12:26:12 site power: 175W
[lp-1  ] DEBUG 2024/11/17 12:26:12 charge total import: 0.000kWh
[lp-1  ] DEBUG 2024/11/17 12:26:12 charger status: B
[lp-1  ] DEBUG 2024/11/17 12:26:12 pv charge current: 0A = 0A + -0.762A (175W @ 1p)
[site  ] DEBUG 2024/11/17 12:26:22 ----
[lp-1  ] DEBUG 2024/11/17 12:26:22 charge power: 0W
[site  ] DEBUG 2024/11/17 12:26:22 grid power: 30W
[site  ] DEBUG 2024/11/17 12:26:22 grid powers: [63 -23 -10]W
[site  ] DEBUG 2024/11/17 12:26:22 grid currents: [0.501 -0.271 -0.325]A
[SMA_PV] TRACE 2024/11/17 12:26:22 modbus: send 00 f8 00 00 00 06 03 03 78 35 00 02
[SMA_PV] TRACE 2024/11/17 12:26:22 modbus: recv 00 f8 00 00 00 07 03 03 04 00 00 00 63
[SMA_PV] TRACE 2024/11/17 12:26:22 modbus: send 00 f9 00 00 00 06 03 03 78 f1 00 02
[SMA_PV] TRACE 2024/11/17 12:26:22 modbus: recv 00 f9 00 00 00 07 03 03 04 00 00 00 30
[BYD_battery] TRACE 2024/11/17 12:26:22 modbus: send 00 fa 00 00 00 06 03 04 7a a3 00 02
[BYD_battery] TRACE 2024/11/17 12:26:22 modbus: recv 00 fa 00 00 00 07 03 04 04 00 00 00 00
[BYD_battery] TRACE 2024/11/17 12:26:22 modbus: send 00 fb 00 00 00 06 03 04 7a a1 00 02
[site  ] DEBUG 2024/11/17 12:26:22 set grid charge limit: 0.2
[BYD_battery] TRACE 2024/11/17 12:26:22 modbus: recv 00 fb 00 00 00 07 03 04 04 00 00 00 00
[SMA_PV] TRACE 2024/11/17 12:26:22 modbus: send 00 fc 00 00 00 06 03 03 77 31 00 04
[SMA_PV] TRACE 2024/11/17 12:26:22 modbus: recv 00 fc 00 00 00 0b 03 03 08 00 00 00 00 00 66 8a 75
[site  ] DEBUG 2024/11/17 12:26:22 pv power: 147W
[BYD_battery] TRACE 2024/11/17 12:26:22 modbus: send 00 fd 00 00 00 06 03 03 7a a9 00 04
[BYD_battery] TRACE 2024/11/17 12:26:22 modbus: recv 00 fd 00 00 00 0b 03 03 08 00 00 00 00 00 14 83 6f
[BYD_battery] TRACE 2024/11/17 12:26:22 modbus: send 00 fe 00 00 00 06 03 03 78 7d 00 02
[BYD_battery] TRACE 2024/11/17 12:26:22 modbus: recv 00 fe 00 00 00 07 03 03 04 00 00 00 09
[site  ] DEBUG 2024/11/17 12:26:22 battery soc: 9%
[site  ] DEBUG 2024/11/17 12:26:22 battery power: 0W
[site  ] DEBUG 2024/11/17 12:26:22 site power: 130W
[lp-1  ] DEBUG 2024/11/17 12:26:22 charge total import: 0.000kWh
[lp-1  ] DEBUG 2024/11/17 12:26:22 charger status: B
[lp-1  ] DEBUG 2024/11/17 12:26:22 pv charge current: 0A = 0A + -0.564A (130W @ 1p)
[BYD_battery] TRACE 2024/11/17 12:26:27 modbus: send 00 ff 00 00 00 0b 03 10 9c d5 00 02 04 00 00 00 00
[BYD_battery] TRACE 2024/11/17 12:26:27 modbus: recv 00 ff 00 00 00 06 03 10 9c d5 00 02
[BYD_battery] TRACE 2024/11/17 12:26:27 modbus: send 01 00 00 00 00 0b 03 10 9c d7 00 02 04 00 00 03 22
[BYD_battery] TRACE 2024/11/17 12:26:27 modbus: recv 01 00 00 00 00 06 03 10 9c d7 00 02
[site  ] DEBUG 2024/11/17 12:26:32 ----
[lp-1  ] DEBUG 2024/11/17 12:26:32 charge power: 0W
[BYD_battery] TRACE 2024/11/17 12:26:32 modbus: send 01 01 00 00 00 0b 03 10 9c d7 00 02 04 00 00 03 23
[BYD_battery] TRACE 2024/11/17 12:26:32 modbus: recv 01 01 00 00 00 06 03 10 9c d7 00 02
[site  ] DEBUG 2024/11/17 12:26:32 set battery mode: normal
[site  ] DEBUG 2024/11/17 12:26:32 grid power: 30W
[site  ] DEBUG 2024/11/17 12:26:32 grid powers: [63 -23 -10]W
[site  ] DEBUG 2024/11/17 12:26:32 grid currents: [0.499 -0.276 -0.329]A
[SMA_PV] TRACE 2024/11/17 12:26:32 modbus: send 01 02 00 00 00 06 03 03 78 35 00 02
[SMA_PV] TRACE 2024/11/17 12:26:32 modbus: recv 01 02 00 00 00 07 03 03 04 00 00 00 65
[SMA_PV] TRACE 2024/11/17 12:26:32 modbus: send 01 03 00 00 00 06 03 03 78 f1 00 02
[SMA_PV] TRACE 2024/11/17 12:26:32 modbus: recv 01 03 00 00 00 07 03 03 04 00 00 00 33
[BYD_battery] TRACE 2024/11/17 12:26:32 modbus: send 01 04 00 00 00 06 03 04 7a a3 00 02
[BYD_battery] TRACE 2024/11/17 12:26:32 modbus: recv 01 04 00 00 00 07 03 04 04 00 00 00 00
[BYD_battery] TRACE 2024/11/17 12:26:32 modbus: send 01 05 00 00 00 06 03 04 7a a1 00 02
[BYD_battery] TRACE 2024/11/17 12:26:32 modbus: recv 01 05 00 00 00 07 03 04 04 00 00 00 00
[SMA_PV] TRACE 2024/11/17 12:26:32 modbus: send 01 06 00 00 00 06 03 03 77 31 00 04
[SMA_PV] TRACE 2024/11/17 12:26:32 modbus: recv 01 06 00 00 00 0b 03 03 08 00 00 00 00 00 66 8a 76
[site  ] DEBUG 2024/11/17 12:26:32 pv power: 152W
[BYD_battery] TRACE 2024/11/17 12:26:32 modbus: send 01 07 00 00 00 06 03 03 7a a9 00 04
[BYD_battery] TRACE 2024/11/17 12:26:32 modbus: recv 01 07 00 00 00 0b 03 03 08 00 00 00 00 00 14 83 6f
[BYD_battery] TRACE 2024/11/17 12:26:32 modbus: send 01 08 00 00 00 06 03 03 78 7d 00 02
[BYD_battery] TRACE 2024/11/17 12:26:32 modbus: recv 01 08 00 00 00 07 03 03 04 00 00 00 09
[site  ] DEBUG 2024/11/17 12:26:32 battery soc: 9%
[site  ] DEBUG 2024/11/17 12:26:32 battery power: 0W
[site  ] DEBUG 2024/11/17 12:26:32 site power: 130W
[lp-1  ] DEBUG 2024/11/17 12:26:32 charge total import: 0.000kWh
[lp-1  ] DEBUG 2024/11/17 12:26:32 charger status: B
[lp-1  ] DEBUG 2024/11/17 12:26:32 pv charge current: 0A = 0A + -0.563A (130W @ 1p)

What type of operating system are you running?

HomeAssistant Add-on

Nightly build

  • I have verified that the issue is reproducible with the latest nightly build

Version

0.131.4

@andig
Copy link
Member

andig commented Nov 7, 2024

Unfortunately your report is missing a detailed log file. Without log, we don‘t have the information for diagnosing the issue described. See https://docs.evcc.io/docs/faq#wie-kann-ich-ein-logfile-zur-fehleranalyse-erstellen.

An ansonsten: bitte Suchfunktion benutzen, das Thema gabs schon xmal. Falsche SMA FW.

@andig andig closed this as completed Nov 7, 2024
@birkenhost
Copy link
Author

Danke für den Hinweis, werde ich beim nächsten Bug-Report tun. Hier kann ich es gern noch einmal ergänzen.

btw. Firmware ist in allen Komponenten aktuell,
SHM 2 Firmware-Version des Hauptprozessors | 2.15.6.R | 25.09.2024 23:26:54

Werde die Traces für die beiden Templates noch einmal erstellen.

@Tombra1889
Copy link

Habe das selbe Problem. Ein Netzladen via evcc mit dem sma-hybrid-Template funktioniert nicht.

@andig
Copy link
Member

andig commented Nov 10, 2024

"ich auch" nutzt nichts. Lösung siehe #17115 (comment).

@Tombra1889
Copy link

Sowohl auf dem Wechselrichter als auch auf dem SHM befindet sich die aktuelle Firmware. Leider erscheint keinerlei Eintrag im Log (gefiltert auf SMA). Ich hatte den Trace-Modus an und habe dann lediglich Einträge von SHM und einem anderen SMA Wechselrichter gesehen. Vom Hybrid-Wechselrichter gibt es keinen Eintrag.

@birkenhost
Copy link
Author

ich habe mit dem template "sma-hybrid" noch einmal ein Log hinzugefügt, hoffe das hilft. Kann gern weitere Daten liefern

@premultiply
Copy link
Member

[site ] DEBUG 2024/11/17 12:26:32 set battery mode: normal

Tut was es soll. Nichts Gegenteiliges erkennbar.

@birkenhost
Copy link
Author

birkenhost commented Nov 17, 2024

Ich habe hier das unterschreiten und überschreiten der Preisschwelle manuell eingestellt. Wenn der aktuelle Preis unter der Schwelle ist, kommt "set battery mode: charge". Es findet jedoch kein Netzladen statt. UI sieht folgendermaßen aus (UI Screenshot nicht Zeitgleich mit Log erstellt, erst nachträglich zur Veranschaulichung des Verhaltens) :
Bildschirmfoto 2024-11-17 um 15 29 05
Die Batterie wird dann weder geladen noch entladen. Wenn sie in "set battery mode: normal" geht, wird sie wieder entladen. (Untergrenze bei 10% eingestellt)
image

@birkenhost
Copy link
Author

würdet ihr den Bug Report wieder öffnen oder müsste ich ihn neu einstellen?

@andig
Copy link
Member

andig commented Nov 21, 2024

Achtung: wenn ich das "falsche" template "sma-sbs-15-25-modbus" verwende, dann wird die Batterie geladen wenn die Preisschwelle unterschritten wird. Leider ist dann die maximale Ladeleistung nur 2,7kW

@premultiply haben wir hier einfach ein Problem mit dem Scoping der Templates? Ich mache wieder auf.

Achtung: wenn ich das "falsche" template "sma-sbs-15-25-modbus" verwende, dann wird die Batterie geladen wenn die Preisschwelle unterschritten wird. Leider ist dann die maximale Ladeleistung nur 2,7kW

Ich vermute das sind die 2,5kW aus dem Template.

@premultiply parametrieren?

@andig andig added bug Something isn't working devices Specific device support labels Nov 21, 2024
@andig andig reopened this Nov 21, 2024
@premultiply premultiply linked a pull request Nov 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working devices Specific device support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants