Overkiz API and Somfy API

1x Somfy Tahoma Box V.2
2x Somfy Sunea IO Motor for Curtains Sunglasses
3x Somfy RTS Micro Receiver for Roller Shutters

Any chance?

Sadly these devices are not yet supported. But have a try with the Tahoma component. You can keep my component enable, so when your devices will be detected in later update you will see them.

Iā€™m starting to be a bit jealousā€¦ Itā€™s still not working here, and Somfy is not answering my emails anymoreā€¦

Same here, Somfy assistance, after the first automatic e-mail, has not responded to me.

Hereā€™s the 500:

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/app/homeassistant/components/http/real_ip.py", line 33, in real_ip_middleware
    return await handler(request)
  File "/usr/src/app/homeassistant/components/http/ban.py", line 67, in ban_middleware
    return await handler(request)
  File "/usr/src/app/homeassistant/components/http/auth.py", line 216, in auth_middleware
    return await handler(request)
  File "/usr/src/app/homeassistant/components/http/view.py", line 115, in handle
    result = await result
  File "/usr/src/app/homeassistant/components/config/config_entries.py", line 145, in get
    return await super().get(request, flow_id)
  File "/usr/src/app/homeassistant/helpers/data_entry_flow.py", line 74, in get
    result = await self._flow_mgr.async_configure(flow_id)
  File "/usr/src/app/homeassistant/data_entry_flow.py", line 87, in async_configure
    flow, cur_step['step_id'], user_input)
  File "/usr/src/app/homeassistant/data_entry_flow.py", line 123, in _async_handle_step
    result = await getattr(flow, method)(user_input)  # type: Dict
  File "/usr/src/app/homeassistant/components/somfy/config_flow.py", line 103, in async_step_creation
    code)
  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 54, in request_token
    client_secret=self.client_secret)
  File "/usr/local/lib/python3.7/site-packages/requests_oauthlib/oauth2_session.py", line 307, in fetch_token
    self._client.parse_request_body_response(r.text, scope=self.scope)
  File "/usr/local/lib/python3.7/site-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 415, in parse_request_body_response
    self.token = parse_token_response(body, scope=scope)
  File "/usr/local/lib/python3.7/site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 425, in parse_token_response
    validate_token_parameters(params)
  File "/usr/local/lib/python3.7/site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 435, in validate_token_parameters
    raise MissingTokenError(description="Missing access token parameter.")
oauthlib.oauth2.rfc6749.errors.MissingTokenError: (missing_token) Missing access token parameter.

I am having the same message ā€˜an error has occurred, please try again laterā€™

I send an email to somfy but no response so far. Anyone managed to get past this error?

Iā€™ve exactly the same error on my server. I think this is related to Somfy again. We will see if they solve the issue by themself.

Thanks for the update!

Iā€™m using this for quit a few weeks and today suddenly all my covers are gone in Hass. They are not available. ? How can this happen.

Hi All,

I had the same callback issues beforeā€¦
Then after emptying cache/history of my firefox browser it all went ok!
Due to this I had to re login with Somfy.
accept the connection and then it all was ok!

Thanks for the tricks! I hope it will help some other guys.

On my side to solve my Token expired error, I removed the Somfy integration and then added it again. Thatā€™s the first time I have to do this since the beginning of this component.
Iā€™ve an idea of fix to remove the ugly stack trace in the log and handle in a better way such token error.

Does this means that you passed this ugly error (sorry for the message in French)?

I have removed the Somfy app, added a new one and updated credentials multiple times during the passed few days, nothing helped. And of course no answer from Somfyā€¦

Yes, luckily it was ok for me. Just a shame to see this issue occur since so many time.
Did you tried to reset your cache browser as suggested by @Rosiaantje?

@vlebourl, I had exactly the same thing happeningā€¦ like mentioned way back in this topic and as far as I could understand itā€™s more or less an activation triangle between your HA, your browser (probably on an other IP in same subnet) and the servers of Somfy. again clearing history/browser cache and then tying to activate it again in HA did the trick for me.

Hi there,

Iā€™m following koomik tuto, and I have an issue when restarting HA.

First, ā€œsomfy-open-apiā€ branch doesnā€™t exist anymore on tetienne HA repo, so I took files from dev branch.

But when restarting :

2019-07-19 10:47:59 WARNING (MainThread) [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.
2019-07-19 10:48:21 ERROR (MainThread) [homeassistant.config_entries] Config flow is not supported for custom integration somfy
2019-07-19 10:48:24 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/data_entry_flow.py", line 64, in async_init
    handler, context=context, data=data)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/config_entries.py", line 562, in _async_create_flow
    raise data_entry_flow.UnknownHandler
homeassistant.data_entry_flow.UnknownHandler

Any idea ?

You donā€™t need anymore to use the custom component. This one is now official. So you can remove the custom component, keep your configuration and restart HA.

Oh, I didnā€™t know, thanks. Now, itā€™s better, but I have the same issue after trying to configure integration :

"Une erreur est survenue Veuillez rĆ©essayer. Si le problĆØme persiste, veuillez contacter le support technique.

I tried on a different browser, but nothing helpedā€¦

Hello tetienne,

somfy stop working to me, but in log is nothing about somfy.

Any idea?

On my side I got error 404 when the command is send. Itā€™s like their server is down, and our device not recognizeā€¦ Thatā€™s a new one, hurray!

1 Like

Od course that happen on weekend. :frowning: wierd Is doesnt show any error for me and just stop show covers.

1 Like