cannot create meter type - Sungrow: Fehler beim Starten - Konfiguration
Describe the bug
Fehler beim Starten der evcc App mit Sungrow Wechselrichter:
[main 1 FATAL 2026/01/22 13:45:22 meter [Sungrow_SH10.ORT_pv] cannot create meter 'Sungrow_SH10.ØRT_pv': cannot create meter type 'template: sungrow-hybrid': invalid key: timeout circuit cannot create circuit "main': not found: Sungrow_SH10. ORT_grid failed booting site: not found: Sungrow_SH10.ORT_grid [main 1 FATAL 2026/01/22 13:45:22 will attempt restart in: 15m0s
Steps to reproduce
evcc App - beim Start kommt direkt der Fehler
Configuration details
***einige Konfigurationen wurden über das UI vorgenommen, nicht in der yaml***
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: evcc.local
# port is the listening port for UI and api
# evcc will listen on all available interfaces
port: 7070
interval: 10s # control cycle interval. Interval <30s can lead to unexpected behavior, see https://docs.evcc.io/docs/reference/configuration/interval
# database configuration for persisting charge sessions and settings
# database:
# type: sqlite
# dsn: <path-to-db-file>
# sponsor token enables optional features (request at https://sponsor.evcc.io)
# sponsortoken: xxxx
# trial token, valid until 2024-10-18
sponsortoken: xxxxx
# telemetry enables aggregated statistics
#
# Telemetry allows collecting usage data (grid and green energy, charge power).
# Data is aggregated, no individual charging sessions are tracked. The collected,
# anonymous data can be retrieved using https://api.evcc.io.
#
# See https://github.com/evcc-io/evcc/pull/4343 or details.
#
# For time being, this is only available to sponsors, hence data is associated with
# the sponsor token's identity.
#
# telemetry: true
# log settings
log: info
levels:
site: debug
lp-1: debug
lp-2: debug
cache: error
db: error
# modbus proxy for allowing external programs to reuse the evcc modbus connection
# each entry will start a proxy instance at the given port speaking Modbus TCP and
# relaying to the given modbus downstream device (either TCP or RTU, RS485 or TCP)
modbusproxy:
# - port: 5200
# uri:
# # rtu: true
# # readonly: true # use `deny` to raise modbus errors
# meter definitions
# name can be freely chosen and is used as reference when assigning meters to site and loadpoints
# for documentation see https://docs.evcc.io/docs/devices/meters
meters:
- name: Sungrow_SH10.0RT_grid
type: template
template: sungrow-hybrid
usage: grid
# Modbus TCP
modbus: tcpip
id: 1
host: 192.168.178.105 # Hostname
port: 502 # Port
timeout: 5s # optional
- name: Sungrow_SH10.0RT_pv
type: template
template: sungrow-hybrid
usage: pv
# Modbus TCP
modbus: tcpip
id: 1
host: 192.168.178.105 # Hostname
port: 502 # Port
timeout: 5s # optional
- name: Sungrow_SH10.0RT_battery
type: template
template: sungrow-hybrid
usage: battery
# Modbus TCP
modbus: tcpip
id: 1
host: 192.168.178.105 # Hostname
port: 502 # Port
timeout: 5s # optional
- name: go-e_controller_grid
type: template
template: go-e-controller
usage: grid
host: 192.168.178.170 # IP-Adresse oder Hostname
- name: go-e-controller_pv
type: template
template: go-e-controller
usage: pv
host: 192.168.178.170 # IP-Adresse oder Hostname
# charger definitions
# name can be freely chosen and is used as reference when assigning charger to vehicle
# for documentation see https://docs.evcc.io/docs/devices/chargers
chargers:
- name: goe-e_charger
type: template
template: go-e-v3
host: 192.168.178.195 # IP-Adresse oder Hostname
# vehicle definitions
# name can be freely chosen and is used as reference when assigning vehicle to loadpoint
# for documentation see https://docs.evcc.io/docs/devices/vehicles
vehicles:
- name: MG-4-Luxury
type: template
template: mg
title: MG 4 Luxury # Wird in der Benutzeroberfläche angezeigt (optional)
user: [email protected] # Benutzerkonto (bspw. E-Mail Adresse, User Id, etc.)
password: XXXXX # Passwort des Benutzerkontos (bei führenden Nullen bitte in einfache Hochkommata setzen)
vin: XXXXX # Erforderlich
capacity: 64 # Akkukapazität in kWh (optional)
cache: 15m # Die Vorhaltezeit und Unterdrückungsdauer von externen Anfragen an die Fahrzeugdatenschnittstelle (API) (Standard: 15m) (MIT VORSICHT GENIEẞEN, DA SPERRUNG MÖGLICH VOM FAHRZEUGHERSTELLER)
# site describes the EVU connection, PV and home battery
site:
title: My Home # display name for UI
meters:
grid: Sungrow_SH10.0RT_grid # grid meter
pv:
- Sungrow_SH10.0RT_pv # list of pv inverters/ meters
battery:
- Sungrow_SH10.0RT_battery # list of battery meters
aux: # list of auxiliary meters for adjusting grid operating point
residualPower: 100 # additional household usage margin
# loadpoint describes the charger, charge meter and connected vehicle
loadpoints:
- title: Garage # display name for UI
vehicle: MG-4-Luxury # Standardfahrzeug
charger: goe-e_charger # charger
meter: # external charge meter (if charger has no meter included). NOT grid or pv meter.
mode: pv # default charge mode to apply when vehicle is disconnected; use "off" to disable by default if charger is publicly available
# remaining settings are experts-only and best left at default values
priority: 0 # relative priority for concurrent charging in PV mode with multiple loadpoints (higher values have higher priority)
soc:
# polling defines usage of the vehicle APIs
# Modifying the default settings it NOT recommended. It MAY deplete your vehicle's battery
# or lead to vehicle manufacturer banning you from API use. USE AT YOUR OWN RISK.
poll:
# poll mode defines under which condition the vehicle API is called:
# charging: update vehicle ONLY when charging (this is the recommended default)
# connected: update vehicle when connected (not only charging), interval defines how often
# always: always update vehicle regardless of connection state, interval defines how often (only supported for single vehicle)
mode: charging
# poll interval defines how often the vehicle API may be polled if NOT charging
interval:
estimate: true # set false to disable interpolating between api updates (not recommended)
enable: # pv mode enable behavior
delay: 2m # threshold must be exceeded for this long
threshold: -100 # grid power threshold (in Watts, negative=export). If zero, export must exceed minimum charge power to enable
disable: # pv mode disable behavior
delay: 5m # threshold must be exceeded for this long
threshold: 200 # maximum import power (W)
phases: 0
# tariffs are the fixed or variable tariffs
tariffs:
currency: EUR # (default EUR)
grid:
type: fixed
price: 0.2774 # EUR/kWh (default)
zones:
- days: Mo-So
hours: 0-5
price: 0.2774 # EUR/kWh
- days: Mo-So
hours: 5-24
price: 0.2774 # EUR/kWh
# or variable tariffs
# type: tibber
# token: "476c477d8a039529478ebd690d35ddd80e3308ffc49b59c65b142321aee963a4" # access token
# homeid: "cc83e83e-8cbf-4595-9bf7-c3cf192f7d9c" # optional if multiple homes associated to account
# type: awattar
# region: de # optional, choose at for Austria
# charges: # optional, additional charges per kWh
# tax: # optional, additional tax (0.1 for 10%)
# type: octopusenergy
# tariff: AGILE-FLEX-22-11-25 # Tariff code
# region: A # optional
# type: elering # Nordpool
# region: ee # or lt, lv, fi
# charges: # optional, additional charges per kWh
# tax: # optional, additional tax (0.1 for 10%)
# type: energinet # Energinet using the price in DKK
# region: dk1 # or dk2
# charges: # optional, additional charges per kWh
# tax: # optional, additional tax (0.1 for 10%)
# type: entsoe # Entso-E european market data
# domain: BZN|DE-LU # https://transparency.entsoe.eu/content/static_content/Static%20content/web%20api/Guide.html#_areas
# securitytoken: # api token
# charges: # optional, additional charges per kWh
# tax: # optional, additional tax (0.1 for 10%)
# type: pun # PUN - Prezzo unico nazionale - Hourly Italian wholesale prices
# charges: 0 # optional, additional charges per kWh
# tax: 0 # optional, additional tax (0.1 for 10%)
# type: amber
# token: # api token from https://app.amber.com.au/developers/
# siteid: # site ID returned by the API
# channel: general
# type: custom # price from a plugin source; see https://docs.evcc.io/docs/reference/plugins
# price:
# source: http
# uri: https://example.org/price.json
# jq: .price.current
feedin:
# rate for feeding excess (pv) energy to the grid
type: fixed
price: 0.0811 # [currency]/kWh
# type: octopusenergy
# tariff: AGILE-FLEX-22-11-25 # Tariff code
# region: A # optional
# type: amber
# token: # api token from https://app.amber.com.au/developers/
# siteid: # site ID returned by the API
# channel: feedIn
co2:
type: template
template: grünstromindex
zip: 21391
token: # Token für den Zugriff auf die API von https://console.corrently.io/ (optional)
# co2 tariff provides co2 intensity forecast and is for co2-optimized target charging if no variable grid tariff is specified
# type: grünstromindex # GrünStromIndex (Germany only)
# zip: <zip>
# type: electricitymaps # https://app.electricitymaps.com/map
# uri: <uri>
# token: <token> # needs to be a token with forecast (not in the free tier)
# zone: DE
# type: ngeso # National Grid Electricity System Operator data (Great Britain only) https://carbonintensity.org.uk/
# provides national data if both region and postcode are omitted - Choose ONE only!
# region: 1 # optional, coarser than using a postcode - The region details are at https://carbon-intensity.github.io/api-definitions/#region-list
# postcode: SW1 # optional - Outward postcode i.e. RG41 or SW1 or TF8. Do not include full postcode, outward postcode only
solar:
- type: template
template: api.akkudoktor.net
lat: 53.251446
lon: 53.251446
dec: 48
kwp: 7.56
az: 34
ac: 10
efficiency: 98.4
alphatemp: -0.003
albedo: 0.2
range: 0
horizon: 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
interval: 1h
- type: template
template: api.akkudoktor.net
lat: 53.251446
lon: 53.251446
dec: 8
kwp: 4.3
az: 33
ac: 10
efficiency: 98.4
alphatemp: -0.0029
albedo: 0.25
range: 0
horizon: 0,0,0,3,8,25,15,0,0,0,3,8,20,20,0,0,0,0
interval: 1h
# mqtt message broker
mqtt:
# broker: localhost:1883
# topic: evcc # root topic for publishing, set empty to disable
# user:
# password:
# influx database
influx:
# url: http://localhost:8086
# database: evcc
# user:
# password:
# 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
# eebus credentials for load transfer to evcc
telemetry: true
plant: 7d8dba788a2b7107da65794616cef45854751569159869834d97521aede05ede
telemetry.instanceId: 7d8dba788a2b7107da65794616cef45854751569159869834d97521aede05ede
# push messages
messaging:
events:
start: # charge start event
title: evcc - Ladevorgang gestartet
msg: |
in {{ if eq .mode "off" }}Aus{{ else if eq .mode "now" }}Schnell{{ else if eq .mode "min" }}Min+PV{{ else if eq .mode "pv" }}PV{{ end }}-Modus
Autobatterie: ${vehicleSoc:%.0f} % (${vehicleRange} km)
akt. PV-Ertrag: ${pvPower:%.0fk} kW / Speicher: ${batterySoc:%.0f} %
stop: # charge stop event
title: evcc - Ladevorgang gestoppt
msg: |
nach ${chargeDuration} & ${chargedEnergy:%.1fk} kWh geladen
Autobatterie: ${vehicleSoc:%.0f} % (${vehicleRange} km)
Kosten: {{ printf "%.2f" (or .sessionPrice 0.00) }} € / Sonne: ${sessionSolarPercentage:%.1f} %
connect: # vehicle connect event
title: evcc - E-Auto angeschlossen
msg: |
Willkommen Zuhause :)
Autobatterie: ${vehicleSoc:%.0f} % (${vehicleRange} km)
akt. PV-Ertrag: ${pvPower:%.0fk} kW / Speicher: ${batterySoc:%.0f} %
disconnect: # vehicle connected event
title: evcc - E-Auto getrennt
msg: |
Fahr vorsichtig :) ${chargedEnergy:%.1fk} kWh geladen
Autobatterie: ${vehicleSoc:%.0f} % (${vehicleRange} km)
Kosten: {{ printf "%.2f" (or .sessionPrice 0.00) }} € / Sonne: ${sessionSolarPercentage:%.1f} %
soc: # vehicle soc update event
title: evcc - E-Auto Ladestand
msg: |
Autobatterie: ${vehicleSoc:%.0f} % (${vehicleRange} km)
Speicher: ${batterySoc:%.0f} %
guest: # vehicle could not be identified
title: evcc - Unbekanntes Auto
msg: |
Unbekanntes Auto wurde verbunden
Gastfahrzeug ggf. in App auswählen!
services:
- type: pushover
app: XXX # API Token/Key der in Pushover angelegten Aplication
recipients:
- XXX # Liste der Empfänger: entweder User Key or Delivery Group. In Pushover angelegte Gruppen können auf bestimmte Geräte eingeschränkt werden.
devices:
- iphone15pro_Lenny
- iphone13promax_Nicole
# - type: pushover
# app: # app id
# recipients:
# - # list of recipient ids
# - type: telegram
# token: # bot id
# chats:
# - # list of chat ids
# - type: email
# uri: smtp://<user>:<password>@<host>:<port>/?fromAddress=<from>&toAddresses=<to>
# - type: ntfy
# uri: https://<host>/<topics>
# priority: <priority>
# tags: <tags>
Log details
[main 1 FATAL 2026/01/22 13:45:22 meter [Sungrow_SH10.ORT_pv] cannot create meter 'Sungrow_SH10.ØRT_pv': cannot create meter type
'template: sungrow-hybrid': invalid key: timeout circuit cannot create circuit "main': not found: Sungrow_SH10. ORT_grid failed booting site: not found: Sungrow_SH10.ORT_grid
[main 1 FATAL 2026/01/22 13:45:22 will attempt restart in: 15m0s
What type of operating system or environment does evcc run on?
Docker container
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
0.300.5
Wenn ich das richtig sehe, dann versteht er den Eintrag timeout nicht
Das ist erstmal auch kein in der Dokumentation (https://docs.evcc.io/docs/devices/meters#sh-series-hybrid-inverter) beschriebener Eintrag.
Einfach mal die Zeilen auskommentieren!
Wenn ich das richtig sehe, dann versteht er den Eintrag timeout nicht
Das ist erstmal auch kein in der Dokumentation (https://docs.evcc.io/docs/devices/meters#sh-series-hybrid-inverter) beschriebener Eintrag.
Einfach mal die Zeilen auskommentieren!
war aber nie ein Problem mit dem timeout
war aber nie ein Problem mit dem timeout
Ich habe den Timeout bei mir nie dringehabt und es war auch kein Problem (lief bisher ohne Probleme)
Und die Meldung
invalid key: timeout
sagt, dass er das nicht mag
war aber nie ein Problem mit dem timeout
Ich habe den Timeout bei mir nie dringehabt und es war auch kein Problem (lief bisher ohne Probleme)
Und die Meldung
invalid key: timeoutsagt, dass er das nicht mag
habe timeout mal rausgenommen.
Jetzt kommt noch folgendes im Log:
[main ] FATAL 2026/01/22 14:27:47 meter [Sungrow_SH10.0RT_battery] cannot create meter 'Sungrow_SH10.0RT_battery': cannot create meter type 'template:sungrow-hybrid': missing required maxchargepower failed booting site: not found: Sungrow_SH10.0RT_battery [main ] FATAL 2026/01/22 14:27:47 will attempt restart in: 15m0s
[main ] FATAL 2026/01/22 14:27:47 meter [Sungrow_SH10.0RT_battery] cannot create meter 'Sungrow_SH10.0RT_battery': cannot create meter type 'template:sungrow-hybrid': missing requiredmaxchargepowerfailed booting site: not found: Sungrow_SH10.0RT_battery [main ] FATAL 2026/01/22 14:27:47 will attempt restart in: 15m0s
maxchargepower: # Maximale Ladeleistung (W), Für erzwungenes Laden des Speichers. maxdischargepower: # Maximale Entladeleistung (W), Maximale Entladeleistung des Speichers.
Das sind (laut der weiter oben verlinkten Doku) für die Batterie notwendige Parameter.
Da musst Du mal in das Datenblatt vom Wechselrichter und ggf. von der Batterie schauen, was da bei Dir die richtigen Werte sind. Ich habe bei mir bei beiden 10000 drin stehen.
Die sonstigen Werte wie z.B. die Kapazität des Akkus und die beiden SoC-Angaben solltest Du sinnvollerweise auch gleich ausfüllen.
Okay mit folgenden Anpassungen in der yaml hats geklappt:
VORHER:
meters:
-
name: Sungrow_SH10.0RT_grid type: template template: sungrow-hybrid usage: grid
Modbus TCP modbus: tcpip id: 1 host: 192.168.178.105 # Hostname port: 502 # Port timeout: 5s # optional
-
name: Sungrow_SH10.0RT_pv type: template template: sungrow-hybrid usage: pv
Modbus TCP modbus: tcpip id: 1 host: 192.168.178.105 # Hostname port: 502 # Port timeout: 5s # optional
-
name: Sungrow_SH10.0RT_battery type: template template: sungrow-hybrid usage: battery
Modbus TCP modbus: tcpip id: 1 host: 192.168.178.105 # Hostname port: 502 # Port timeout: 5s # optional
NACHHER:
meters:
-
name: Sungrow_SH10.0RT_grid type: template template: sungrow-hybrid usage: grid
Modbus TCP modbus: tcpip id: 1 host: 192.168.178.105 # Hostname port: 502 # Port
-
name: Sungrow_SH10.0RT_pv type: template template: sungrow-hybrid usage: pv
Modbus TCP modbus: tcpip id: 1 host: 192.168.178.105 # Hostname port: 502 # Port
-
name: Sungrow_SH10.0RT_battery type: template template: sungrow-hybrid usage: battery
Modbus TCP modbus: tcpip id: 1 host: 192.168.178.105 # Hostname port: 502 # Port maxchargepower: 4500 # Maximale Ladeleistung (W), Für erzwungenes Laden des Speichers. maxdischargepower: 10600 # Maximale Entladeleistung (W), Maximale Entladeleistung des Speichers. capacity: 9.6 # Akkukapazität (kWh), optional minsoc: # Minimaler Ladestand (%), Untere Grenze beim Entladen der Batterie im normalen Betrieb (optional)
maxsoc: # Maximaler Ladestand (%), Oberes Limit beim Laden der Batterie aus dem Netz (optional)
VORGENOMMENE ÄNDERUNGEN AN DER YAML:
timeoutrausgenommenmaxchargepowerergänzt (habe die Daten aus der iSolarCloud App genommen)maxdischargepowerergänzt (habe die Daten aus der iSolarCloud App genommen)minsoc&maxsochabe ich nicht ergänzt > das regelt nach wie vor meine iSolarCloud App für mich (hoffe ich)
Vielleicht kann zu dem Punkt noch jemand was sagen. Die Punkte sind ziemlich sicher neu zur Dokumentation hinzugekommen.
Vielleicht kann zu dem Punkt noch jemand was sagen. Die Punkte sind ziemlich sicher neu zur Dokumentation hinzugekommen.
In der 0.211.1 ist folgender Eintrag zu finden: Sungrow: require maxchargepower
Allerdings nur unter "Other changes" und nicht unter "Breaking changes" (wo er vielleicht besser aufgehoben gewesen wäre.
Bei der 0.300.5 ist was zur "discharge power" unter "Breaking changes", aber nicht, dass das jetzt required ist.
Ich empfehle einfach präventiv alle Parameter (auch wenn man sie noch nicht verwendet) möglichst gewissenhaft zu füllen, sobald man von ihnen erfährt ;-)
Vielleicht kann zu dem Punkt noch jemand was sagen. Die Punkte sind ziemlich sicher neu zur Dokumentation hinzugekommen.
In der 0.211.1 ist folgender Eintrag zu finden: Sungrow: require maxchargepower
Allerdings nur unter "Other changes" und nicht unter "Breaking changes" (wo er vielleicht besser aufgehoben gewesen wäre.
Bei der 0.300.5 ist was zur "discharge power" unter "Breaking changes", aber nicht, dass das jetzt required ist.
Ich empfehle einfach präventiv alle Parameter (auch wenn man sie noch nicht verwendet) möglichst gewissenhaft zu füllen, sobald man von ihnen erfährt ;-)
joa bin eher so der Typ: Solange es läuft lese ich auch nicht mit haha.
Jetzt kam aber die panische Nachricht von Mama "ahhh die App läuft nicht mehr, die Sonne scheint und wir verschenken Sonne und Geld" :)
Ab morgen im nightly behoben, siehe 821f381e8ca11bafa6b08909f1657e49e1ad9c63. Wir empfehlen UI Konfiguration.