Overkiz API and Somfy API

Still the same issue. HA ver. 0.95 and I make a new application at somfy webpage.

Thatā€™s really sad that for the official release of my component the Somfy server go crazy.
I have the same problem that all of you. Iā€™ve contacted again the support, hope they can do something quickly. Normalize, they answer me quickly.

1 Like

I got a response 2 days ago from SOMFY API - Support: ā€œWeā€™ll take a look.ā€ Nothing since thenā€¦ I hope they solve this quickly. Maybe if we regularly send emails to ask wether they found and solve the problem, they will finally see it as an important one?

Polish branch of the Somfy has only ONE (sic!) person who is responsible and has a knowledge, but he is on vacations now. No help at all.

I think the same. As you said perhaps they have to see we are a lot to use their API.
Meanwhile, I donā€™t know if itā€™s in their priority.

I also send them a message from dev site.
Interesting thing is that their api doesnā€™t work at the moment from Google Home. It could be the same bug. Wait and see

Same here.

@koomik Perhaps Google home use the Somfy API :sweat_smile:
On my side, I was finally able to login. I havenā€™t touch the configuration on the dev website. After that, everything works as expected.
But Iā€™m still expecting an answer from their support.

First of all, thank you for all the work put in to this component!

Unfortunatly im running into the same problems. At first i did get the ā€˜do you wish to authenticateā€™ screen with a Yes/No option. After that i would get an error of an invalid redirect URL. To make sure the Somfy app wasnt the problem i deleted it and created a new one. Now when trying to authenticate i immediatly get an error on the website. (accounts.somfy.com).

I just contacted Somfy by phone, and their answer was that they are moving things in the head office and that i should keep an eye on it for the next few daysā€¦

If any of you have any ideas to solve my problems that would be greatly appreciated.

Do you know what they mean by Head Office? Itā€™s interesting.

About your error, it can be due also to a bad configuration, double check your redirect URL. Compare the one you see URL encoded in your address bar and the one you have in the application. It can be a typo, https instead of http, etc.
You have the documentation here.

My URL is correct (https://mydomain.com//auth/somfy/callback). I have tested it also from url string with a urlencrypt/decript function in PHP.

If i go to this url from a browser i have this response:

500 Internal Server Error

Server got itself in trouble

is this response correct for a direct access from browser?

Yes, itā€™s normal to get such error when you call directly the callback URL without any parameter. Even once the component activated, you will get the same. There is no way today to disable this entry point.
So if you compared the redirect URL generated by the component and the one you have set up, issue come from Somfy side. It will not be the 1st time. I faced already this issue.
If you some Python skill, you can confirm using Pymfy.

No, i have no idea what he meant by it. It sounded a little weird, but i dont want to assume the worst of them, so maybe it is true.

I have checked the redirect URL, and tried all variants, http/https and by local IP and external DNS. None seemed to work. And now i cant get to that step because it immedialty throws an error on this URL:
https://accounts.somfy.com/oauth/oauth/v2/auth?client_id=[CLIENTID]&redirect_uri=[MY_CALLBACK_URL]&response_type=code&state=155e908ed0d94c4da0bcfc6b9060922b

For now i guess ill wait a few days like Somfy asked, and ill call them again if the problem still exists.

Somfy support answered me. They are working on a fix and they expect to deploy it quickly. Thatā€™s good news.

About your error, if you have the same message than this one, welcome on board, you are impacted by their bug.

Ah yes, thats the one! Strangely it occured after i deleted and recreated the app on the somfy site.
Nothing left then to wait then. Thank you for your quick replies!

@tetienne, same answer for me! Theyā€™re working on a fix and trying to deploy it asap.

@tetienne @vlebourl This morning it worked for me! The component configured successfully in HA.

Unfortunatly for me the next problem is now that it says there are no devices.
When testing the API from the Somfy Open API site, it does detect my Connexoon as a ā€˜siteā€™ but when retrieving the devices it returns an empty ā€˜statesā€™ and ā€˜capabilitiesā€™ array as shown in the attached screenshot.

The device im looking for us my sunscreen (im not sure what the correct translation for it is, its not a blind but a screen over my terrace). Any help would be greatly appreciated!

output

sorry i canā€™t helpā€¦ still not working for me :frowning:

Thatā€™s great you finally succeed to make it work. The sad news is that kind of the devices you want to control does not seems to be supported yet by the Somfy API. Their is nothing I can do on my site. You can again contact them and ask when they plan to implement it. It was also a kind of device Iā€™m interested in.
I agree, the supported list is really short compare to the unofficial API.

@tetienne Ah, yeah that makes sense. I will contact them and will respond back if they respond. I dont know the unofficial API, can i implement that in HA?

@vlebourl I have no idea if this is helpfull; but i created a new app on the API site yesterday, deleted the old one, altered the keys in de HA configuration and this morning it worked. Perhaps its just a coincidence, but worth a shot maybe.