core: Somfy Integration constantly gives Quota limit exceeded

The problem

The standard Somfy integration constantly gives back a Quota error in the logs.

What version of Home Assistant Core has the issue?

core-2021.12.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

Somfy

Link to integration documentation on our website

https://www.home-assistant.io/integrations/somfy/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2021-12-17 08:59:07 ERROR (MainThread) [homeassistant.components.somfy] Unexpected error fetching somfy device update data: error_code: policies.ratelimit.QuotaViolation, fault_string: Rate limit quota violation. Quota limit exceeded.
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/somfy/coordinator.py", line 52, in _async_update_data
    devices = await self.hass.async_add_executor_job(
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.9/site-packages/pymfy/api/somfy_api.py", line 65, in get_devices
    response = self.get(f"/site/{site_id}/device")
  File "/usr/local/lib/python3.9/site-packages/pymfy/api/somfy_api.py", line 85, in get
    return self._request("get", path)
  File "/usr/local/lib/python3.9/site-packages/pymfy/api/somfy_api.py", line 134, in _request
    self._check_response(response)
  File "/usr/local/lib/python3.9/site-packages/pymfy/api/somfy_api.py", line 147, in _check_response
    raise CLIENT_ERROR.get(message, ClientException)(response.json())
pymfy.api.error.SetupNotFoundException: message: setup_not_found, data: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
    self.data = await self._async_update_data()
  File "/usr/src/homeassistant/homeassistant/components/somfy/coordinator.py", line 58, in _async_update_data
    return await self._async_update_data()
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.9/site-packages/pymfy/api/somfy_api.py", line 46, in get_sites
    response = self.get("/site")
  File "/usr/local/lib/python3.9/site-packages/pymfy/api/somfy_api.py", line 85, in get
    return self._request("get", path)
  File "/usr/local/lib/python3.9/site-packages/pymfy/api/somfy_api.py", line 134, in _request
    self._check_response(response)
  File "/usr/local/lib/python3.9/site-packages/pymfy/api/somfy_api.py", line 144, in _check_response
    raise SERVER_ERROR.get(error_code, ServerException)(response.json())
pymfy.api.error.QuotaViolationException: error_code: policies.ratelimit.QuotaViolation, fault_string: Rate limit quota violation. Quota limit exceeded.

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 5
  • Comments: 27 (9 by maintainers)

Most upvoted comments

Use Overkiz integration instead far way stable and reactive.

Local API will probably be based on the same structure as the Overkiz integration. For now I would advise to use the Overkiz integration (via cloud) and after they introduce local support, we will integrate this in the Overkiz integration as well.

I have been experiencing this issue too, so reached out to Somfy UK support last week. I’ve just received this reply, although not being a developer, I’m not quite sure of the implications:

Hi Marcel,

This Wednesday Open API will be replaced by Local API Access, if you are registered on our developer list (https://developer.somfy.com/), then you will receive further information on the date of the change.

Kind regards, (removed) Technical Support – B2B

@OrbitingOcelot you cannot update the polling interval through configuration file. You have to edit the integration file but I’m not sure it will fix the issue.

I will contact them Monday.

Meanwhile, have a try with https://github.com/iMicknl/ha-tahoma

Unfortunately only for Tahoma, not for the Connexxoon I bought. So I assume I can continue to use Overkiz cloud API in the future?

That’s annoying - I had only recently bought a Connexoon RTS too.

Try the overkiz version, might be best solution for you. Good luck!

Intstalled Overkiz and it’s working like a charm 😃 thank you! Also the integration into HomeKit is a lot faster/better, too bad Siri isn’t working with my Somfy shutters anymore since I updated iOS to 15.4

I have bought a Somfy Connexoon io Box last month, will this one work with Overkiz too?

Yes