Overkiz API and Somfy API

today it stopped working again. is it just me or someone else?

Same for me. It was OK yesterday.

Yes, Yesterday was ok. Api says me "
The Service is temporarily unavailable". So we JUST wait.

Somfy replied to my reminder!
Here is the conversation (regarding adding support for Connexoon IO Hub)

Hello,

I have reported your need to my managers and hopefully they will decide to invest in this evolution but I cannot guarantee anything else.

Best regards

And my reply:

Dear On Duty,

Thank you very much for your effort.

I hope that the management team will decide in favor of supporting IO awnings and IO lights.

After all and by doing so, Somfy products will get even more popular since potential buyers will have the chance of integrating their new Somfy products with their existing home automation, in an elegant way through your API.

I would appreciate if you could share any new information about this with me.

Once again, thank you for your feedback.

So, I am now waiting.
If someone else is interested in implementing this request, it would be useful to communicate with them in order to let them know that we are interested!
You may reach Somfy Dev in this contact page.

I’ve received a response tonight (in French, sorry).

43

Meaning : we need to wait few days that Somfy will approve the API key.
I’ve tested after and now, it works !

Update : the connection works but none of my covers are found as entities… New bug ?

Issue seems to be on their side. Since few hours I cannot control my covers.

Same for me. I was unable to control covers since this morning at least (in France). After a HA restart entities are unavailable.

hi tried from july… but never go… in thise day somfy send me an url to try… before i rcevid always “uri mismatch…” now i riceved :" invalid state " or “error 500 server internal trouble”… waht can i try?
thank you
the hassio registry say:

Dettagli registro (ERROR)
Wed Nov 06 2019 16:55:30 GMT+0100 (Ora standard dell’Europa centrale)
Error handling request
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py”, line 418, in start
resp = await task
File “/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py”, line 458, in _handle
resp = await handler(request)
File “/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py”, line 119, in impl
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/real_ip.py”, line 40, in real_ip_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/ban.py”, line 73, in ban_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/auth.py”, line 136, in auth_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/view.py”, line 122, in handle
result = await result
File “/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py”, line 335, in get
flow_id=state[“flow_id”], user_input=request.query[“code”]
File “/usr/src/homeassistant/homeassistant/data_entry_flow.py”, line 82, in async_configure
raise UnknownFlow
homeassistant.data_entry_flow.UnknownFlow

Is anyone else getting errors at that moment? I can use my blinds using the Conexoon gateway and the “windows” app, but HA is throwing me two errors:

2019-11-06 22:33:24 WARNING (MainThread) [custom_components.somfy] Cannot update devices
Traceback (most recent call last):
  File "/config/custom_components/somfy/__init__.py", line 156, in update_all_devices
    data[API].get_devices)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/site-packages/pymfy/api/somfy_api.py", line 77, in get_devices
    site_ids = [s.id for s in self.get_sites()] if site_id is None else [
  File "/usr/local/lib/python3.7/site-packages/pymfy/api/somfy_api.py", line 58, in get_sites
    r.raise_for_status()
  File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 503 Server Error: Service Unavailable for url: https://api.somfy.com/api/v1/site
2019-11-06 22:33:27 ERROR (MainThread) [homeassistant.components.cover] Error while setting up platform somfy
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/config/custom_components/somfy/cover.py", line 30, in async_setup_entry
    async_add_entities(await hass.async_add_executor_job(get_covers), True)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/somfy/cover.py", line 24, in get_covers
    devices = hass.data[DOMAIN][DEVICES]
KeyError: 'devices'
1 Like

If you scroll up a little you’ll see multiple people report issues with the API.

Yes same errors for me since 3 days ago… I hope it will get fixed asap

Yes, I already recongized this. But mine was still working and I thought the problems were solved. Is someone in contact with Somfy? Does it make sense to contact their support?

The more the merrier :slight_smile:

Hello I try the new link “external”. I have the following error

{“error”:“redirect_uri_mismatch”,“error_description”:“The redirect URI provided does not match registered URI(s).”}

On the old link it had worked

can be a track. On the address https://accounts.somfy.com/dashboard
I still had the old address to register
while on https://developer.somfy.com/user/me/apps

I had it well to remove.

now the error is no longer the same I will wait 24h

Has anyone started to stall Hassio after Somfy’s failure? the last week I had to restart 5 times a day. If I canceled integration yesterday, it’s okay.

Might explain some weird behaviour i’ve seen lately… Maybe it’s not really graciously handeling the not working API on Somfy-side? I wonder what’s taking them so long to fix it.

Hi, could you look at it? I don’t seem to be the only one. is it possible that the component could cause these problems? I had a similar buzz to that of Israel and Angelo.

Do you still have problems? I still can not integrate my shutters since the change of address “external”

or is it a problem on my side since the last update of hassio?

Hi, I’ve just tried yesterday to redo the integration with the “external”. There was no issue.
When you are on the Somfy pop-in where you have to accept the term, look at the url in your browser. Do you see your callback URL?