Replies: 2 comments 2 replies
|
thanks for raising, yes YAML structures can catch people out and its critical to get it right there is a section at the top of the apps.yaml documentation that describes how the YAML should be formatted and links to an explainer video https://springfall2008.github.io/batpred/apps-yaml/#warning-appsyaml-file-format could you share how you had it mis-formatted and I can see if there is anything further to be added to the documentation. cheers |
|
Yeah sure, this is how it was formatted. This malformed yaml and the resulting issue must have been present since I set it up around mid-August, but the good weather and higher solar production masked it. It was only the past few days where actual solar production was significantly lower compared to the forecast did I realise something wasn't right. I presume the Predbat forecast solar integration would have only used the first key pair of the list which is the postcode to get the solar forecast. |
Uh oh!
There was an error while loading. Please reload this page.
Hi, firstly, thanks to everyone who has created and support this great product.
This is very much a nice to have request and I'm only raising it because it caught me out, and it may also catch others who aren't experts with yaml file syntax.
Is it possible to add validation, or at least explicit commentary to yaml lists, specifically where keys should reside within the same list.
This caught me out because under the forecast solar section I added a hyphen before each of the key pairs which was valid but seemingly caused the forecast data to be way higher than actual, probably because it was just going off the post code as that was the first key. This caused Predbat to not charge overnight during cheap slots and then rely on expensive slots during the day because nowhere near enough energy was generated by the solar, when Predbat thought there would be.
Anything to help users understand the syntax better when reading the commentary in the apps.yaml file could stop this happening for someone else.
Cheers.
All reactions