evcc-io / evcc

Sonne tanken ☀️🚘
https://evcc.io
MIT License
3.35k stars 613 forks source link

${.title} does not substitute #7696

Closed abc2006 closed 1 year ago

abc2006 commented 1 year ago

Describe the bug

I tried to receive Values via messaging. the config line
soc: title: title msg: | msg_soc ${.title} {{.title}} resolves to msg_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

abc2006 commented 1 year ago

Cannot upload my .yaml file. Maybe you should allow this type, too.

abc2006 commented 1 year ago

`# 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

unique installation id

plant: *

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 mqtt: broker: 192.168.0.**

meters:

chargers:

modbusproxy:

loadpoints:

messaging: services:

site: title: mysite meters: grid: grid pv: pv battery:

andig commented 1 year ago

Its either

{{.title}}

or

${title}

both forms are equivalent