Fehler beim Starten
Describe the bug
Bekomme seit heute folgenden Fehler: meter: [my_grid] cannot create meter 'my_grid': cannot create meter type 'template': cannot create meter type 'sma': login failed: no packet received in timeout
Habe eine SMA-Anlage, mit der noch bis gestern das Laden einwandfrei funktionierte. Einzige Änderung seit gestern Abend: Ich habe im Netzwerk einen 2,5 GBit-Switch installiert. - Das kann ja aber wohl nicht das Problem sein. - Die SMA-Weboberflächen erreiche ich alle einwandfrei. Bin momentan ratlos. - Habe auf dem RasPi, auf dem evcc installiert ist, schon ein Backup von letzter Woche eingespielt. - Kommt aber jetzt der gleiche Fehler.
Hoffe mir kann hier jemand helfen. VG Jürgen
Steps to reproduce
- Fehler kommt sofort nach dem Aufruf der evcc-Web-Oberfläche.
...
Configuration details
# open evcc at http://evcc.local:7070
# http://192.168.2.113:7070/#/
network:
schema: http
host: evcc.local # .local suffix announces the hostname on MDNS
port: 7070
log: debug
levels:
cache: error
# unique installation id
plant: f5864fe9e74964c965cc68d8c128d43ed788bcee6acb5aff99e491480a1a0900
interval: 10s # control cycle interval
sponsortoken:
# sponsors can set telemetry: true to enable anonymous data aggregation
# see https://github.com/evcc-io/evcc/discussions/4554
telemetry: false
meters:
# Sunny Home-Manager für die Messung von Einspeisung und Netzbezug
- name: my_grid
type: template
template: sma-home-manager
usage: grid
host: 192.x
# SMA Tri-Power Wechselrichter für die Messung der PV-Produktion
- name: my_pv
type: template
template: sma-hybrid
usage: pv
# Modbus TCP
modbus: tcpip
id: 3
host: 192.x # Hostname
port: 502 # Port
# SMA Sunny Island für Messung der Batteriebe- und entladung
- name: my_battery
type: template
template: sma-hybrid
usage: battery
# Modbus TCP
modbus: tcpip
id: 3
host: 192.x # Hostname
port: 502 # Port
chargers:
- type: template
template: smaevcharger
host: 192.x
user: xxxxx
password: xxxx
name: wallbox4
vehicles:
- name: eup
title: e!up
type: template
#template: vw
template: id
user: [email protected]
password: xxxxxx
vin: WVWZZZxxxxxxxx
capacity: 32.3 # kWh
phases: 2
#minSoc: 20 # es wird sofort mit höchstmöglicher Leistung bis zum angegeben Füllstand geladen, wenn der Modus nicht auf off steht
#targetSoc: 80 # bei Erreichen dieses Füllstandes wird die Ladung gestoppt
loadpoints:
- title: Ladesäule Garage
charger: wallbox4
mode: pv
# Max. über 3 Phasen laden
phases: 3
# Min. Ampere
mincurrent: 6
# Max. Ampere
maxcurrent: 16
#resetOnDisconnect: true
site:
title: xxxxx
meters:
grid: my_grid
pv: my_pv
battery: my_battery
#----- Handling des Batterie-Verhaltens https://docs.evcc.io/docs/reference/configuration/site/#buffersoc
#bufferSoc: 95 # Hausbatterie wird oberhalb Soc 95% als Puffer genutzt / Default = >100 = Die Batterie muss voll sein und voll bleiben
#prioritySoc: 90 # Hausbatterie bekommt bis zum Soc 90% Priorität beim laden / Default = 0 = Immer erst voll laden
# Damit wird die evcc-Verbindung zum Charger als eigenes Device im Sunny-Portal angezeigt.
#hems:
# type: sma
# AllowControl: false
tariffs:
currency: EUR # (default EUR)
grid:
# static grid price
type: fixed
price: 0.400 # [currency]/kWh
feedin:
# rate for feeding excess (pv) energy to the grid
type: fixed
price: 0.06 # [currency]/kWh
Log details
[main ] INFO 2025/09/26 12:28:14 evcc 0.207.6
[main ] INFO 2025/09/26 12:28:14 using config file: /etc/evcc.yaml
[db ] INFO 2025/09/26 12:28:14 using sqlite database: /var/lib/evcc/evcc.db
[main ] INFO 2025/09/26 12:28:14 UI listening at :7070
[lp-1 ] DEBUG 2025/09/26 12:28:21 charge total import: 3138.137kWh
[main ] FATAL 2025/09/26 12:28:21 meter [my_grid] cannot create meter 'my_grid': cannot create meter type 'template': cannot create meter type 'sma': login failed: no packet received in timeout
failed booting site: not found: my_grid
[main ] FATAL 2025/09/26 12:28:21 will attempt restart in: 15m0s
What type of operating system or environment does evcc run on?
Linux
External automation
- [x] I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.
Nightly build
- [x] I have verified that the issue is reproducible with the latest nightly build
Version
evcc version 0.207.6
Manchmal kommt auch ein Speedwire-Fehler:
[main ] FATAL 2025/09/26 12:47:51 meter [my_grid] cannot create meter 'my_grid': cannot create meter type 'template': cannot create meter type 'sma': failed to get device: no Speedwire ping response for 192.xxxx failed booting site: not found: my_grid
Die SMA-Komponenten sind aber im Portal alle auf "grün", also verbunden. - Speedwire sollte also funktionieren.
Das dürfte tatsächlich am Switch liegen, ist ein typisches Problem mit speedwire, die Verbindung ins web sollte davon unabhängig sein. Ist der Rechner auf dem evcc läuft direkt mit am gleichen Switch wie der Home Manager?
Nein, der evcc-Rechner (RasPi) hängt an einem anderen Switch.
Häng mal beide an den gleichen.
Funktioniert! - Wahnsinn! - Wer kommt denn auf sowas!? Vielen Dank für die Hilfe!