docs(iobroker): clarify rest-api adapter requires webInstance config - #33088
docs(iobroker): clarify rest-api adapter requires webInstance config#33088github-actions[bot] wants to merge 1 commit into
Conversation
|
@kscholty I would have expected this to have been resolved by now, but apparently it isn't? |
|
@kscholty I would have expected this to have been resolved by now, but apparently it isn't? Worse, this is apparently
We can either
Which would you prefer? Happy to take a PR. |
|
I'm happy to help, but I don't get the point. I recently created 2 PRs to change the documentation to make this point clear. #32816 was not merged, while #32817 was. So the charger has been corrected, while the meter has not. What does BMW have to do with that and what do you mean with "directly"? Can you point me to a resource that explains that point? There are two ways to set up the rest adapter. Either stand-alone or as an extension to the Web adapter. |
|
Ah, thought this was a duplicate: #32816 (comment). Never got a response after that.
Sure: https://github.com/evcc-io/evcc/blob/master/templates/definition/vehicle/ioBroker.bmw.yaml This has existed for a long time and never got any issues regarding the URL.
I get that. It does however seem as if the "web adapter extension" is more surprising than the other variant? |
fixes #33087
The
IOBROKERmeter template always builds requests as/rest-api/v1/state/<state>/plain. This path only exists when the ioBrokerrest-apiadapter is configured with awebInstance(e.g.web.0) and is thereby served through the ioBroker Web Adapter. Without that, therest-apiadapter's own port serves/v1/state/...directly (no/rest-api/prefix), so evcc's requests return 404 while the endpoint itself works fine outside evcc.This adds a note to the German and English template descriptions clarifying that
webInstancemust be set and that the Web Adapter's host/port must be used as the evcc URI.🤖 Generated with Claude Code