Go e charger Überschuss

Hallo zusammen,

ich habe die go e charger Wallbox und möchte nun Überschuss laden. Im Zweirichtungszähler habe ich einen Lesekopf, der die Daten abfängt. Ich habe alles schon in HA eingerichtet. Ich habe also eine Entität für den aktuellen Verbrauch. Als der Verbrauch der ins negative geht und ins postive. Außerdem habe ich den go e charger mittels mqtt verbunden mit HA. Jetzt ist die Frage, was ich machen muss damit automatisch je nach Überschuss geladen wird.

Ich würde evcc empfehlen.

evcc - Sonne tanken :sun::oncoming_automobile: - PV-Überschussladen für steuerbare Wallboxen evcc - Sonne tanken ☀️🚘 - PV-Überschussladen für steuerbare Wallboxen

Für die go e muss man sponsorship zahlen. 2$ monatlich, oder einmalig 100$

2 „Gefällt mir“

Gibt es hier doch schon viele Beiträge dazu

Geht es nicht auch mit HA? Das habe ich schon und muss nicht was neues aufsetzen.

Es geht bestimmt auch über HA. Dazu gibt es die Themen. EVCC ist halt dafür gemacht und bietet um einiges mehr an im Vergleich zu einer selbst gemachte Automation in HA. Wenn du eine dauerhafte Lösung suchst, dann ist es evcc.

Ich nutze diese Integration für unsere go-E:

Die arbeitet halt per HTTP-Api und nicht mit MQTT, was ich persönlich aber nicht als Nachteil empfinde.

Wenn Du weißt, wie groß Dein Netzüberschuss ist, der vom Lesekopf kommt, könntest Du von diesem abhängig machen, mit wievielen Phasen und wieviel A geladen werden soll.
Ich habe das anfangs mal mit einer Automatisierung gemacht, als ich noch keinem Shelly EM hatte.
Dabei habe die Automatisierung so geschrieben, dass mit steigender PV-Leistung der Ladestrom erhöht wird.
Hier mal mit einfachen Worten hier eine Tabelle für 1-phasig und 3-phasig, jeweils von 6-16A

Das sind die Leistungen in Watt bei den unterschiedlichen Ampere-Zahlen.

6 1360
7 1860
9 1960
10 2225
11 2495
12 2635
13 2910
14 3190
15 3670
16 3680
6 3940
7 5250
9 5520
10 6320
11 7100
12 7490
13 8320
14 9130
16 10700

Die Automatisierung habe ich dann so programmiert, dass erst ab einer PV-Leistung von 2160W geladen wird. Diese wird im 10sec-Takt abgefragt.

Die YAML für alle 1- und 3-phasigen Ladeströme sah dann so aus:

alias: 0_BYD Atto 3 laden
description: “”
trigger:

* platform: time_pattern
  hours: “*"
  minutes: "*”
  seconds: /10
  condition:
* type: is_on
  condition: device
  device_id: 0a7bcc8164a801d033116d606cd143e4
  entity_id: 5dade47e826db4425e7fd021b58c9564
  domain: binary_sensor
* condition: device
  type: is_on
  device_id: 0a7bcc8164a801d033116d606cd143e4
  entity_id: 270f7b04667fe531f60a0fc64c5647c7
  domain: switch
* type: is_battery_level
  condition: device
  device_id: 6b785b8611cbfb5036c42e783c2530ec
  entity_id: 5df8c8c22d47fc2406b32df84b412755
  domain: sensor
  above: 97
  enabled: true
  action:
* alias: “kein Laden unter 2160–> force state: don’t charge”
  choose:
  * conditions:
    * condition: and
      conditions:
      * condition: time
        after: “00:01:00”
      * condition: numeric_state
        entity_id: sensor.pv_gesamtleistung
        below: 2160
        sequence:
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: deedb4c1e869d28ffce16976c1671920
      type: select_option
      option: Don’t charge
      enabled: true
* alias: “1-phasig 6A von 2160 bis 2660–> force state: force”
  choose:
  * conditions:
    * condition: and
      conditions:
      * condition: time
        after: “00:00:30”
      * condition: numeric_state
        entity_id: sensor.pv_gesamtleistung
        above: 2159
        below: 2661
        sequence:
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: deedb4c1e869d28ffce16976c1671920
      type: select_option
      option: Charge
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: bfee37888f0338c64b1a5f7cd5612179
      type: select_option
      option: Force single phase
    * service: number.set_value
      metadata: {}
      data:
      value: “6”
      target:
      entity_id: number.go_echarger_249033_amp
* alias: “1-phasig 7A von 2660 bis 2760–> force state: force”
  choose:
  * conditions:
    * condition: and
      conditions:
      * condition: time
        after: “00:00:30”
      * condition: numeric_state
        entity_id: sensor.pv_gesamtleistung
        above: 2659
        below: 2761
        sequence:
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: deedb4c1e869d28ffce16976c1671920
      type: select_option
      option: Charge
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: bfee37888f0338c64b1a5f7cd5612179
      type: select_option
      option: Force single phase
    * service: number.set_value
      metadata: {}
      data:
      value: “7”
      target:
      entity_id: number.go_echarger_249033_amp
* alias: “1-phasig 9A von 2760 bis 3025–> force state: force”
  choose:
  * conditions:
    * condition: and
      conditions:
      * condition: time
        after: “00:00:30”
      * condition: numeric_state
        entity_id: sensor.pv_gesamtleistung
        above: 2759
        below: 3026
        sequence:
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: deedb4c1e869d28ffce16976c1671920
      type: select_option
      option: Charge
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: bfee37888f0338c64b1a5f7cd5612179
      type: select_option
      option: Force single phase
    * service: number.set_value
      metadata: {}
      data:
      value: “9”
      target:
      entity_id: number.go_echarger_249033_amp
* alias: “1-phasig 10A von 3025 bis 3295–> force state: force”
  choose:
  * conditions:
    * condition: and
      conditions:
      * condition: time
        after: “00:00:30”
      * condition: numeric_state
        entity_id: sensor.pv_gesamtleistung
        above: 3024
        below: 3296
        sequence:
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: deedb4c1e869d28ffce16976c1671920
      type: select_option
      option: Charge
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: bfee37888f0338c64b1a5f7cd5612179
      type: select_option
      option: Force single phase
    * service: number.set_value
      metadata: {}
      data:
      value: “10”
      target:
      entity_id: number.go_echarger_249033_amp
* alias: “1-phasig 11A von 3295 bis 3435–> force state: force”
  choose:
  * conditions:
    * condition: and
      conditions:
      * condition: time
        after: “00:00:30”
      * condition: numeric_state
        entity_id: sensor.pv_gesamtleistung
        above: 3294
        below: 3436
        sequence:
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: deedb4c1e869d28ffce16976c1671920
      type: select_option
      option: Charge
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: bfee37888f0338c64b1a5f7cd5612179
      type: select_option
      option: Force single phase
    * service: number.set_value
      metadata: {}
      data:
      value: “11”
      target:
      entity_id: number.go_echarger_249033_amp
* alias: “1-phasig 12A von 3435 bis 3710–> force state: force”
  choose:
  * conditions:
    * condition: and
      conditions:
      * condition: time
        after: “00:00:30”
      * condition: numeric_state
        entity_id: sensor.pv_gesamtleistung
        above: 3434
        below: 3711
        sequence:
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: deedb4c1e869d28ffce16976c1671920
      type: select_option
      option: Charge
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: bfee37888f0338c64b1a5f7cd5612179
      type: select_option
      option: Force single phase
    * service: number.set_value
      metadata: {}
      data:
      value: “12”
      target:
      entity_id: number.go_echarger_249033_amp
* alias: “1-phasig 13A 3710 bis 3990–> force state: force”
  choose:
  * conditions:
    * condition: and
      conditions:
      * condition: time
        after: “00:00:30”
      * condition: numeric_state
        entity_id: sensor.pv_gesamtleistung
        above: 3709
        below: 3991
        sequence:
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: deedb4c1e869d28ffce16976c1671920
      type: select_option
      option: Charge
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: bfee37888f0338c64b1a5f7cd5612179
      type: select_option
      option: Force single phase
    * service: number.set_value
      metadata: {}
      data:
      value: “13”
      target:
      entity_id: number.go_echarger_249033_amp
* alias: “1-phasig 14A von 3990 bis 4470–> force state: force”
  choose:
  * conditions:
    * condition: and
      conditions:
      * condition: time
        after: “00:00:30”
      * condition: numeric_state
        entity_id: sensor.pv_gesamtleistung
        above: 3989
        below: 4471
        sequence:
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: deedb4c1e869d28ffce16976c1671920
      type: select_option
      option: Charge
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: bfee37888f0338c64b1a5f7cd5612179
      type: select_option
      option: Force single phase
    * service: number.set_value
      metadata: {}
      data:
      value: “14”
      target:
      entity_id: number.go_echarger_249033_amp
* alias: “1-phasig 16A von 4470 bis 4480–> force state: force”
  choose:
  * conditions:
    * condition: and
      conditions:
      * condition: time
        after: “00:00:30”
      * condition: numeric_state
        entity_id: sensor.pv_gesamtleistung
        above: 4469
        below: 4481
        sequence:
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: deedb4c1e869d28ffce16976c1671920
      type: select_option
      option: Charge
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: bfee37888f0338c64b1a5f7cd5612179
      type: select_option
      option: Force single phase
    * service: number.set_value
      metadata: {}
      data:
      value: “16”
      target:
      entity_id: number.go_echarger_249033_amp
* alias: “3-phasig 6A von 4480 bis 4740–> force state: force”
  choose:
  * conditions:
    * condition: and
      conditions:
      * condition: time
        after: “00:00:30”
      * condition: numeric_state
        entity_id: sensor.pv_gesamtleistung
        above: 4479
        below: 4741
        sequence:
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: deedb4c1e869d28ffce16976c1671920
      type: select_option
      option: Charge
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: bfee37888f0338c64b1a5f7cd5612179
      type: select_option
      option: Force three phases
    * service: number.set_value
      metadata: {}
      data:
      value: “6”
      target:
      entity_id: number.go_echarger_249033_amp
* alias: “3-phasig 7A von 4740 bis 6050–> force state: force”
  choose:
  * conditions:
    * condition: and
      conditions:
      * condition: time
        after: “00:00:30”
      * condition: numeric_state
        entity_id: sensor.pv_gesamtleistung
        above: 4739
        below: 6051
        sequence:
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: deedb4c1e869d28ffce16976c1671920
      type: select_option
      option: Charge
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: bfee37888f0338c64b1a5f7cd5612179
      type: select_option
      option: Force three phases
    * service: number.set_value
      metadata: {}
      data:
      value: “7”
      target:
      entity_id: number.go_echarger_249033_amp
* alias: “3-phasig 9A von 6050 bis 6320–> force state: force”
  choose:
  * conditions:
    * condition: and
      conditions:
      * condition: time
        after: “00:00:30”
      * condition: numeric_state
        entity_id: sensor.pv_gesamtleistung
        above: 6051
        below: 6321
        sequence:
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: deedb4c1e869d28ffce16976c1671920
      type: select_option
      option: Charge
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: bfee37888f0338c64b1a5f7cd5612179
      type: select_option
      option: Force three phases
    * service: number.set_value
      metadata: {}
      data:
      value: “9”
      target:
      entity_id: number.go_echarger_249033_amp
* alias: “3-phasig 10A von 6320 bis 7120–> force state: force”
  choose:
  * conditions:
    * condition: and
      conditions:
      * condition: time
        after: “00:00:30”
      * condition: numeric_state
        entity_id: sensor.pv_gesamtleistung
        above: 6319
        below: 7121
        sequence:
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: deedb4c1e869d28ffce16976c1671920
      type: select_option
      option: Charge
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: bfee37888f0338c64b1a5f7cd5612179
      type: select_option
      option: Force three phases
    * service: number.set_value
      metadata: {}
      data:
      value: “10”
      target:
      entity_id: number.go_echarger_249033_amp
* alias: “3-phasig 11A von 7120 bis 7900–> force state: force”
  choose:
  * conditions:
    * condition: and
      conditions:
      * condition: time
        after: “00:00:30”
      * condition: numeric_state
        entity_id: sensor.pv_gesamtleistung
        above: 7119
        below: 7901
        sequence:
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: deedb4c1e869d28ffce16976c1671920
      type: select_option
      option: Charge
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: bfee37888f0338c64b1a5f7cd5612179
      type: select_option
      option: Force three phases
    * service: number.set_value
      metadata: {}
      data:
      value: “11”
      target:
      entity_id: number.go_echarger_249033_amp
* alias: “3-phasig 12A von 7900 bis 8290–> force state: force”
  choose:
  * conditions:
    * condition: and
      conditions:
      * condition: time
        after: “00:00:30”
      * condition: numeric_state
        entity_id: sensor.pv_gesamtleistung
        above: 7899
        below: 8291
        sequence:
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: deedb4c1e869d28ffce16976c1671920
      type: select_option
      option: Charge
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: bfee37888f0338c64b1a5f7cd5612179
      type: select_option
      option: Force three phases
    * service: number.set_value
      metadata: {}
      data:
      value: “12”
      target:
      entity_id: number.go_echarger_249033_amp
* alias: “3-phasig 13A von 8290 bis 9120–> force state: force”
  choose:
  * conditions:
    * condition: and
      conditions:
      * condition: time
        after: “00:00:30”
      * condition: numeric_state
        entity_id: sensor.pv_gesamtleistung
        above: 8289
        below: 9121
        sequence:
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: deedb4c1e869d28ffce16976c1671920
      type: select_option
      option: Charge
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: bfee37888f0338c64b1a5f7cd5612179
      type: select_option
      option: Force three phases
    * service: number.set_value
      metadata: {}
      data:
      value: “13”
      target:
      entity_id: number.go_echarger_249033_amp
* alias: “3-phasig 14A von 9120 bis 9930–> force state: force”
  choose:
  * conditions:
    * condition: and
      conditions:
      * condition: time
        after: “00:00:30”
      * condition: numeric_state
        entity_id: sensor.pv_gesamtleistung
        above: 9119
        below: 9929
        sequence:
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: deedb4c1e869d28ffce16976c1671920
      type: select_option
      option: Charge
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: bfee37888f0338c64b1a5f7cd5612179
      type: select_option
      option: Force three phases
    * service: number.set_value
      metadata: {}
      data:
      value: “14”
      target:
      entity_id: number.go_echarger_249033_amp
* alias: “3-phasig 16A ab 9930–> force state: force”
  choose:
  * conditions:
    * condition: and
      conditions:
      * condition: time
        after: “00:00:30”
      * condition: numeric_state
        entity_id: sensor.pv_gesamtleistung
        above: 9929
        sequence:
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: deedb4c1e869d28ffce16976c1671920
      type: select_option
      option: Charge
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: bfee37888f0338c64b1a5f7cd5612179
      type: select_option
      option: Force three phases
    * service: number.set_value
      metadata: {}
      data:
      value: “16”
      target:
      entity_id: number.go_echarger_249033_amp
      mode: single

Damit der Hausakku nicht leergesaugt wird, habe ich den SOC überprüft und hierbei festgelegt, dass bei <95% das Laden stoppen soll.

alias: Laden stoppen wenn SOC% unter 95%
description: Laden stoppen
trigger:

* platform: time_pattern
  hours: “*"
  minutes: "*”
  seconds: /10
  condition: [ ]
  action:
* alias: “kein Laden wenn SOC <95% → force state: don’t charge”
  choose:
  * conditions:
    * condition: numeric_state
      entity_id: sensor.growatt_sph_battery_soc
      below: 95
      sequence:
    * device_id: 0a7bcc8164a801d033116d606cd143e4
      domain: select
      entity_id: deedb4c1e869d28ffce16976c1671920
      type: select_option
      option: Don’t charge
      enabled: true
      mode: single

Das ganze lief ein Jahr recht gut, bis ich dann auf EVCC gestoßen bin.
Kannst die Automatisierung ja gern mal ausprobieren und auf Deine Entitäten anpassen.
LG
Frank

:pencil: by tarag: Code in vorformatierten Code </> formatiert

So schaut meine Automation mit o.g. Integration aus, die WB regelt dann im ECO-Modus von sich aus die Ladeleistung innerhalb dieser 16 Stufen (bzw. bis zum eingestellten Limit):

alias: go-e PV surplus charging brigde
description: >-
  Simple automation to provide your go-eChargers with the required data so that
  the wallbox can support PV surplus charging.
triggers:
  - trigger: time_pattern
    seconds: /3
conditions:
  - condition: state
    entity_id: binary_sensor.goe_....._car_0
    state: "on"
    enabled: true
  - condition: sun
    before: sunset
    after: sunrise
actions:
  - data:
      pgrid: "{{states('sensor.power_grid_total_active')|float(0)}}"
      ppv: "{{states('sensor.power_pv_total')|float(0)}}"
      pakku: >-
        {{states('sensor.shelly_em_batteriespeicher_total_active_power')|float(0)}}
      configid: ...
    action: goecharger_api2.set_pv_data
mode: single

Evcc ist dann eine separate Installation innerhalb eines docker Containers, etc.
Gibts Erfahrungswerte, EVCC auch in HA zu integrieren, sprich über die HA-Oberfläche zu steuern?

Kann man integrieren. Gibt’s auch Integrationen dazu. Ich hab’s tatsächlich nicht gemacht. EVCC nutzt MQTT als Schnittstelle

1 „Gefällt mir“

Man kann evcc auch als Add-On installieren. So habe ich es seit nun knapp über 2 Jahren laufen. Das klappt gut

Vorausgesetzt man hat den HA OS, wenn man den Home Assistent Core also docker container hat, dann geht es nicht als addon

1 „Gefällt mir“

Ähhmmm. Ich versteh nicht ganz. HA läuft bei mir auf nem Rasberry Pi

Dann kannst du das als add on installieren.

1 „Gefällt mir“