Overkiz API and Somfy API

I updated to the newest version. I now see the Somfy integration and need to authenticate it, but I get the error that the uri is not correct. I tried to setup a new Somfy app. With the new app I got an error saying that something went wrong and I should contact the Somfy service.
I tried also several urls cause my system is accessable from the outside. I am using a reverse proxy (NGINX) and fail2ban. I already tried to disable fail2ban, I also tried https://mydomain.de/auth/somfy/callback and also http://my_local_IP/auth/somfy/callback at the Somfy settings. I got always got the error that the uri is wrong. I checked the authentication link, it states my external domain. I have no glue why it won’t work. Any ideas?

Glad to see you solved your first issue.

What you configured is correct, and you have nothing else to do. On my side, during the development of the component and like several person here, for some reason Somfy returns an error about mismatch URL or even worse does not return anything except an error 500.

To be sure the problem is well related to Somfy, copy the URI of the page where you got the error about uri, paste it on this site and decode. You should see in the request the address of your HASS instance. It should be exactly the same you set in the Somfy Application.
If the URI are equals, please contact their support: https://developer.somfy.com/contact. Given them the URL where you got the issue and date, time and country.

I hope they will do something about this, it’s really annoying.

I don’t know what happened today, but it works! :smiley: I just checked again the link, did copy and validate it and then it worked …

Many thanks for your work @tetienne! Hope you can manage to integrate this into HA soon.

You probably don’t have any news for me? I try to write them, but from the first mail without a reaction … :frowning:

Glad to see it works for you too. So for sure the Somfy got some issue.

No update on my side too. Did you retry, it was ok for @azrael783?

Nothing for me. I tried complete delete all files, upload changed raw files and now show empty integration. :-/ Do you know, what wrong? I restarted many times.

Did you add also the file manifest.json?

Yes, i did.

Have any error log?

Only this “[homeassistant.loader] You are using a custom integration for somfy which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.”. Nothing else about somfy.

I fixed last error. I forgot translation.

I want to ask. Is it necessary to fill const.py with API data?

Sorry, I don’t understand your last question. You have always to get all the files I added on Github.

Hi, I still have an authentication error with somfy! “An error has occurred
Please try again. If the problem persists, please contact our technical support team.”

url is: https://accounts.somfy.com/oauth/oauth/v2/auth?response_type=code&client_id=RNE74XaWeIGXjSD2fQbf2bTXNxNY2mBed6rI2_p35IoZmlvK1HMvvBtChGVv6aMJ4Y8413KCu133MVMEHY25XA70&redirect_uri=http%3A%2F%2F192.168.10.70%3A8123%2Fauth%2Fsomfy%2Fcallback&state=WW5bfmBZ3AzMA4xrCN9mGEG2rhaSut

Is it necessary to fill file const.py DOMAIN, CLIENT_ID and CLIENT_SECRET using somfy API data? If yes, what fill like “domain”?
hdfhvr
nxqpz

Hi @Bojkas , you must not modify const.py
Your “Consumer Key” and “Consumer Secret” needs to be declared in configuration.yaml with this syntax
somfy:
client_id: YOUR_CONSUMER_KEY
client_secret: YOUR_CONSUMER_SECRET

Even better, you can use secrets.yaml to declare your keys, and then use
somfy:
client_id: !secret somfy_client_id
client_secret: !secret somfy_client_secret

And please, do not publicly post your Keys :wink:

I try everything I can. :frowning: I use secrets.yalm from begin.

I know, I showed only part of the keys. :wink:

Hi, i have same problem. Try contact support https://developer.somfy.com/contact. Send them this URL, time, date and country. Let as know, if help you.

As said @koomik, you don’t have to touch the code I wrote. Just update your configuration file as you already did.

Can you try to delete the application you created on Somfy portal and create a new one?
if you still have the same issue, indeed contact the Somfy support from their portal.