Overkiz API and Somfy API

I believ the 2 week issue, is because the api token is only valid for 2 weeks, then it needs to refresh it. And if the API then doesnt work, your screwed. :frowning:

You are right. Normally the component handle the token refresh automaticaly. But indeed, if the Somfy servers are down every 2 weeks we are screwed :S

On my side, situation is back to normal.

I still canā€™t setup the component via HASS, gives the dreaded error. Does this work for anyone now? Iā€™m not sure if the problem is misconfiguration on hass side, or their. Maybe somehow the callback doesnt work, yet i still dont see any traffic back to that url.

Or possible a regional problem with accountsā€¦

not working on my sideā€¦

Does not seems to be regionnal. I live in France and @vlebourl also (fix me if Iā€™m wrong), itā€™s ok for me but not for him. We didnā€™t get any answer from their support or on the forum seems quite long.
Did you try to delete your application and create a new one on https://developer.somfy.com/?

Thatā€™s right. Iā€™m trying to connect from Switzerland and France, but neither is working, despite deleting and recreating the app multiple timesā€¦

Same here, it does not work, I donā€™t even have the api key section in my ā€œaccountā€ page. I think there is an issue with this too.

I have tried several times. Both with local, and external callback URLs, different browsers( and private mode), on my mobile from outside, etc. etc. :smiley: Nada.

I get the error by default in french, but thats problably due to the ā€œlocaleā€ being set to fr in the global somfy accounts page (does not let me change it). I guess that doesnā€™t matter. (I live in Norway)

Yeah, I donā€™t have the API section in the account page either. Not sure if this is related, maybe those who it works for, can check if they have that or not.

1 Like

Hi, iā€™m sad to here so many problem about the Somfy API. For information, il live in France, and everything is working for me.
Iā€™ve just upgraded HA to 0.98.2 and no problem, btw i kept my previous working config.
To answer @ktpx , yes i have my API Key under the API section of ā€œmy accountā€ (it seems to be the beginning of the Consumer Key from the App)
I donā€™t know when or why this API section is filled. It appears that itā€™s not when you create the App on developer.somfy.com
Maybe only when you reach to connect HA to Api

Iā€™m in France too and I never managed to make it work :frowning:

Thatā€™s sad, seeing how many people use SOmfy motors. I wonder if the (terrible) apps they have, use this API, or something else.

Just curious. Did you manage to set it up with external or internal IP (or hostname) in the callback url (as defined in the created app on the dev site).

Only with internal, because I donā€™t (yet) want to open HA outside

Ok.

Not sure if this is ā€œnormalā€ but hass gives http 500 (internal server error) when I try to access the callback url duing the processā€¦

Did you try to call the callback url manually? Or did you get the 500 once you confirm the Somfy windows?

Yeah i just went to https://ā€¦myserverā€¦/auth/somfy/callback to test what happened, manually, to see what I gotā€¦but normally that call would have more data most likely, so its not a real indication that something is wrong on this end. I dont know :smiley: But I think the somfy api fails even before it tries to send the access tokenā€¦ it must do some internal checking, which fails and just gives that dumb error.

Bonjour @tetienne,

Any chance you add support for other devices? And more specifically for the Somfy Protect (ex Myfox) alarm? Thatā€™s the device type returned by the API: myfox:SomfyProtectAlarmController

Thanks!

Could I get some help with this?