evcc-io / evcc

Sonne tanken ☀️🚘
https://evcc.io
MIT License
3.32k stars 606 forks source link

SOC of heating system is not updated when not charging #10276

Closed MikeTheTux closed 11 months ago

MikeTheTux commented 11 months ago

Describe the bug

I've setup a heating system like described in https://docs.evcc.io/docs/guides/faq

EVCC reads and displays the SOC of the heating system during program startup. EVCC updates the SOC while charging. Once the target SOC is reached, EVCC is no longer reading the SOC. SOC remains on the previous target level. Charging is not initiated again, even if SOC falls under target SOC - workaround: restart of program.

image

Could this be an implementation behavior from Electronic cars? When a certain target SOC is reached, it is not decreasing until the car is dis-connected/re-connected.

Steps to reproduce

  1. PV charge heating system until target SOC is reached
  2. Reduce current SOC (e.g. via MQTT)
  3. SOC shown/used by EVCC is not updated. Charging is not initiated again, even if SOC falls under target SOC.

Configuration details

# open evcc at http://evcc.local:7070
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: nas
  # port is the listening port for UI and api
  # evcc will listen on all available interfaces
  port: 7070

# log settings
log: debug
levels:
  cache: info
  audi: info
  site: info
  lp-1: info
  script: info
  push: info
  lp-2: debug

interval: 10s # control cycle interval

chargers:
  - name: keba
    type: template
    template: keba-modbus
    host: 192.168.69.108
#    serial: xxx
    id: 255
    port: 502
  - name: heatpump_switch
    type: template
    template: shelly
    host: 192.168.69.152
    standbypower: -1
    integrateddevice: true
    heating: true
    icon: waterheater

loadpoints:
- title: Wallbox
  charger: keba
  mode: off                 # set default charge mode, use "off" to disable by default if charger is publicly available, now, off, minpv, pv
  resetOnDisconnect: true   # set defaults when vehicle disconnects
  phases: 3                 # electrical connection (normal charger: default 3 for 3 phase, 1p3p charger: 0 for "auto" or 1/3 for fixed phases)
  enable:                   # pv mode enable behavior
    delay: 1m               # threshold must be exceeded for this long
    threshold: 0            # grid power threshold (in Watts, negative=export). If zero, export must exceed minimum charge power to enable
  disable:                  # pv mode disable behavior
    delay: 3m               # threshold must be exceeded for this long
    threshold: 0            # maximum import power (W)
  guardDuration: 5m         # switch charger contactor not more often than this (default 5m)
  minCurrent: 6             # minimum charge current (default 6A)
  maxCurrent: 32            # maximum charge current (default 16A)
  vehicle: Q5
  priority: 10
- title: Heatpump
  charger: heatpump_switch
  meter: heatpump_power
  vehicle: heatpump
  mode: pv
  phases: 1
  mincurrent: 2             # 2A * 230V = 460W
  maxcurrent: 3             # 3A * 230V = 690W
  enable:
    threshold: 0
    delay: 1m
  disable:
    threshold: 0
    delay: 15m              # Laufzeit mindestens 15 Minuten
  guardduration: 15m        # Pause mindestens 15 Minunten
  priority: 5

meters:
- name: gridmeter
  type: template
  template: fronius-gen24
  usage: grid
  host: 192.168.69.144 # IP-Adresse oder Hostname
  port: 502 # Port (Optional) 
- name: pvmeter
  type: template
  template: fronius-gen24
  usage: pv
  host: 192.168.69.144 # IP-Adresse oder Hostname
  port: 502 # Port (Optional) 
- name: batterymeter
  type: template
  template: fronius-gen24
  usage: battery
  host: 192.168.69.144 # IP-Adresse oder Hostname
  port: 502 # Port (Optional)
  capacity: 5.12
- name: heatpump_power
  type: custom
  power:
    source: mqtt
    topic: heatpump/power

site:
  title: home
  meters:
    grid: gridmeter
    pv:
      - pvmeter
    battery:
      - batterymeter
  residualPower:   100  # 50% 1 Phase 6A 230V = -1380 W, davon 50%: -690 W

# 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.4868          # EUR/kWh

    # # or variable via tibber
    # type: tibber
    # cheap: 0.2 # EUR/kWh
    # token: "476c477d8a039529478ebd690d35ddd80e3308ffc49b59c65b142321aee963a4" # access token
    # homeid: "cc83e83e-8cbf-4595-9bf7-c3cf192f7d9c" # optional if multiple homes associated to account

    # # 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.082           # EUR/kWh

# mqtt message broker
mqtt:
  broker: 192.168.69.68:1883
  topic: evcc # root topic for publishing, set empty to disable
  user: xxx
  password: yyy

# influx database
influx:
  url: http://192.168.69.68:8086
  database: evcc_db
  token: xxx
  org: yyy

# eebus credentials
eebus:
  # uri: # :4712
  # interfaces: # limit eebus to specific network interfaces
  # - en0
  # certificate: # local signed certificate, required, can be generated via `evcc eebus-cert`
  #   public: # public key
  #   private: # private key

# push messages
messaging:
  events:
    start:                                                      # charge start event
      title: Charge started
      msg: ${title} started charging ${vehicleTitle} in ${mode} mode
    stop:                                                       # charge stop event
      title: Charge finished
      msg: ${title} finished charging ${vehicleTitle} with ${chargedEnergy:%.1fk}kWh in ${chargeDuration}
    connect:                                                    # vehicle connect event
      title: Car connected
      msg: "${vehicleTitle} connected on ${title} at ${pvPower:%.1fk}kW PV"
    disconnect:                                                 # vehicle connected event
      title: Car disconnected
      msg: ${vehicleTitle} disconnected from ${title} after ${connectedDuration}
    soc:                                                        # vehicle soc update event
      title: SoC updated
      msg: Battery of ${vehicleTitle} charged to ${vehicleSoC:%.0f}%
    guest:                                                      # vehicle could not be identified
      title: Unknown vehicle
      msg: Unknown vehicle, guest connected?
  services:
  # - type: pushover
  #   app: # app id
  #   recipients:
  #   - # list of recipient ids
  - type: telegram
    token: xxx
    chats:
    - yyy
  # - type: email
  #   uri: smtp://<user>:<password>@<host>:<port>/?fromAddress=<from>&toAddresses=<to>

vehicles:
  - name: Q5
    type: template
    template: audi
    title: Audi Q5
    phases: 2
    mode: pv
    user: xxx   # Benutzerkonto (bspw. E-Mail Adresse, User Id, etc.)
    password: yyy       # Passwort des Benutzerkontos (bei f renden Nullen bitte in einfache Hochkommata setzen)
    vin: zzz        # Erforderlich, wenn mehrere Fahrzeuge des Herstellers vorhanden sind # Optional
    capacity: 14.1                # Akku-Kapazit  in kWh # Optional 
    identifiers:
    - 0000000000000000
    icon: car
  - name: heatpump
    type: custom
    title: Heatpump
    icon: waterheater
    phases: 1
    onIdentify:
      mode: pv
      minsoc: 40
      targetsoc: 65     # max 66.5
    soc:
      source: mqtt
      topic: heatpump/temperature

# token
sponsortoken: xxx

Log details

./evcc --log debug
[main  ] INFO 2023/10/11 20:22:41 evcc 0.120.3
[main  ] INFO 2023/10/11 20:22:41 using config file: /volume1/docker/evcc/etc/ev                                                                                                                                                             cc.yaml
[main  ] INFO 2023/10/11 20:22:41 starting ui and api at :7070
[db    ] INFO 2023/10/11 20:22:41 using sqlite database: /var/services/homes/mik                                                                                                                                                             e/.evcc/evcc.db
[mqtt  ] INFO 2023/10/11 20:22:41 connecting evcc-386227404 at tcp://192.168.69.                                                                                                                                                             68:1883
[mqtt  ] DEBUG 2023/10/11 20:22:41 tcp://192.168.69.68:1883 connected
[site  ] WARN 2023/10/11 20:22:45 vehicle 'Heatpump' does not support automatic                                                                                                                                                              detection
[site  ] INFO 2023/10/11 20:22:45 site config:
[site  ] INFO 2023/10/11 20:22:45   meters:      grid ✓ pv ✓ battery ✓
[site  ] INFO 2023/10/11 20:22:45     grid:      power ✓ energy ✓ currents ✓
[site  ] INFO 2023/10/11 20:22:45     pv 1:      power ✓ energy ✓ currents ✗
[site  ] INFO 2023/10/11 20:22:45     battery 1: power ✓ energy ✗ currents ✗ soc                                                                                                                                                              ✓ capacity ✓
[site  ] INFO 2023/10/11 20:22:45   vehicles:
[site  ] INFO 2023/10/11 20:22:45     vehicle 1: range ✗ finish ✗ status ✗ clima                                                                                                                                                             te ✗ wakeup ✗
[site  ] INFO 2023/10/11 20:22:45     vehicle 2: range ✓ finish ✓ status ✓ clima                                                                                                                                                             te ✓ wakeup ✓
[lp-1  ] INFO 2023/10/11 20:22:45 loadpoint 1:
[lp-1  ] INFO 2023/10/11 20:22:45   mode:        off
[lp-1  ] INFO 2023/10/11 20:22:45   charger:     power ✓ energy ✓ currents ✓ pha                                                                                                                                                             ses ✗ wakeup ✗
[lp-1  ] INFO 2023/10/11 20:22:45   meters:      charge ✓
[lp-1  ] INFO 2023/10/11 20:22:45     charge:    power ✓ energy ✓ currents ✓
[lp-2  ] INFO 2023/10/11 20:22:45 loadpoint 2:
[lp-2  ] INFO 2023/10/11 20:22:45   mode:        pv
[lp-2  ] INFO 2023/10/11 20:22:45   charger:     power ✓ energy ✓ currents ✗ pha                                                                                                                                                             ses ✗ wakeup ✗
[lp-2  ] INFO 2023/10/11 20:22:45   meters:      charge ✓
[lp-2  ] INFO 2023/10/11 20:22:45     charge:    power ✓ energy ✗ currents ✗
[lp-1  ] INFO 2023/10/11 20:22:45 vehicle updated: unknown -> Audi Q5
[lp-2  ] DEBUG 2023/10/11 20:22:45 phase timer inactive
[lp-2  ] DEBUG 2023/10/11 20:22:45 pv timer inactive
[lp-2  ] DEBUG 2023/10/11 20:22:45 guard timer inactive
[lp-2  ] INFO 2023/10/11 20:22:45 vehicle updated: unknown -> Heatpump
[lp-2  ] DEBUG 2023/10/11 20:22:45 set charge mode: pv
[lp-2  ] DEBUG 2023/10/11 20:22:45 set target soc: 65
[site  ] WARN 2023/10/11 20:22:45 interval <30s can lead to unexpected behavior,                                                                                                                                                              see https://docs.evcc.io/docs/reference/configuration/interval
[lp-2  ] DEBUG 2023/10/11 20:22:45 charge power: 120W
[lp-2  ] DEBUG 2023/10/11 20:22:47 set target soc: 40
[lp-1  ] INFO 2023/10/11 20:22:49 car connected
[push  ] ERROR 2023/10/11 20:22:49 invalid message template for soc: wanted: [ve                                                                                                                                                             hicleSoC], got: [chargePower batteryEnergy phaseAction minCurrent minSoc vehicle                                                                                                                                                             Title mode vehicleTargetSoc batteryPower vehicleSoc residualPower chargerFeature                                                                                                                                                             Heating version pv sessionSolarPercentage gridCurrents siteTitle sessionPricePer                                                                                                                                                             KWh maxCurrent chargedEnergy bufferStartSoc pvConfigured gridConfigured phasesCo                                                                                                                                                             nfigured connectedDuration bufferSoc guardRemaining chargeCurrent title priority                                                                                                                                                              phasesEnabled currency vehicleDetectionActive chargeCurrents chargeTotalImport                                                                                                                                                              pvEnergy gridEnergy vehicleOdometer vehicles pvAction batteryConfigured sessionP                                                                                                                                                             rice phasesActive targetSoc auth batterySoc phaseRemaining homePower guardAction                                                                                                                                                              vehicleIcon charging chargeDuration smartCostType gridPower vehicleFeatureOffli                                                                                                                                                             ne targetEnergy vehiclePresent pvPower pvRemaining loadpoint chargerFeatureInteg                                                                                                                                                             ratedDevice batteryCapacity sessionEnergy connected savingsSince chargerIcon sma                                                                                                                                                             rtCostLimit prioritySoc battery sponsorTokenExpires sessionCo2PerKWh vehicleRang                                                                                                                                                             e sponsor vehicleCapacity]
[lp-2  ] DEBUG 2023/10/11 20:22:49 charge power: 120W
[lp-2  ] DEBUG 2023/10/11 20:22:55 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:22:55 charger status: B
[lp-2  ] INFO 2023/10/11 20:22:55 car connected
[lp-2  ] DEBUG 2023/10/11 20:22:55 pv timer elapse
[lp-2  ] DEBUG 2023/10/11 20:22:55 pv timer inactive
[lp-2  ] DEBUG 2023/10/11 20:22:55 charger: guard elapse
[lp-2  ] DEBUG 2023/10/11 20:22:55 guard timer inactive
[lp-2  ] DEBUG 2023/10/11 20:22:55 vehicle soc: 57%
[push  ] ERROR 2023/10/11 20:22:55 invalid message template for soc: wanted: [ve                                                                                                                                                             hicleSoC], got: [sessionSolarPercentage chargePower sessionCo2PerKWh siteTitle t                                                                                                                                                             ariffGrid savingsEffectivePrice savingsSince tariffPriceLoadpoints homePower spo                                                                                                                                                             nsorTokenExpires vehicleSoc vehicleIcon smartCostLimit phasesActive currency aut                                                                                                                                                             h vehicleCapacity vehicleTitle vehicleRange pvRemaining minCurrent phasesConfigu                                                                                                                                                             red batteryEnergy savingsAmount pv tariffPriceHome smartCostType vehicles target                                                                                                                                                             Soc chargeCurrent batterySoc phaseAction guardRemaining chargerIcon loadpoint sa                                                                                                                                                             vingsSelfConsumptionCharged vehicleFeatureOffline vehicleTargetSoc batteryCapaci                                                                                                                                                             ty greenShareLoadpoints phaseRemaining tariffFeedIn targetEnergy greenShareHome                                                                                                                                                              gridEnergy chargerFeatureIntegratedDevice vehiclePresent priority savingsSelfCon                                                                                                                                                             sumptionPercent mode chargerFeatureHeating phasesEnabled pvAction chargedEnergy                                                                                                                                                              batteryConfigured maxCurrent sessionPricePerKWh sponsor pvPower savingsGridCharg                                                                                                                                                             ed bufferSoc pvEnergy guardAction gridPower gridCurrents batteryPower version se                                                                                                                                                             ssionEnergy battery gridConfigured residualPower minSoc bufferStartSoc connected                                                                                                                                                              connectedDuration charging savingsTotalCharged pvConfigured vehicleDetectionAct                                                                                                                                                             ive sessionPrice chargeDuration title prioritySoc]
[lp-2  ] DEBUG 2023/10/11 20:22:55 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:23:05 charge power: 151W
[lp-2  ] DEBUG 2023/10/11 20:23:15 charge power: 184W
[lp-2  ] DEBUG 2023/10/11 20:23:15 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:23:15 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:23:25 charge power: 182W
[lp-2  ] DEBUG 2023/10/11 20:23:35 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:23:35 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:23:35 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:23:45 charge power: 101W
[lp-2  ] DEBUG 2023/10/11 20:23:55 charge power: 94W
[lp-2  ] DEBUG 2023/10/11 20:23:55 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:23:55 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:24:05 charge power: 94W
[lp-2  ] DEBUG 2023/10/11 20:24:15 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:24:15 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:24:15 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:24:25 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:24:35 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:24:35 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:24:35 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:24:45 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:24:55 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:24:55 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:24:55 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:25:05 charge power: 130W
[lp-2  ] DEBUG 2023/10/11 20:25:15 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:25:15 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:25:15 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:25:25 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:25:35 charge power: 179W
[lp-2  ] DEBUG 2023/10/11 20:25:35 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:25:35 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:25:45 charge power: 147W
[lp-2  ] DEBUG 2023/10/11 20:25:55 charge power: 170W
[lp-2  ] DEBUG 2023/10/11 20:25:55 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:25:55 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:26:05 charge power: 113W
[lp-2  ] DEBUG 2023/10/11 20:26:15 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:26:15 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:26:15 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:26:25 charge power: 175W
[lp-2  ] DEBUG 2023/10/11 20:26:35 charge power: 179W
[lp-2  ] DEBUG 2023/10/11 20:26:35 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:26:35 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:26:45 charge power: 179W
[lp-2  ] DEBUG 2023/10/11 20:26:55 charge power: 180W
[lp-2  ] DEBUG 2023/10/11 20:26:55 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:26:55 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:27:05 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:27:15 charge power: 149W
[lp-2  ] DEBUG 2023/10/11 20:27:15 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:27:15 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:27:25 charge power: 159W
[lp-2  ] DEBUG 2023/10/11 20:27:35 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:27:35 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:27:35 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:27:45 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:27:55 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:27:55 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:27:55 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:28:05 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:28:15 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:28:15 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:28:15 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:28:25 charge power: 159W
[lp-2  ] DEBUG 2023/10/11 20:28:35 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:28:35 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:28:35 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:28:45 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:28:55 charge power: 137W
[lp-2  ] DEBUG 2023/10/11 20:28:55 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:28:55 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:29:05 charge power: 159W
[lp-2  ] DEBUG 2023/10/11 20:29:15 charge power: 90W
[lp-2  ] DEBUG 2023/10/11 20:29:15 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:29:15 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:29:25 charge power: 159W
[lp-2  ] DEBUG 2023/10/11 20:29:35 charge power: 116W
[lp-2  ] DEBUG 2023/10/11 20:29:35 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:29:35 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:29:45 charge power: 142W
[lp-2  ] DEBUG 2023/10/11 20:29:55 charge power: 131W
[lp-2  ] DEBUG 2023/10/11 20:29:55 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:29:55 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:30:05 charge power: 160W
[lp-2  ] DEBUG 2023/10/11 20:30:15 charge power: 159W
[lp-2  ] DEBUG 2023/10/11 20:30:15 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:30:15 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:30:25 charge power: 162W
[lp-2  ] DEBUG 2023/10/11 20:30:35 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:30:35 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:30:35 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:30:45 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:30:55 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:30:55 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:30:55 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:31:05 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:31:15 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:31:15 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:31:15 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:31:25 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:31:35 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:31:35 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:31:35 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:31:45 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:31:55 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:31:55 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:31:55 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:32:05 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:32:15 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:32:15 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:32:15 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:32:25 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:32:35 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:32:35 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:32:35 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:32:45 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:32:55 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:32:55 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:32:55 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:33:05 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:33:15 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:33:15 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:33:15 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:33:25 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:33:35 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:33:35 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:33:35 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:33:45 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:33:55 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:33:55 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:33:55 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:34:05 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:34:15 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:34:15 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:34:15 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:34:25 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:34:35 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:34:35 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:34:35 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:34:45 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:34:55 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:34:55 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:34:55 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:35:05 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:35:15 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:35:15 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:35:15 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:35:25 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:35:35 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:35:35 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:35:35 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:35:45 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:35:55 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:35:55 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:35:55 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:36:05 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:36:15 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:36:15 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:36:15 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:36:25 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:36:35 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:36:35 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:36:35 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:36:45 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:36:55 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:36:55 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:36:55 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:37:05 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:37:15 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:37:15 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:37:15 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:37:25 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:37:35 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:37:35 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:37:35 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:37:45 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:37:55 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:37:55 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:37:55 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:38:05 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:38:15 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:38:15 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:38:15 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:38:25 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:38:35 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:38:35 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:38:35 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:38:45 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:38:55 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:38:55 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:38:55 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:39:05 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:39:15 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:39:15 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:39:15 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:39:25 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:39:35 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:39:35 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:39:35 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:39:45 charge power: 0W
[lp-2  ] DEBUG 2023/10/11 20:39:55 charge power: 1361W
[lp-2  ] DEBUG 2023/10/11 20:39:55 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:39:55 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:40:05 charge power: 1506W
[lp-2  ] DEBUG 2023/10/11 20:40:15 charge power: 1553W
[lp-2  ] DEBUG 2023/10/11 20:40:15 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:40:15 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:40:25 charge power: 1352W
[lp-2  ] DEBUG 2023/10/11 20:40:35 charge power: 1542W
[lp-2  ] DEBUG 2023/10/11 20:40:35 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:40:35 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:40:45 charge power: 1435W
[lp-2  ] DEBUG 2023/10/11 20:40:55 charge power: 1407W
[lp-2  ] DEBUG 2023/10/11 20:40:55 charger status: B
[lp-2  ] DEBUG 2023/10/11 20:40:55 targetSoc reached: 56.7% > 40%
[lp-2  ] DEBUG 2023/10/11 20:41:05 charge power: 1537W

SOC changed from 56.7% to 56.5% which is not shown.

What type of operating system are you running?

Docker container

Version

evcc version 0.120.3

StefanSchoof commented 11 months ago

The default poll.mode is charging. You need it to set on always, see https://docs.evcc.io/en/docs/reference/configuration/loadpoints/#pollmode

MikeTheTux commented 11 months ago

@StefanSchoof thanks, that's the trick! In parallel to our post I found the same lines in the config shared via #10269.

I extended #10220 with that info in order to improve the sample configuration / documentation.

andig commented 11 months ago

I would like to reopen this. I would argue that specifying a poll mode for an integrated device (i.e. one that does not have an attached vehicle with separate power supply) is unexpected.

I would suggest that integrated devices ignore the poll mode and allow polling every time (if possible even disregarding the cache setting).

Any objections?

/cc @VolkerK62

andig commented 11 months ago

Looking at the config this feels kinda bad: you have an integrated device (i.e. one that does NOT have a vehicle attached) but still have a vehicle associated at the loadpoint to have a device to provide soc.

If- instead- the charger (Shelly) had the ability to provide soc, we would already and unconditionally read and publish that.

I see two options:

  1. integrated devices ignore the poll mode and allow polling every time (as proposed above) OR
  2. implement the ability to decorate existing templates with additional capability (probably nothing short-term).

/cc @premultiply @naltatis

VolkerK62 commented 11 months ago

Any objections?

I agree. But, depending on the type of query, can this lead to any problems?

andig commented 11 months ago

Question translates to "under which scenario would an integrated device- that is always queried anyways- have a problem with one more query"? Imho that should be ok.