evcc: New UI does not automatically refresh after longer period inactivity

Describe the bug

I have EVCC as a “web app” on the homescreen of iOS (https://www.makeuseof.com/tag/add-website-shortcuts-iphone-home-screen/).

However, after a longer period of time (+12h) when you open the EVCC app it does not update the values anymore and the buttons for the charging points (stop/now/min/pv) also don’t work.

If I force close the “app” and restart it the values are updating again

Steps to reproduce

Install EVCC Add EVCC local website to your homescreen on iOS (https://www.makeuseof.com/tag/add-website-shortcuts-iphone-home-screen/) Launch EVCC “app” Wait +12h Launch EVCC “app”

Configuration details

interval: 1s

site:
- title: Allspark
  meters:
    grid: HuisMeter
    pvs:
    - pvHuis
    - pvTuinHuis
  residualpower: 100

messaging:
  events:
    start:
      title: Laadbeurt gestart
      msg: Er is een laadbeurt gestart op xxxx
    stop:
      title: Laadbeurt gestopt
      msg: |
        Oplader {{.title}} heeft een laadbeurt voltooid
        Er is {{round (divf .chargedEnergy 1000) 2 }} kWh geleverd op {{.chargeDuration}}.
    connect:
      title: Wagen aangesloten op xxx
      msg: Er is een auto aangesloten op de lader in xxxx
    disconnect:
      title: Wagen ontkoppeld op xxxx
      msg: De wagen is ontkoppeld van de lader in xxxxx
  services:
    - type: telegram
      token: xxxxxxx:xxxxxxxxxxxxxxxxxxxx
      chats:
        - -xxxxxxx

tariffs:
  currency: EUR # (default EUR)
  grid:
    # static grid price
    type: fixed
    price: 0.28 # [currency]/kWh

  feedin:
    # rate for feeding excess (pv) energy to the grid
    type: fixed
    price: 0.12 # [currency]/kWh

meters:
  - name: HuisMeter
    type: modbus
    model: sdm # specific non-sunspec meter
    id: 1
    energy: Sum # only required for charge meter usage
    #via TCP:
    uri: 192.168.4.184:8899
    rtu: false # serial modbus rtu (rs485) device connected using simple ethernet adapter
  - name: pvHuis
    type: sma
    uri: 192.168.4.230
    password: xxxxxx
  - name: pvTuinHuis
    type: sma
    uri: 192.168.4.231
    password: xxxxxx


sponsortoken: xxxxxx

log: debug
levels:
    core: debug

influx:
  url: http://192.168.y.x:xxxx
  database: EVCC
  token: "xxxxxxxx=="
  org: "xxxxx"

chargers:
- name: ChargingPointAlfen
  type: alfen
  uri: 192.168.4.178 # TCP ModBus address

loadpoints:
- title: Alfen # display name for UI
  charger: ChargingPointAlfen # Wallbox Referenz
  vehicles:
  mode: now # charge mode (off, now, minpv, pv)
  phases: 3
  mincurrent: 6
  maxcurrent: 16

vehicles:

Log details

/

What type of operating system are you running?

Linux

Version

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (11 by maintainers)

Most upvoted comments

👆 I’ve introduces a dedicated offline indicator. It will help debug this issue but is also a general improvement since evcc usually only works in your lokal network.

@naltatis with the previous GUI I didn’t notice it as to be a thing with EVCC, because I went out of the house, lost connection etc, but even then I didn’t experience it (or maybe once that I still know of), but now with the new GUI it’s every morning or evening.

Thanks for the issue. I’ve noticed similar effects from time to time - even with the previous design. I’ll try to reliably recreate this issue to come up with a solid fix. If you’re able to reproduce it (without waiting > 12h) please let me know 😁.