evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Since 0.203.0, custom forecast tariffs are zeroed.

Open wgentine opened this issue 1 year ago • 4 comments

Describe the bug

Something happened with the way that the custom forecast tariffs are read and now there's no error but everything is set to 0 now. I rolled back to 0.202.1 and everything is working.

Steps to reproduce

1.See my config below. 2. 3. ...

Configuration details

grid:
    type: custom
    forecast:
        jq: '[.data[] | { "start": ( .datum | strptime("%Y-%m-%d %H:%M:%S") | strftime("%Y-%m-%dT%H:%M:%SZ")), "end": ( .datum | strptime("%Y-%m-%d %H:%M:%S") | mktime + 3600 | strftime("%Y-%m-%dT%H:%M:%SZ")), "price": (.prijs | tonumber) }] | tostring'
        source: http
        uri: https://nodered.int.xxxxxxxx.com/frank-prices

------ the output of this url is:

{"status":"true","data":[{"datum":"2025-04-13 22:00:00","prijs":"0.239800"},{"datum":"2025-04-13 23:00:00","prijs":"0.235400"},{"datum":"2025-04-14 00:00:00","prijs":"0.234800"},{"datum":"2025-04-14 01:00:00","prijs":"0.234900"},{"datum":"2025-04-14 02:00:00","prijs":"0.236900"},{"datum":"2025-04-14 03:00:00","prijs":"0.248300"},{"datum":"2025-04-14 04:00:00","prijs":"0.279700"},{"datum":"2025-04-14 05:00:00","prijs":"0.323100"},{"datum":"2025-04-14 06:00:00","prijs":"0.314900"},{"datum":"2025-04-14 07:00:00","prijs":"0.262100"},{"datum":"2025-04-14 08:00:00","prijs":"0.244000"},{"datum":"2025-04-14 09:00:00","prijs":"0.225700"},{"datum":"2025-04-14 10:00:00","prijs":"0.214600"},{"datum":"2025-04-14 11:00:00","prijs":"0.209400"},{"datum":"2025-04-14 12:00:00","prijs":"0.209400"},{"datum":"2025-04-14 13:00:00","prijs":"0.221400"},{"datum":"2025-04-14 14:00:00","prijs":"0.233600"},{"datum":"2025-04-14 15:00:00","prijs":"0.248500"},{"datum":"2025-04-14 16:00:00","prijs":"0.272100"},{"datum":"2025-04-14 17:00:00","prijs":"0.358800"},{"datum":"2025-04-14 18:00:00","prijs":"0.320900"},{"datum":"2025-04-14 19:00:00","prijs":"0.259400"},{"datum":"2025-04-14 20:00:00","prijs":"0.235000"},{"datum":"2025-04-14 21:00:00","prijs":"0.233000"},{"datum":"2025-04-14 22:00:00","prijs":"0.236500"},{"datum":"2025-04-14 23:00:00","prijs":"0.230500"},{"datum":"2025-04-15 00:00:00","prijs":"0.225600"},{"datum":"2025-04-15 01:00:00","prijs":"0.225700"},{"datum":"2025-04-15 02:00:00","prijs":"0.221200"},{"datum":"2025-04-15 03:00:00","prijs":"0.219700"},{"datum":"2025-04-15 04:00:00","prijs":"0.234600"},{"datum":"2025-04-15 05:00:00","prijs":"0.253100"},{"datum":"2025-04-15 06:00:00","prijs":"0.258400"},{"datum":"2025-04-15 07:00:00","prijs":"0.223300"},{"datum":"2025-04-15 08:00:00","prijs":"0.200200"},{"datum":"2025-04-15 09:00:00","prijs":"0.144500"},{"datum":"2025-04-15 10:00:00","prijs":"0.142900"},{"datum":"2025-04-15 11:00:00","prijs":"0.141000"},{"datum":"2025-04-15 12:00:00","prijs":"0.144300"},{"datum":"2025-04-15 13:00:00","prijs":"0.195300"},{"datum":"2025-04-15 14:00:00","prijs":"0.235400"},{"datum":"2025-04-15 15:00:00","prijs":"0.252300"},{"datum":"2025-04-15 16:00:00","prijs":"0.262500"},{"datum":"2025-04-15 17:00:00","prijs":"0.293300"},{"datum":"2025-04-15 18:00:00","prijs":"0.302200"},{"datum":"2025-04-15 19:00:00","prijs":"0.269200"},{"datum":"2025-04-15 20:00:00","prijs":"0.257800"},{"datum":"2025-04-15 21:00:00","prijs":"0.248500"}],"code":"5"}

Log details

There are no errors.

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

No response

wgentine avatar Apr 14 '25 14:04 wgentine

Change price to value

https://github.com/evcc-io/evcc/pull/19182

SolarPower2024 avatar Apr 14 '25 15:04 SolarPower2024

Same here. I recognized that the "price" field is now called "value". Changing this and my chart showed up again.

ubarni avatar Apr 14 '25 15:04 ubarni

Thank you!

wgentine avatar Apr 14 '25 17:04 wgentine

Kann das bitte jemand in der Dokumentation anpassen und im Release bitte bei den Breaking Changes auflisten, ich suche jetzt schon ne Weile bei mir...

seh-len avatar Apr 15 '25 16:04 seh-len