Closed abc2006 closed 1 year ago
Cannot upload my .yaml file. Maybe you should allow this type, too.
`# open evcc at http://evcc.local:7070 network: schema: http host: evcc.local # .local suffix announces the hostname on MDNS port: 7070
log: debug levels: cache: error
plant: *
interval: 10s # control cycle interval
sponsortoken: *
telemetry: false mqtt: broker: 192.168.0.**
meters:
type: custom
name: grid
power:
source: mqtt
topic: tele/EINSPEISEZAEHLER/total_power
energy:
source: mqtt
topic: tele/EINSPEISEZAEHLER/total_energy_need
type: custom name: pv power: source: mqtt topic: tele/fsp10k/Solar_input_power_total energy: source: mqtt topic: tele/ERZEUGUNGSZAEHLER/total_energy_feed
type: custom name: batul power: source: mqtt topic: tele/jkbms_unten_links/1_Power_total scale: -1 energy: source: mqtt topic: tele/jkbms_unten_links/1_kWh_available soc: source: mqtt topic: tele/jkbms_unten_links/1_SOC_total capacity: 15
type: custom name: batur power: source: mqtt topic: tele/jkbms_unten_rechts/1_Power_total scale: -1 energy: source: mqtt topic: tele/jkbms_unten_rechts/1_kWh_available soc: source: mqtt topic: tele/jkbms_unten_rechts/1_SOC_total capacity: 15
chargers:
type: template
template: alfen
id: 1
host: 192.168.0.49
port: 502
modbus: tcpip
name: wallboxhof
type: template
template: alfen
id: 1
host: 192.168.0.174
port: 502
modbus: tcpip
name: wallboxgarage
modbusproxy:
loadpoints:
title: Hof charger: wallboxhof mode: pv phases: 0 mincurrent: 6 maxcurrent: 16 resetOnDisconnect: true guardduration: 1m vehicle: ev4
title: garage charger: wallboxgarage mode: pv phases: 0 mincurrent: 6 maxcurrent: 16 resetOnDisconnect: true guardduration: 1m
messaging: services:
type: telegram token: ***** chats:
events:
start: # charge start event
title: Charge started
msg: Started Charging in "${mode}" mode on Wallbox {{.title}} after {{.connectedDuration}}.
Status {{printf (%d-%02d-%02d %02d:%02d:%02d)
now.Year now.Month now.Day now.Hour now.Minute now.Second}}
evcc Status {{printf `(%d-%02d-%02d %02d:%02d:%02d)` now.Year now.Month now.Day now.Hour now.Minute now.Second}}
Geladene Netz-Energie: {{round (divf .chargedEnergy 1000) 0 }} kWh
Geladene Netz-Energie effizient: {{.savingsGridCharged}} Wh
Geladene PV-Energie: {{.savingsSelfConsumptionCharged}} Wh
Anteil Sonne in prozent: {{.savingsSelfConsumptionPercent}} Wh
Geladene Netz-Energie: {{.savingsTotalCharged}} Wh
{{if .batteryConfigured}}Batteriespeicher-Status: {{round (divf .batteryPower 1000) 3 }} kW ({{.batterySoc }} %){{end}}
soc:
title: title
msg: |
msg_soc ${.title} {{.title}}
guest: # unknown vehicle detected
title: unbekanntes Fahrzeug
msg: unbekanntes Fahrzeug an Wallbox ${.title} erkannt
site: title: mysite meters: grid: grid pv: pv battery:
Its either
{{.title}}
or
${title}
both forms are equivalent
Describe the bug
I tried to receive Values via messaging. the config line
soc: title: title msg: | msg_soc ${.title} {{.title}}
resolves tomsg_soc ${.title} Hof
where the string "Hof" is the actual title of the Wallbox.
According to the Examples https://docs.evcc.io/docs/reference/configuration/messaging#msg i believe this should already work.
Furthermore, it might be useful if you drop a word or a section to the "| Newline"-Behavior of the syntax.
I will go with the {{}} for now. Thank you, Stephan
Steps to reproduce
enter the string "msg_soc ${.title} {{.title}}" as Message into the config and start evcc
Configuration details
Log details
What type of operating system are you running?
Docker container
Version
0.116.5