I just tried Somfy API integration on my HA test instance and I don’t get any device nor scene.
Do you know if scenes should be supported by Somfy Official API or they will ever be supported?
Thank
Marco
I just tried Somfy API integration on my HA test instance and I don’t get any device nor scene.
Do you know if scenes should be supported by Somfy Official API or they will ever be supported?
Thank
Marco
@antivirus68 Supported devices by the API are listed here: https://developer.somfy.com/products-services-informations
For the moment, in HA, I’ve only implemented the cover. I’ve opened a request to add the camera shutter: https://developer.somfy.com/products-services-informations
Next step will be the thermostat.
For the future, Somfy planned to use their API for their own products. So normally, yes all devices and scenario shoud be supported. But when? We don’t know.
I’ve also received the email about the depreciation of the old API (sorry in French). So the Tahoma component will be soon useless.
Ok, I guess I’ll use Alexa integration to call Tahoma Scene, that’s crazy but it is the only way after december 3rd.
At least for me.
Thanks @tetienne for the info
You can use also IFTTT I think. An other workaround would be to create the scene in HA directly. But it means it only involve covers.
Yes, i also use IFTTT for integration with Google Home. I think that you can connect HA with IFTTT for the Scenes, i will try this … later … tonight … maybe
I hope people get the new tahoma working, the API lacks scenarios and sun sensors. Especially the last one is quite a pity.
I mean in the end you can still use the app to see all values so it should be possible.
At the end, the mobile app must use the official API. So it will be a win/win for everybody. Meanwhile, I’m curious to see what will happen the 3rd of December.
Hey folks,
I created two entity-buttons to close and open all covers at once. It works so far but I get an error message saying:
500 Server Error: Internal Server Error for url: https://api.somfy.com/api/v1/device/xxxxxxx-xxxxxxxx-xxxxxxx-xxxxxxxx/exec
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 133, in handle_call_service
connection.context(msg),
File "/usr/src/homeassistant/homeassistant/core.py", line 1236, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File "/usr/src/homeassistant/homeassistant/core.py", line 1261, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
self._platforms.values(), func, call, service_name, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 348, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 370, in _handle_service_platform_call
await getattr(entity, func)(**data)
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 58, in close_cover
self.cover.close()
File "/usr/local/lib/python3.7/site-packages/pymfy/api/devices/roller_shutter.py", line 20, in close
self.send_command(Command('close'))
File "/usr/local/lib/python3.7/site-packages/pymfy/api/devices/base.py", line 20, in send_command
self.api.send_command(self.device.id, command)
File "/usr/local/lib/python3.7/site-packages/pymfy/api/somfy_api.py", line 72, in send_command
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: 500 Server Error: Internal Server Error for url: https://api.somfy.com/api/v1/device/xxxxxxx-xxxxxxxx-xxxxxxx-xxxxxxxx/exec
Here is the code of the entity-button:
cards:
- entity: group.all_covers
icon: 'mdi:window-shutter'
name: Alle Rollos zu
show_icon: true
show_name: true
tap_action:
action: call-service
service: cover.close_cover
service_data:
entity_id: all
type: entity-button
- entity: group.all_covers
icon: 'mdi:window-shutter-open'
name: Alle Rollos auf
show_icon: true
show_name: true
tap_action:
action: call-service
service: cover.open_cover
service_data:
entity_id: all
type: entity-button
type: horizontal-stack
Any idea why I am getting this error?
I’ve been also getting the error 500 when using HA Scenes activating multiple devices at once.
I believe it’s due to the server’s API command rate limit, also some covers didn’t activate, while they work on their own.
Would be nice to either support Somfy scenes like in the Tahoma component, and/or clump up the device list in the local scenes/commands if possible with their API.
When acticating the somfy component, i’m redirected to the somfy site, and after a successfull login i get a somfy themed error ““An error has occurred Please try again.”
I’m running the latest version of homeassistant, the credentials and callback URL are fine.
Does anyone have any suggestions on how to troubleshoot this?
I really hope that they are stabilizing and extending their API. I see also very often an error saying that the update of the Somfy devices took longer than expected.
Can you close your cover one by one? The error only happen when you close all covers in one shot?
Remove the somfy entry in your configuration.yaml. There is no need anymore to create an application on the Somfy Dev Website. Once the entry remove, restart HA, select again Somfy. It should be ok then.
Yes, that’s correct. Closing or opening covers one by one doesn’t lead to the error message.
I just tried that, and homeassistant tells me:
The Somfy component is not configured. Please follow the documentation.
I also tried only specifying ‘somfy:’ in the configuration.yaml without the application key/secret, but then homeassistant fails to start
Which version are you using? You need the latest one to use somfy through Home assistant cloud.
How many covers have you? I will try this weekend with the 7 I have to see if I can reproduce too.
Thanks, let us know how it goes and if you need any logs or feedback.
I have 17 Somfy covers.
I have 15. I really like the abbility to open and close all covers with one click, since this is not possible with the “Window” app from Somfy …