Problems with Covers and Somfy Integration

I have 4 eletric covers with somfy rts radio control. I control these covers using the Somfy Connexoon RTS and the Somfy integration.

Since some days, I’ve troubles with these covers. Sometimes they are unreachable, sometimes I get errors when I will open or close them. Just thes evening only 2 of the 4 covers where closed by the daily evening automation:

Automation closing covers:

  alias: Lamellen Storen schliessen
  description: Lamellen Storen um 22:00 Uhr schliessen
  trigger:
  - platform: time
    at: '21:55'
  condition: []
  action:
  - delay: "00:{{ '{:02}'.format(range(0, 10) | random | int) }}:00"
  - service: cover.close_cover
    data: {}
    entity_id: group.cover_alle_lamellen
  mode: single

group cover_alle_lamellen:

  name: Lamellen Storen EG
  entities:
    - cover.essen
    - cover.balkon
    - cover.wohnen
    - cover.kueche

this is what happend when the automation triggered today evenening:

this error i got in the log-file:

and this errors I found ~ half an hour earlier in the log file:

Any ideas what the problem could be? :unamused:

From time to time the api does not work…

Log Details (ERROR)

Logger: homeassistant.components.websocket_api.http.connection
Source: components/somfy/init.py:164
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 17:16:22 (2 occurrences)
Last logged: 17:16:26

[2860938816] ‘ba0cdd15-efdb0f94-########-########’

Traceback (most recent call last): File

“/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py”, line 135, in handle_call_service await hass.services.async_call( File “/usr/src/homeassistant/homeassistant/core.py”, line 1451, in async_call task.result() File “/usr/src/homeassistant/homeassistant/core.py”, line 1486, in _execute_service await handler.job.target(service_call) File “/usr/src/homeassistant/homeassistant/helpers/entity_component.py”, line 204, in handle_service await self.hass.helpers.service.entity_service_call( File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 476, in entity_service_call entity.supported_features is None File “/usr/src/homeassistant/homeassistant/components/cover/init.py”, line 219, in supported_features if self.current_cover_position is not None: File “/usr/src/homeassistant/homeassistant/components/somfy/cover.py”, line 109, in current_cover_position if self.has_capability(“position”): File “/usr/src/homeassistant/homeassistant/components/somfy/init.py”, line 193, in has_capability capabilities = self.device.capabilities File “/usr/src/homeassistant/homeassistant/components/somfy/init.py”, line 164, in device return self.coordinator.data[self._id] KeyError: ‘ba0cdd15-efdb0f94-########-########’

Failed to call service cover/close_cover. ‘ba0cdd15-efdb0f94-########-########’

I have the same issue, I told HAS to close 5 covers through the UI and only 3 close, if I repeat it, it then closes the other two.

So for the moment I am sending the commands twice.

:woozy_face: this can not be the solution.
In my case even this helps nothing, because I get api errors…

I have the sames issues here. I think somfy server aren’t reliable at all… Best would be to be able to control them locally but found no possible way so far :confused:

still same problems from time to time…

Logger: homeassistant.components.websocket_api.http.connection
Source: components/somfy/init.py:164
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 11:29:00 (5 occurrences)
Last logged: 11:29:18

  • [2788087168] ‘ba0cdd15-efdb0f94-########-########’
  • [2788087168] ‘9366d0ce-d7d931b3-########-########’

Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py”, line 135, in handle_call_service await hass.services.async_call( File “/usr/src/homeassistant/homeassistant/core.py”, line 1445, in async_call task.result() File “/usr/src/homeassistant/homeassistant/core.py”, line 1480, in _execute_service await handler.job.target(service_call) File “/usr/src/homeassistant/homeassistant/helpers/entity_component.py”, line 204, in handle_service await self.hass.helpers.service.entity_service_call( File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 570, in entity_service_call entity.supported_features is None File “/usr/src/homeassistant/homeassistant/components/somfy/cover.py”, line 76, in supported_features if self.has_capability(“open”): File “/usr/src/homeassistant/homeassistant/components/somfy/init.py”, line 193, in has_capability capabilities = self.device.capabilities File “/usr/src/homeassistant/homeassistant/components/somfy/init.py”, line 164, in device return self.coordinator.data[self._id] KeyError: ‘ba0cdd15-efdb0f94-########-########’

Is this a problem of the somfy-api or is the problem inside form HA?
unfortunately I’m not enough expirienced to read the log file and find the conclusion.

I have the same problem,…
If I can help find a solution, please get back to me.
I’m not sure how to help at the moment.
For information, reloading the integration fixes the problem temporarily.

Today I testet the api manually on the somfy homepage, there the api works.
So I guess it have to be a problem in the HA Integration. I will open a Issue on GitHub.

There was already an issue:
Somfy : Task exception was never retrieved · Issue #44423 · home-assistant/core (github.com)

I do have an issue with Somfy covers too. What I noticed, when all covers are open, the automation which is supposed to close all covers - works.

If one of the covers is already closed, the automation does not work and will not close any of the remaining open covers.

I’m currently on the official Somfy Integration, have you guys moved to the new Tahoma Beta integration already? Is it already stable enough to use it with Somfy Covers?