-
Notifications
You must be signed in to change notification settings - Fork 21
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
Charger configuration sliders not updatable with Zaptec Go 2 #163
Comments
Possibly (and I'm guessing) these two values are not settable on this type of changer. In the "installation" device there is an entity named "Available current". Are you able to adjust that to set the current? That's what I'm using when regulating the charge current for my car. I leave the charger min/max untouched. The reason they're stuck is because Zaptec portal is rejecting the value. |
Thanks for the quick reply! These values are adjustable in the Zaptec Portal by the same user, so they ought to be settable via the API (unless something is wrong there). If the API isn't allowing these values to be adjusted, that's an error on Zaptec's side, so I'll report this to the Zaptec API team. (Editing installation current setting does work for me, but I'm not managing the current that way right now for other reasons...) |
It's interesting if setting the min / max current in the Zaptec portal is working, but it does not from HA. HA Zaptec is using the official method. If that isn't working, then I suspect the Zaptec portal is using another undocumented method to set the values. We have a few of that unfortunately. Here is the official documentation for the command and you can read what Zaptec sais about it: |
Hmm. I just tried setting the max current manually via the Swagger interface and it works just fine. So I'm not sure why it's not working via Home Assistant. |
Hmm, I think it might not, actually. The entities are defined here: zaptec/custom_components/zaptec/number.py Lines 152 to 175 in 2ea22da
And value is set here (with focus on L89): zaptec/custom_components/zaptec/number.py Lines 77 to 95 in 2ea22da
And it seems like its using settings, not update: zaptec/custom_components/zaptec/api.py Lines 675 to 690 in 2ea22da
So I'm starting to believe this is an issue that should be fixed in our end. I'm going to travel the next couple of weeks, so I won't have any opportunity to look at this thou. |
Ah, that would explain it! If HA is using settings, then the results are not guaranteed. Certainly not an urgent issue. However it's very helpful to understand a bit more about how HA is (currently) doing this. |
I am testing Home Assistant with the new Zaptec Go 2 charger and everything seems to work fine apart from the "Configuration" pane: the current values are reported correctly, but cannot be changed with the sliders (which are stuck at zero):
The same account works as expected with a Zaptec Go charger:
I cannot see anything unusual in the debug logs and (to the best of my knowledge) the API has not changed for Go 2.
I am happy to provide debug logs (or give remote access to a Go 2 charger) if you'd like to investigate further...
The text was updated successfully, but these errors were encountered: