evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Improve heat pump use case

Open MikeTheTux opened this issue 9 months ago • 11 comments

By luck I found the description how to use EVCC to control my heat pump (in addition to my wallbox). I would like to share the following improvement ideas:

  1. The heat pump use case is not well "advertised". E.g. it is not mentioned in Home
  2. The setup is described in Sonstiges - a better title should be used for the page
  3. Sonstiges is incomplete: 3.1. chargers misses an explanation of the standbypower parameter (<0 vs. >=0) 3.2. In addition the parameters integrateddevice, heating as well as icon are not mentioned 3.3. In the loadpoint section, the priority could be explained as useful option - Charged Car v.s. Warm Water ;-) 3.4 The default poll.mode is charging. You need it to set on always/connected, see https://docs.evcc.io/en/docs/reference/configuration/loadpoints/#pollmode
  4. meters -> WP_Pwr should also support a standbypower parameter. Without, the standby of the heat pump (~15 Watt in my case) is interpreted as "Charging" and accumulates as charged energy.
  5. In docs/reference/configuration/chargers the option heating is not specified

MikeTheTux avatar Oct 06 '23 17:10 MikeTheTux

Great input, thank you!

andig avatar Oct 06 '23 18:10 andig

For 4. I implemented a workaround using the following logic in openHAB and transmit the result via MQTT to EVCC:

if ( power < 100W )
{
   power = 0W
}
else
{
   power = power - 15W // typical standby
}

MikeTheTux avatar Oct 07 '23 04:10 MikeTheTux

/cc @VolkerK62

andig avatar Jan 13 '24 10:01 andig

@MikeTheTux This example was originally intended for use in Shellys, not specifically for heat pumps. All parameters are described in the configuration area. You are right about the poll mode, that should be changed.

For 4: standbypower on the chargemeter is still not necessary, it is enough, if it is entered on the charger. Try using standbypower: 100.

By the way, he documentary can be edited by any user 😄

VolkerK62 avatar Jan 13 '24 11:01 VolkerK62

Additional enhancements from https://github.com/evcc-io/evcc/discussions/11822#discussioncomment-8224247:

Ja, Einerschritte macht hier durchaus Sinn. Kann ich mich gerne drum kümmern. Anpassung der Skala (lower/upper) ist schwieriger. Da haben wir aktuell (noch) keinen guten Ort für. Wäre etwas speziell für Heater. Da wir gerade dabei sind die yaml-Settings zu reduzieren bzw. in der UI zu migrieren würde ich das auch erst nach der Migration sehen.

andig avatar Jan 23 '24 19:01 andig

For 4: standbypower on the chargemeter is still not necessary, it is enough, if it is entered on the charger. Try using standbypower: 100.

Muss ich am Charger nicht -1 setzen, um in den Static-Switch Modus zu gelangen? https://docs.evcc.io/docs/devices/chargers/#schaltbare-steckdosen

Ist die poll-mode Änderung aus https://github.com/evcc-io/docs/pull/515 nicht redundant aufgrund der Änderungen aus https://github.com/evcc-io/evcc/pull/10284?

MikeTheTux avatar Jan 27 '24 11:01 MikeTheTux

Muss ich am Charger nicht -1 setzen, um in den Static-Switch Modus zu gelangen?

Wenn du ein meter nutzt, kannst du auch positive Werte nehmen.

Ist die poll-mode Änderung aus https://github.com/evcc-io/docs/pull/515 nicht redundant aufgrund der Änderungen aus https://github.com/evcc-io/evcc/pull/10284?

Stimmt, daran hab ich gar nicht mehr gedacht ;-)

VolkerK62 avatar Jan 27 '24 12:01 VolkerK62

Ist die poll-mode Änderung aus evcc-io/docs#515 nicht redundant aufgrund der Änderungen aus #10284?

Stimmt, daran hab ich gar nicht mehr gedacht ;-)

Ich denke, die Änderung aus https://github.com/evcc-io/docs/pull/515 sollte zurückgenommen werden. Damit entsteht der Eindruck, dass der poll Parameter immer noch eine Relevanz hat. Vielmehr sollte das via https://github.com/evcc-io/evcc/pull/10284 implementierte Verhalten beschrieben werden.

MikeTheTux avatar Jan 29 '24 18:01 MikeTheTux

Muss ich am Charger nicht -1 setzen, um in den Static-Switch Modus zu gelangen?

Wenn du ein meter nutzt, kannst du auch positive Werte nehmen.

@VolkerK62: Folgende Config, mit positiver standbypower hat bei mir nicht funktioniert:

chargers:
  - name: heatpump_switch
    type: template
    template: shelly
    host: 192.168.69.152
    standbypower: 15
    integrateddevice: true
    heating: true
    icon: waterheater

meters:
- name: heatpump_power
  type: custom
  power:
    source: mqtt
    topic: heatpump/power

loadpoints:
- title: Heatpump
  charger: heatpump_switch
  meter: heatpump_power
  vehicle: heatpump
  mode: pv
  enable:
    threshold: 0
    delay: 1m
  disable:
    threshold: 0
    delay: 15m              # Laufzeit mindestens 15 Minuten
  guardduration: 15m        # Pause mindestens 15 Minunten
  priority: 10

vehicles:
  - name: heatpump
    type: custom
    title: Heatpump
    icon: waterheater
    phases: 1
    onIdentify:
      mode: pv
    soc:
      source: mqtt
      topic: heatpump/temperature

Warte auf Heizung, Geladene Energie 0 kWh ...

Untitled-1

MikeTheTux avatar Feb 11 '24 20:02 MikeTheTux

Ich weiß jetzt warum. Siehe #12276 Hatte ich so nicht auf dem Schirm

VolkerK62 avatar Feb 15 '24 16:02 VolkerK62

Ich würde mich hier auch noch gerne dranhängen. Das mit dem standbypower ist die eine Sache. Was jetzt noch dazukommt, ist der maxCurrent, den evcc meldet. Wenn zB die Wärmepumpe nachmittags ihre Arbeit erledigt hat und aufgrund ihrer Hysteresen (Warmwasser und/oder Heizung) jetzt im StandBy ist und es jetzt Abend wird und somit die PvErzeugung sinkt, meldet evcc weiterhin den maxmimalen maxCurrent für den Loadpoint. Dies führt dazu, dass der SG-/PV-Ready-Kontakt aktiv bleibt und die WP bei unterschreiten der Hysterese wieder mit Vollgas anfängt zu arbeiten.

Bei mir ist der WP Loadpoint auf min. 2,8kw und max. 4,6kw eingestellt.

Müsste der Loadpoint in diesem Fall (Screenshot) nicht disabled werden?

grafik

michiproep avatar Apr 26 '24 04:04 michiproep