-
-
Notifications
You must be signed in to change notification settings - Fork 675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
solax-inverter-cloud template: tokenid needs quotes, no error handling #17227
Comments
In addition to adjusting the docs, which I will do, I wonder about error handling in general. It is misleading to output a power value of 0, which could be a real value, instead an error should be raised. How can an error be raised in this case for this template? I checked some others but could not see a mechanism. The API HTTP response is 200, perhaps an error would be raised if it wasn't? |
That's a good point. One approach could be for the templates to extract data using JQ and- if data not available return something else ("error" string) that will trigger an upstream parsing error that is then returned.
Wondering where that does wrong. Anyway, using quotes to make this disambiguous in yaml is generally best practice and should not be required to be documented per template. |
Would it be feasible to come up with a common way of doing that for all templates to use? (and document it) I could fix it in the Solax template then.
It's easy to forget though here. Usually it's not an issue since tokens often also contain characters. |
They appear to have changed. Also, it's important to put the tokenID in quotes, otherwise it gets interpreted as a number. Issue evcc-io#17227
I have pushed #17281, also updating the instructions which seem to have changed. |
Describe the bug
pv value is always 0
Reason:
Solution:
ToDo:
Steps to reproduce
Configuration details
See above
Log details
What type of operating system are you running?
Linux
Nightly build
Version
No response
The text was updated successfully, but these errors were encountered: