evcc
evcc copied to clipboard
Messaging in Telegram - fehlende Werte
Describe the bug
Hallo Team,
ich habe mir für EVCC das Messaging mit Telegram eingerichtet. Initial hat das mehrere Monate fehlerfrei funktioniert und wurde von mir nicht verändert, allerdings fehlen seit mehreren Releases in meinen Benachrichtigungen Werte; in der Nachricht werden sie mit
Beispiele der fehlerhaften Ausgaben:
Wallbox Garage beendet Laden des VWID3 mit 0 kWh und Ladestand <no value>% nach 41m0s.
-----------------------------------
Aktueller System-Status (22-02-2023 09:15:58)
Netz-Leistung (-=Einsp.): 1.01 kW
Solar-Leistung: 4.111 kW
Hausverbrauch (ohne WB): 5.121 kW
Batteriespeicher: 0 kW (<no value>%)
Wallbox Garage startet Laden des VWID3 im Modus MINPV mit <no value> Phase(n) und 0.07 kW Leistung.
Aktueller Ladestand <no value>%, Zielladestand <no value>%.
-----------------------------------
Aktueller System-Status (22-02-2023 08:35:18)
Netz-Leistung (-=Einsp.): 2.618 kW
Solar-Leistung: 2.674 kW
Hausverbrauch (ohne WB): 3.705 kW
Batteriespeicher: -1.52 kW (<no value>%)
Darüber hinaus gibt es noch einen Rundungs- bzw. Dezimalstellenfehler bei der Ausgabe der Variable connectedDuration , siehe folgende Ausgabe erste Zeile:
VWID3 ausgesteckt aus Wallbox Garage nach 4h58m20.002997282s mit Ladestand <no value>% und vorauss. Reichweite 226km.
-----------------------------------
Aktueller System-Status (21-02-2023 17:52:08)
Netz-Leistung (-=Einsp.): -0.058 kW
Solar-Leistung: 0 kW
Hausverbrauch (ohne WB): 1.253 kW
Batteriespeicher: 1.31 kW (<no value>%)
Steps to reproduce
- Messaging anhand der Vorlage der EVCC-Doku in der Config einrichten
- EVCC starten
- Events (laden starten/beenden, Auto ausstecken/einstecken)
- fehlerhafte Meldungen geniessen ...
Configuration details
# open evcc at http://evcc.local:7070
# SMA DeviceID F-28081973-6477f5b6a6d1-00
network:
schema: http
host: evcc.local # .local suffix announces the hostname on MDNS
port: 7070
log: info
levels:
site: info
lp-1: debug
sma: debug
VWID3: info
cache: error
interval: 10s # control cycle interval
sponsortoken: *****
telemetry: true
meters:
- name: my_grid
type: template
template: sma-home-manager
usage: grid
host: 192.168.0.157 # IP-Adresse oder Hostname
- name: my_pv
type: template
template: sma-inverter
usage: pv
host: 192.168.0.158 # IP-Adresse oder Hostname
password: *****
- name: my_pv2
type: template
template: sma-inverter
usage: pv
host: 192.168.0.159 # IP-Adresse oder Hostname
# password: *****
#- name: SunnyBoy
# type: sma
# serial: *****
#- name: shm2
# type: sma
# uri: 192.168.0.157
#serial: *****
#- name: SunnyTriPower
# type: sma
# serial: *****
# password: *****
## temporär rausgenommen da Akku im Winter nicht genutzt wird
- name: SunnyIsland
type: sma
uri: 192.168.0.76
chargers:
- name: Eddys_Easee
type: template
template: easee
user: *****
password: *****
charger: EHDA***
loadpoints:
- title: Garage # display name for UI
charger: Eddys_Easee # Wallbox Referenz
vehicle: ev5 # Referenz auf Standardfahrzeug
mode: pv # charge mode (off, now, minpv, pv)
resetOnDisconnect: true
phases: 0
vehicles:
- type: template
template: id
title: VWID3
user: *****
password: *****
vin: *****
capacity: 58
name: ev5
targetSoC: 100 # im Sommer eher 85%
tariffs:
currency: EUR # (default EUR)
grid:
# static grid price
type: fixed
price: 0.432 # [currency]/kWh
feedin:
# rate for feeding excess (pv) energy to the grid
type: fixed
price: 0.08814 # [currency]/kWh
planner:
type: grünstromindex
zip: 73453
site:
title: Zuhause
meters:
grid: my_grid
pvs:
- my_pv
- my_pv2
batteries:
- SunnyIsland
residualPower: 100
bufferSoC: 90 #oberhalb 90% SoC wird Batterie bei ungenügendem Überschuss zum EV-Laden mitverwendet
prioritySoC: 75 #unterhalb 75% SoC wird Batterie vor EV mit Überschuss geladen
hems:
type: sma
AllowControl: false
# Message config using evcc go-text-template rendering, evcc variables and sprig-functions
messaging:
services:
- type: telegram
token: *****
chats: *****
- 50174****
events:
start: # charge start event
title: Charge of {{.vehicleTitle}} started
msg: |
Wallbox {{.title}} startet Laden des {{.vehicleTitle}} im Modus {{ toString .mode | upper }} mit {{.activePhases}} Phase(n) und {{round (divf .chargePower 1000) 2 }} kW Leistung.
Aktueller Ladestand {{.vehicleSoC}}%, Zielladestand {{.targetSoC}}%.
-----------------------------------
Aktueller System-Status {{printf `(%02d-%02d-%d %02d:%02d:%02d)` now.Day now.Month now.Year now.Hour now.Minute now.Second}}
Netz-Leistung (-=Einsp.): {{round (divf .gridPower 1000) 3 }} kW
Solar-Leistung: {{round (divf .pvPower 1000) 3 }} kW
Hausverbrauch (ohne WB): {{round (divf .homePower 1000) 3 }} kW
{{if .batteryConfigured}}Batteriespeicher: {{round (divf .batteryPower 1000) 3 }} kW ({{.batterySoC }}%){{end}}
stop: # charge stop event
title: Charge of {{.vehicleTitle}} finished
msg: |
Wallbox {{.title}} beendet Laden des {{.vehicleTitle}} mit {{round (divf .chargedEnergy 1000) 2 }} kWh und Ladestand {{.vehicleSoC}}% nach {{.chargeDuration}}.
-----------------------------------
Aktueller System-Status {{printf `(%02d-%02d-%d %02d:%02d:%02d)` now.Day now.Month now.Year now.Hour now.Minute now.Second}}
Netz-Leistung (-=Einsp.): {{round (divf .gridPower 1000) 3 }} kW
Solar-Leistung: {{round (divf .pvPower 1000) 3 }} kW
Hausverbrauch (ohne WB): {{round (divf .homePower 1000) 3 }} kW
{{if .batteryConfigured}}Batteriespeicher: {{round (divf .batteryPower 1000) 3 }} kW ({{.batterySoC }}%){{end}}
connect: # vehicle connect event
title: "{{.vehicleTitle}} connected on wallbox {{.title}}"
msg: |
{{.vehicleTitle}} mit Ladestand {{.vehicleSoC}}% verbunden mit Wallbox {{.title}} bei aktuell {{round (divf .pvPower 1000) 2 }} kW PV-Leistung.
-----------------------------------
Aktueller System-Status {{printf `(%02d-%02d-%d %02d:%02d:%02d)` now.Day now.Month now.Year now.Hour now.Minute now.Second}}
Netz-Leistung (-=Einsp.): {{round (divf .gridPower 1000) 3 }} kW
Solar-Leistung: {{round (divf .pvPower 1000) 3 }} kW
Hausverbrauch (ohne WB): {{round (divf .homePower 1000) 3 }} kW
{{if .batteryConfigured}}Batteriespeicher: {{round (divf .batteryPower 1000) 3 }} kW ({{.batterySoC }}%){{end}}
disconnect: # vehicle connected event
title: "{{.vehicleTitle}} disconnected of wallbox {{.title}}"
msg: |
{{.vehicleTitle}} ausgesteckt aus Wallbox {{.title}} nach {{.connectedDuration}} mit Ladestand {{.vehicleSoC}}% und vorauss. Reichweite {{.vehicleRange}}km.
-----------------------------------
Aktueller System-Status {{printf `(%02d-%02d-%d %02d:%02d:%02d)` now.Day now.Month now.Year now.Hour now.Minute now.Second}}
Netz-Leistung (-=Einsp.): {{round (divf .gridPower 1000) 3 }} kW
Solar-Leistung: {{round (divf .pvPower 1000) 3 }} kW
Hausverbrauch (ohne WB): {{round (divf .homePower 1000) 3 }} kW
{{if .batteryConfigured}}Batteriespeicher: {{round (divf .batteryPower 1000) 3 }} kW ({{.batterySoC }}%){{end}}
Log details
kein Log erforderlich da im Log keine Fehler enthalten
What type of operating system are you running?
Linux
Version
Version: 0.112.5
s/SoC/Soc
Wir haben die Schreibweise global geändert.