evcc icon indicating copy to clipboard operation
evcc copied to clipboard

yaml construct error on empty/comment-only stream

Open andig opened this issue 7 months ago • 10 comments

Can't disable External Limit anymore. Always did so by commenting type and ski: image

Also trying to save empty does not work.

Originally posted by @CiNcH83 in https://github.com/evcc-io/evcc/issues/29052#issuecomment-4379844017

andig avatar May 05 '26 15:05 andig

Problem with nightly 3a99f7d still open.

Image

hybe2022 avatar May 06 '26 04:05 hybe2022

Yes. Does not seem to be fixed. Neither saving (only) comment lines nor empty works with current nightly.

CiNcH83 avatar May 06 '26 07:05 CiNcH83

@CiNcH83 specifically saving what- the hems config? something else?

andig avatar May 06 '26 07:05 andig

I only tried with hems config.

CiNcH83 avatar May 06 '26 07:05 CiNcH83

I was able to find a workaround for the moment being:

  1. Edit the External Limit
  2. Comment/wipe the content
  3. Add []
  4. Save
Image

The issue seems to be only popping up when no content is present (or everything is commented).

thomaspetit avatar May 06 '26 19:05 thomaspetit

I was able to find a workaround for the moment being:

  1. Edit the External Limit
  2. Comment/wipe the content
  3. Add []
  4. Save
Image The issue seems to be only popping up when no content is present (or everything is commented).

Workaround does not work for the Tariff and Forecast section in the Config UI. It still sees the yaml, and does not trigger the Wizard/Form based config of Tariff and Forecast.

Getiem avatar May 07 '26 08:05 Getiem

At least hems config is fixed with today's nightly. So guess you'll have to wait for the next release...

CiNcH83 avatar May 07 '26 08:05 CiNcH83

I was able to find a workaround for the moment being:

1. Edit the External Limit

2. Comment/wipe the content

3. Add `[]`

4. Save

This workaround worked for me in v0.306.2.

georgekue avatar May 08 '26 07:05 georgekue

306.3 fixed it completely now for Forecast section too. No workaround needed, just save empty.

Getiem avatar May 08 '26 07:05 Getiem

Halleluja. Migrating to the newer library version was much more painful than expected…

andig avatar May 08 '26 08:05 andig