evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Version 0.130.0 - Startup Error - Cannot create meter type - Tesla Powerwall

Open manuelgruber opened this issue 1 year ago • 15 comments

Describe the bug

Since version 0.130.0 I get these error messages:

Error during startup. Check your configuration and restart. cannot create meter 'grid1': cannot create meter type 'template': cannot create meter type 'powerwall': 404 Not Found

(Get the errors for pv1 and battery1 as well)

Steps to reproduce

  1. Setup evcc with 0.129.0 with the attached evcc.yaml
  2. evcc is working
  3. Update to 0.130.0
  4. evcc shows "startup error"

Configuration details

# open evcc at http://evcc.local:7070
network:
  schema: http
  host: evcc.local # .local suffix announces the hostname on MDNS
  port: 7070

interval: 10s # control cycle interval
log: trace

site:
  title: Home
  meters:
    grid: grid1
    pv:
    - pv1
    battery:
    - battery1
  residualPower: 300


meters:
- type: template
  template: tesla-powerwall
  usage: grid
  host: 10.0.0.2
  password: Abc123
  name: grid1
  refreshToken: Abc123
- type: template
  template: tesla-powerwall
  usage: pv
  host: 10.0.0.2
  password: Abc123
  name: pv1
  refreshToken: Abc123
- type: template
  template: tesla-powerwall
  usage: battery
  host: 10.0.0.2
  password: Abc123
  name: battery1
  refreshToken: Abc123

...

Log details

[main ] INFO 2024/08/19 15:22:34 evcc 0.130.0
[main ] INFO 2024/08/19 15:22:34 using config file: /etc/evcc.yaml
[db ] INFO 2024/08/19 15:22:34 using sqlite database: /root/.evcc/evcc.db
[main ] INFO 2024/08/19 15:22:34 listening at :7070
[main ] FATAL 2024/08/19 15:22:36 cannot create meter 'grid1': cannot create meter type 'template': cannot create meter type 'powerwall': 404 Not Found
[main ] FATAL 2024/08/19 15:22:36 will attempt restart in: 15m0s

What type of operating system are you running?

Docker container

Version

0.130.0

manuelgruber avatar Aug 19 '24 13:08 manuelgruber

And some screenshots:

EVcc-StartupError-1 EVcc-StartupError-2 EVcc-StartupError-3

manuelgruber avatar Aug 19 '24 13:08 manuelgruber

FYI In the config I'm using 'tesla-powerwall', but the error refers to 'powerwall'.

manuelgruber avatar Aug 19 '24 13:08 manuelgruber

EVcc is starting again after I removed "refreshToken: Abc123"...

manuelgruber avatar Aug 19 '24 14:08 manuelgruber

Mach mal bitte ein trace log für powerwall

/cc @GrimmiMeloni

andig avatar Aug 19 '24 15:08 andig

Same issue here. if I remove "refreshToken: ..." line, the new "Netzladen" Tab is not available anymore as it was in the latest 0.129.0 nightlys.

... meters:

  • type: template template: tesla-powerwall usage: grid
    host: 192.168.2.xxx password: xxx

refreshToken: eyJh...

minSoc: 1
maxSoc: 100
name: grid1

  • type: template template: tesla-powerwall usage: pv
    host: 192.168.2.xxx
    password: xxx

refreshToken: eyJhb...

minSoc: 1
maxSoc: 100
name: pv2

  • type: template template: tesla-powerwall usage: battery
    host: 192.168.2.xxx
    password: xxx

refreshToken: eyJh...

minSoc: 1
maxSoc: 100
name: battery3

bill340 avatar Aug 19 '24 21:08 bill340

https://github.com/evcc-io/evcc/issues/15496#issuecomment-2296890985

andig avatar Aug 19 '24 21:08 andig

#15496 (comment)

Sorry, not familiar how to do this...

bill340 avatar Aug 19 '24 21:08 bill340

Cannot reproduce this, neither with 0.130.0 nor with 0.130.1

For reference here's my meter section from the configuration. Refresh token is only required on the battery meter.

meters:
- type: template
  template: tesla-powerwall
  usage: grid
  host: 192.168.3.38
  password: XXXXX
  name: grid1
- type: template
  template: tesla-powerwall
  usage: pv
  host: 192.168.3.38
  password: XXXXX
  name: pv2
- type: template
  template: tesla-powerwall
  usage: battery
  host: 192.168.3.38
  password: XXXXX
  name: battery3
  refreshToken: eyJ…
  minSoc: 20
  maxSoc: 95

GrimmiMeloni avatar Aug 20 '24 06:08 GrimmiMeloni

#15496 (comment)

Sorry, not familiar how to do this...

Adjust the logging section of evcc.yaml, adding a powerwall entry:

log: debug
levels:
  cache: error
  powerwall: trace

GrimmiMeloni avatar Aug 20 '24 07:08 GrimmiMeloni

Ok, I put in the refresh token only for the battery meter and it still works. But the "Netzladen" Tab is still missing.

bill340 avatar Aug 20 '24 08:08 bill340

#15496 (comment)

Sorry, not familiar how to do this...

Adjust the logging section of evcc.yaml, adding a powerwall entry:

log: debug
levels:
  cache: error
  powerwall: trace

Thanks! Where can I find the log then?

bill340 avatar Aug 20 '24 08:08 bill340

Ich habe gerade gesehen, auch die anderen Einstellungen auf der Batterie-Seite funktionieren nicht mehr richtig. Egal welchen %-Wert ich einstelle, es ändert nicht die Grafik. Das Lade-Verhalten funktioniert aber entsprechend den eingestellten Werten. Mit 0.129.0 hat das alles einwandfrei funktioniert. Bildschirmfoto 2024-08-20 um 10 39 04

bill340 avatar Aug 20 '24 08:08 bill340

Können wie bitte beim Thema bleiben? Danke!

andig avatar Aug 20 '24 09:08 andig

Für Token-Zugriff habe ich einen separaten Tesla-Account, der Zugriff auf meine Tesla-Produkte an Drittanbieter weitergibt.

Vor einigen Wochen habe ich dem Account den Powerwall-Zugriff entzogen. Und anscheinend meine EVcc-Instanz nicht mehr neugestartet. Ich vermute, dass das ist der Grund für die Fehlermeldung "Not found" ist. Also: Powerwall im Tesla-Account nicht gefunden. @andig @GrimmiMeloni Ist das der Grund?

Leider funktionieren die Einladungen zur Powerwall gerade irgendwie nicht... Werde es dann in den nächsten Tagen nochmal testen.

manuelgruber avatar Aug 20 '24 12:08 manuelgruber

Vor einigen Wochen habe ich dem Account den Powerwall-Zugriff entzogen.

Wie soll es dann funktionieren?

GrimmiMeloni avatar Aug 21 '24 05:08 GrimmiMeloni