Overkiz API and Somfy API

Hi,
I’ve switched from Tahoma integration to the new Somfy integration as it stopped working for me (assuming it’s because as you say Somfy have discontinued that API).

I added the Somfy integration using the HA Cloud method. It authorizes and adds fine, but no devices show up in the integration (I am expecting two covers). I see this in the HA logs:

2019-12-03 22:44:41 WARNING (MainThread) [homeassistant.components.somfy] Cannot update devices: 504
2019-12-03 22:44:41 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 “/usr/src/homeassistant/homeassistant/components/somfy/cover.py”, line 37, 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 “/usr/src/homeassistant/homeassistant/components/somfy/cover.py”, line 29, in get_covers
devices = hass.data[DOMAIN][DEVICES]
KeyError: ‘devices’

I tried the steps you suggested using the Somfy API, I got the below response (the actual covers are not returned, only the the hub? is that expected?)

GET /site

[
{
“id”: “xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx”,
“label”: “TaHoma”
}
]

GET GetDevicesBySiteId using the site ID returned above:

[
{
“id”: “xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx”,
“type”: “hub_connexoon_rts”,
“categories”: [
“hub”
],
“states”: ,
“capabilities”: ,
“site_id”: “xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx”,
“available”: true,
“version”: “2019.5.4-5”
}
]

Thanks

I got same behavior of @Sash no device show up and I see only the hub on the developer site page with the Resource URL

[
  {
    "id": "yyyyyyyy-yyyyyyyy-yyyyyyyy-yyyyyyyy",
    "type": "hub_connexoon",
    "categories": [
      "hub"
    ],
    "states": [],
    "capabilities": [],
    "site_id": "xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx",
    "available": true,
    "version": "2019.3.4-7"
  }
]

@cianial @sash I’m sorry but in your case I can’t do anything. If the Somfy API doesn’t return the covers, I can’t add them in HA :frowning: I suggest you to contact their support.

Hi,


is no longer supported (with their “so open new” API …)

i’ve made a request to their support… wait n see …

I believe I do use the cloud version, the integration is called “Somfy: Home Assistant Cloud”.
So to summarize for clarity. All my covers are shown, scenes are missing, and the local scenes are storming the API with individual commands instead of clumping them into one command.
Their new API must support control of more devices at once.

One more thing came to mind while pondering about this.
I use positioning in local scenes, maybe that makes a difference somehow, in terms of update errors, while the storming you confirmed as well.
Try to mix positioning into the scene for each cover to see if it reduces the maximum commands available somehow.
I noticed the new scene editor didn’t read the proper positions, but I believe that’s a separate topic for now, I would be ok if I have to keep editing those manually until the new scene editor is more stable.

scenes.yaml excerpt:

- id: shades_up_ground
  name: Shades Up Ground
  entities:
    cover.diningroom:
      state: open
    cover.livingroom:
      state: open
      current_position: 35

For what its worth; I can also confirm that only ‘hub’ is returned in the call.

I see the callback url changed in the documentation, so i changed it in they api app settingss, but i still get errors now authenticating …(token expired)

<YOUR_HOME_ASSISTANT_URL>/auth/external/callback (external used to be somfy)

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

edit: switched to the cloud one, but would rather not use that.

Used the tahoma integration until yesterday which worked fine and produced only some errors in the log during the day (like [homeassistant.helpers.entity] Update of cover.werkstatt is taking over 10 seconds). Now switched to the somfy integration and the installation worked flawless.

  1. no configuration.yaml entry
  2. Settings/ Integrations/add “Somfy”
  3. Log in to somfy account.
  4. Done

All devices show up in HA (7 covers) and can be controlled.
BUT the log get’s spammed with “cannot update” warnings which is a little annoying.
Yesterday evening the scheduled cover close command via NodeRed worked. Today morning all covers opened like scheduled, but only 2 of them showed the correct (open) state in HA. The remaining 5 covers stayed in closed state (but were physically open).

Log

2019-12-04 10:12:57 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.werkstatt is taking over 10 seconds
2019-12-04 10:13:03 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 10:13:19 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 10:19:37 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.werkstatt is taking over 10 seconds
2019-12-04 10:19:43 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 10:23:05 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.werkstatt is taking over 10 seconds
2019-12-04 10:23:11 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 10:23:27 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 10:29:12 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_links is taking over 10 seconds
2019-12-04 10:29:18 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 10:34:48 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_rechts is taking over 10 seconds
2019-12-04 10:34:53 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 10:35:09 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 10:36:39 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.schlafzimmer is taking over 10 seconds
2019-12-04 10:36:45 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 10:37:00 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 10:42:14 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.wohnzimmer_rechts is taking over 10 seconds
2019-12-04 10:42:20 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 10:43:50 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_rechts is taking over 10 seconds
2019-12-04 10:43:56 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 10:44:12 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 10:47:50 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_rechts is taking over 10 seconds
2019-12-04 10:47:56 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 10:49:26 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_rechts is taking over 10 seconds
2019-12-04 10:49:32 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 10:49:48 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 10:50:46 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_rechts is taking over 10 seconds
2019-12-04 10:50:52 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 10:52:06 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.wohnzimmer_rechts is taking over 10 seconds
2019-12-04 10:52:12 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 10:52:28 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 10:52:44 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 10:52:51 WARNING (MainThread) [homeassistant.components.somfy] Cannot update devices: 504
2019-12-04 10:55:02 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.werkstatt is taking over 10 seconds
2019-12-04 10:55:08 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 10:59:34 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_rechts is taking over 10 seconds
2019-12-04 11:00:22 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kuche is taking over 10 seconds
2019-12-04 11:00:28 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:00:44 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:01:00 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:01:07 WARNING (MainThread) [homeassistant.components.somfy] Cannot update devices: 504
2019-12-04 11:03:02 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kuche is taking over 10 seconds
2019-12-04 11:03:08 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:03:24 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:06:30 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.schlafzimmer is taking over 10 seconds
2019-12-04 11:06:36 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:07:17 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kuche is taking over 10 seconds
2019-12-04 11:08:05 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.wohnzimmer_rechts is taking over 10 seconds
2019-12-04 11:08:11 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:08:27 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:11:48 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_links is taking over 10 seconds
2019-12-04 11:11:54 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:12:10 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:12:26 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:12:33 WARNING (MainThread) [homeassistant.components.somfy] Cannot update devices: 504
2019-12-04 11:13:24 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_rechts is taking over 10 seconds
2019-12-04 11:13:30 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:15:00 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_links is taking over 10 seconds
2019-12-04 11:15:06 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:17:08 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_rechts is taking over 10 seconds
2019-12-04 11:21:55 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.werkstatt is taking over 10 seconds
2019-12-04 11:22:01 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:22:17 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:22:43 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_rechts is taking over 10 seconds
2019-12-04 11:22:49 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:23:05 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:23:21 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:23:28 WARNING (MainThread) [homeassistant.components.somfy] Cannot update devices: 504
2019-12-04 11:23:47 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.wohnzimmer_links is taking over 10 seconds
2019-12-04 11:23:53 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:24:09 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:28:49 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.werkstatt is taking over 10 seconds
2019-12-04 11:28:55 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:29:11 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:29:27 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:29:34 WARNING (MainThread) [homeassistant.components.somfy] Cannot update devices: 504
2019-12-04 11:29:53 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.wohnzimmer_rechts is taking over 10 seconds
2019-12-04 11:31:13 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.schlafzimmer is taking over 10 seconds
2019-12-04 11:36:49 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_links is taking over 10 seconds
2019-12-04 11:36:55 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:37:11 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:37:27 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:37:34 WARNING (MainThread) [homeassistant.components.somfy] Cannot update devices: 504
2019-12-04 11:41:21 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.wohnzimmer_links is taking over 10 seconds
2019-12-04 11:41:27 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:41:43 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:42:25 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.wohnzimmer_links is taking over 10 seconds
2019-12-04 11:42:31 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:42:47 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:43:03 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:43:10 WARNING (MainThread) [homeassistant.components.somfy] Cannot update devices: 504
2019-12-04 11:44:33 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.wohnzimmer_links is taking over 10 seconds
2019-12-04 11:44:39 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:44:55 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:45:11 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:45:18 WARNING (MainThread) [homeassistant.components.somfy] Cannot update devices: 504
2019-12-04 11:45:53 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.schlafzimmer is taking over 10 seconds
2019-12-04 11:47:28 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.schlafzimmer is taking over 10 seconds
2019-12-04 11:47:34 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:47:50 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:48:06 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:48:13 WARNING (MainThread) [homeassistant.components.somfy] Cannot update devices: 504
2019-12-04 11:49:34 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_rechts is taking over 10 seconds
2019-12-04 11:50:06 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kuche is taking over 10 seconds
2019-12-04 11:50:12 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:50:28 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:50:44 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:50:51 WARNING (MainThread) [homeassistant.components.somfy] Cannot update devices: 504
2019-12-04 11:53:01 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.werkstatt is taking over 10 seconds
2019-12-04 11:53:07 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:53:23 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:53:39 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 11:53:46 WARNING (MainThread) [homeassistant.components.somfy] Cannot update devices: 504
2019-12-04 12:01:30 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.wohnzimmer_links is taking over 10 seconds
2019-12-04 12:01:36 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:01:52 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:02:07 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:02:15 WARNING (MainThread) [homeassistant.components.somfy] Cannot update devices: 504
2019-12-04 12:05:29 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_rechts is taking over 10 seconds
2019-12-04 12:05:35 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:05:51 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:06:07 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:06:14 WARNING (MainThread) [homeassistant.components.somfy] Cannot update devices: 504
2019-12-04 12:07:53 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_links is taking over 10 seconds
2019-12-04 12:07:59 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:08:15 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:08:31 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:08:38 WARNING (MainThread) [homeassistant.components.somfy] Cannot update devices: 504
2019-12-04 12:10:17 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.wohnzimmer_links is taking over 10 seconds
2019-12-04 12:10:23 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:11:05 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.schlafzimmer is taking over 10 seconds
2019-12-04 12:11:11 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:11:27 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:11:43 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:11:50 WARNING (MainThread) [homeassistant.components.somfy] Cannot update devices: 504
2019-12-04 12:12:25 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_links is taking over 10 seconds
2019-12-04 12:12:31 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:12:47 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:13:03 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:13:10 WARNING (MainThread) [homeassistant.components.somfy] Cannot update devices: 504
2019-12-04 12:14:33 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.werkstatt is taking over 10 seconds
2019-12-04 12:14:39 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:14:55 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:15:11 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:15:18 WARNING (MainThread) [homeassistant.components.somfy] Cannot update devices: 504
2019-12-04 12:16:24 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_links is taking over 10 seconds
2019-12-04 12:16:30 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:16:46 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:20:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.wohnzimmer_links is taking over 10 seconds
2019-12-04 12:20:46 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:26:16 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.wohnzimmer_links is taking over 10 seconds
2019-12-04 12:26:22 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:26:38 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:29:26 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.werkstatt is taking over 10 seconds
2019-12-04 12:29:32 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:29:48 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:30:46 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kuche is taking over 10 seconds
2019-12-04 12:30:52 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:31:50 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.wohnzimmer_links is taking over 10 seconds
2019-12-04 12:31:56 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:32:12 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:35:50 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kuche is taking over 10 seconds
2019-12-04 12:35:56 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:36:12 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:36:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kuche is taking over 10 seconds
2019-12-04 12:37:00 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:37:16 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:49:24 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.wohnzimmer_links is taking over 10 seconds
2019-12-04 12:49:30 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:49:46 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:50:02 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 12:50:09 WARNING (MainThread) [homeassistant.components.somfy] Cannot update devices: 504
2019-12-04 12:54:44 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.schlafzimmer is taking over 10 seconds
2019-12-04 13:02:28 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.wohnzimmer_links is taking over 10 seconds
2019-12-04 13:02:34 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:02:50 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:03:06 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:03:13 WARNING (MainThread) [homeassistant.components.somfy] Cannot update devices: 504
2019-12-04 13:06:28 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.werkstatt is taking over 10 seconds
2019-12-04 13:06:34 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:07:16 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.werkstatt is taking over 10 seconds
2019-12-04 13:07:22 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:07:38 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:07:54 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:08:02 WARNING (MainThread) [homeassistant.components.somfy] Cannot update devices: 504
2019-12-04 13:08:36 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_rechts is taking over 10 seconds
2019-12-04 13:10:12 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_rechts is taking over 10 seconds
2019-12-04 13:12:36 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_links is taking over 10 seconds
2019-12-04 13:12:42 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:13:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_links is taking over 10 seconds
2019-12-04 13:13:46 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:14:02 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:14:18 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:14:25 WARNING (MainThread) [homeassistant.components.somfy] Cannot update devices: 504
2019-12-04 13:14:44 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kuche is taking over 10 seconds
2019-12-04 13:15:00 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.wohnzimmer_links is taking over 10 seconds
2019-12-04 13:15:06 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:15:22 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:15:47 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.schlafzimmer is taking over 10 seconds
2019-12-04 13:15:53 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:18:43 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_rechts is taking over 10 seconds
2019-12-04 13:18:49 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:20:03 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_links is taking over 10 seconds
2019-12-04 13:20:09 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:20:25 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:21:07 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kuche is taking over 10 seconds
2019-12-04 13:21:13 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:21:29 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:21:45 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:21:52 WARNING (MainThread) [homeassistant.components.somfy] Cannot update devices: 504
2019-12-04 13:25:54 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.werkstatt is taking over 10 seconds
2019-12-04 13:25:59 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:26:15 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:28:01 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.kinderzimmer_links is taking over 10 seconds
2019-12-04 13:28:07 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:29:53 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.werkstatt is taking over 10 seconds
2019-12-04 13:29:59 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:30:15 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:32:01 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.schlafzimmer is taking over 10 seconds
2019-12-04 13:32:07 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:32:23 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:32:39 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15
2019-12-04 13:32:46 WARNING (MainThread) [homeassistant.components.somfy] Cannot update devices: 504
2019-12-04 13:33:21 WARNING (MainThread) [homeassistant.helpers.entity] Update of cover.wohnzimmer_links is taking over 10 seconds
2019-12-04 13:33:27 WARNING (MainThread) [homeassistant.components.cover] Updating somfy cover took longer than the scheduled update interval 0:00:15

Hi
Possibilities to support the garage door with the SOMFY API? Because it worked well with the Tahoma link but now …

Same here. I bet its the lovely somfy API timing out with 504 errors, thus never updating its status.

You can mute the errors by setting loglevel on the component to error or fatal.

About the 50x errors, on my side I got the same too. I think it’s related to the number of users using the API. Indeed, before the 3rd of december, there was not so many errors about the update. I will contact the support. Perhaps, I will have to reduce the polling interval.

Somfy support answered me about the timeout we got. I will try with their help to make this error disappear.

Hi

Just wanted to confirm that the stupid error message everone has been talking about does not appear if you configure somfy as stated in an earlier post…

  1. no configuration.yaml entry
  2. Settings/ Integrations/add “Somfy”
  3. Log in to somfy account.
  4. Done

This works… BUT… We have 3 screens, 2 awnings and the garage door opener… all of these was detected with the tahoma integration. Now I only have two screens detected and I am at a loss on how to get the other devices configured in HA. I suspect that the largest screen is not detected due to the fact that it is visible as an awning in the somfy app… this is because they had to use a bigger motor on this one due to its size and weight.

Well… this is step one… it is working in HA but with limited functionality… awnings are not detected at all

/Thomas

Happy HA User

Hi @Tuxplex, note that the official API’s support is quite scarce at the moment. Here’s the current list
https://developer.somfy.com/products-services-informations

Yeah, noticed - I really hoped for that large screen to be detected… but as it is basically an awning to the system it did not

:information_source: For the people that cannot discover their cover (blind, roller shutters) you can contact the Somfy support to notice them about that. You will have to give them PIN of your box. It’s only about cover, so awning, sensor, scenario are excluded.

Then what to do… my cover (screen) is an awning in the system…

so… sent a support message - doubt that it will change anything, but if a lot of people crave functionality maybe it will be added :slight_smile:

/Thomas

Pull request created to increase the polling interval. 10 seconds was too short. I hope 30 seconds will reduce/remove the timeout error we all get.

Been trying the above but getting an Invalid Token response with this call:

https://api.somfy.com/api/v1/site/xxxxxx-f6a80e7e-a31d4873-05c3d97c/device

HTTP/1.1 401 Unauthorized

although the site key is correct it seems

HTTP/1.1 200 OK

[
  {
    "id": "xxxxxxx-f6a80e7e-a31d4873-05c3d97c",
    "label": "TaHoma"
  }
]

but in the end the integration in my HA 102.3 works EXCEPT for the roller Awning which is not visible in HA. All Blinds appear.

I don’t get it, do you have any issue except for your awning? This last is not yet supported by Somfy.