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! 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 âŚ
Glad to see it works for you too. So for sure the Somfy got some issue.
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.â
Is it necessary to fill file const.py DOMAIN, CLIENT_ID and CLIENT_SECRET using somfy API data? If yes, what fill like âdomainâ?
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
I try everything I can. I use secrets.yalm from begin.
I know, I showed only part of the keys.
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.