Skip to content
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

Invalid PI call #166

Closed
sancoli opened this issue Feb 21, 2025 · 8 comments
Closed

Invalid PI call #166

sancoli opened this issue Feb 21, 2025 · 8 comments

Comments

@sancoli
Copy link

sancoli commented Feb 21, 2025

Hi,
When I try to go there : https://ha101-1.overkiz.com/enduser-mobile-web/enduserAPI/login
I have this : {"errorCode":"INVALID_API_CALL","error":"Request method 'GET' not supported"}

And if I try this : https://{{url}}/enduser-mobile-web/enduserAPI/config/{{pod}}/local/tokens/generate
(with my URL and my "pod") : {"errorCode":"RESOURCE_ACCESS_DENIED","error":"Not authenticated"}

So what should I do? does it work?

@BernoldNL
Copy link

Hi, When I try to go there : https://ha101-1.overkiz.com/enduser-mobile-web/enduserAPI/login I have this : {"errorCode":"INVALID_API_CALL","error":"Request method 'GET' not supported"}

This API call requires POST, instead of GET. So it will not work, for example, from a browser. You will need a programming language that supports a POST method, or CURL, or an API tool like Postman or Insomnia.

And if I try this : https://{{url}}/enduser-mobile-web/enduserAPI/config/{{pod}}/local/tokens/generate (with my URL and my "pod") : {"errorCode":"RESOURCE_ACCESS_DENIED","error":"Not authenticated"}

So what should I do? does it work?

If you don't pass the first step, there is no point in trying the next step.
You really have to follow every step of https://github.com/Somfy-Developer/Somfy-TaHoma-Developer-Mode into detail.

@sancoli
Copy link
Author

sancoli commented Feb 24, 2025

Basicaly I just want to get a token for the HomeAssistant API. So there is no other way than developping a form to post those infos and get the token ? There must be an other way to do that ?

@iMicknl
Copy link

iMicknl commented Feb 24, 2025

If you use Home Assistant, you don't need to create your own token. If you use Somfy North America server, you will need to contact Somfy to request a token. See #151 (comment).

@sancoli
Copy link
Author

sancoli commented Feb 24, 2025

Thanks, I use europe server, is it the same?

@iMicknl
Copy link

iMicknl commented Feb 24, 2025

No. Why do you need to create a token if you are using Home Assistant?

@sancoli
Copy link
Author

sancoli commented Feb 24, 2025

It asks me for a token when I want to add it.

@iMicknl
Copy link

iMicknl commented Feb 24, 2025

Can you share a screenshot here?

@sancoli
Copy link
Author

sancoli commented Feb 27, 2025

Well I tried another way today and it worked, not sure what I was doing wrong last time, but I indeed didn't need the token this time.

@sancoli sancoli closed this as completed Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants