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.
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. 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.
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
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 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?