I use an iPad as home hub too. I was able to control all my IO blinds and my awning (that’s not exposed to their official API!). Told us if the support came back to you with a code. It will be great.
I don’t see how Somfy can expose the My position to the Apple Home application.
It is available for me after the update of today. It is in the Configuration menu, however the main issue is that they use the HomeKit SDK to integrate it natively in iOS. This means you will never see a code when adding it…
I will give it a try soon via HomeKit directly, to see which devices are supported in my case. But would be great if we can figure out how to call the local API.
Hi @tetienne,
First of all thanks for all your hard work. Over a year ago, you mentioned the possibility of adding ‘quiet mode’ to tell shutters to open/close quietly (in discrete mode): Somfy Tahoma Official API . Do you have any update on this? I would love to be able to mark a shutter as ‘always quiet’ and just have it always operate in this mode. The default mode makes too much noise for my liking. Thank you!
Sure it’s possible to implement. I just have to find the good way to present the option. From what I understood you want to enable this option only for one cover and not for all?
@imick I guess it’s for the official api but we can add the option for the unofficial one.
In my case I only have two roller shutters and both need to always be silent - but I’m sure the ideal solution for everyone would be to somehow allow automations to pass in a ‘silent’ boolean, so that you can even have them be silent only at night for example. I’m new to HA, so I can’t help you with that I’m afraid.
I have good news to share. I was looking for something else, but I accidentally stumbled upon the HomeKit code! I haven’t got it working myself yet, since it is can only be paired with one HomeKit home at the same time, and I wasn’t able to unlink mine yet…
In the Apple Home App, tap on house in the upper left corner, select “Home Settings” then scroll down and tap on “Hubs & Bridges”. Tap on the TaHoma Box and scroll down. There is the button “Remove bridge from Home”.
After doing this, I was able to reconnect the TaHoma Box again. Even Home assistant HomeKit Controller did find the box again and asked for the Pairing Code.
And here are my questions:
Is this HomeKit info from your screenshot already available in the HACS/ha-tahoma custom component or is your code still under development? Does this info come from Somfy directly or is that something you have to actively extract from the box?
@Rhadamantys The screenshot came from the native Homekit controller integration from HA. That’s not linked to the ha-tahoma. But we will release a new version where you will be able to see the pairing code in the log
Personally, I was not able to do it even if I removed the Tahoma bridge from the Home Application on my iphone/ipad. Apparently, a reset of the tahoma should resolve this, but it did not work for me.
Release 2.3.7 has just been published. Get it via HACS or GitHub and give it a try.
Please note that you need to enable debug logging to show info notices in your log. In the future we will look for a more permanent way, but for now it is a bit hidden.
Hi Mick,
I could retrieve my pairing code. But unfortunately, I am stuck, too - with the same message that you got.
This is from the logs
2020-12-05 18:18:54 DEBUG (MainThread) [homeassistant.components.homekit_controller.config_flow] Discovered device Somfy TaHoma (TaHoma - DE:AD:BE:EF:CA:FE)
2020-12-05 18:19:10 ERROR (MainThread) [homeassistant.components.homekit_controller.config_flow] Pairing attempt failed with an unhandled exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/homekit_controller/config_flow.py", line 297, in async_step_pair
pairing = await self.finish_pairing(code)
File "/usr/local/lib/python3.8/site-packages/aiohomekit/controller/ip/discovery.py", line 99, in finish_pairing
request, expected = state_machine.send(response)
File "/usr/local/lib/python3.8/site-packages/aiohomekit/protocol/__init__.py", line 179, in perform_pair_setup_part2
raise InvalidError("M5: not an error or a proof")
aiohomekit.exceptions.InvalidError: M5: not an error or a proof
Where can I forward this to?
I see two possibilities here:
My box is in super position (paired and not paired at the same time). That would confirm the Somfy Bug
Apple enhanced their pairing protocol and the homekit controller component is not capable of handling it.
So ideally, someone could retrieve the Apple HomeKit pairing code with a virgin box and try the pairing with HA Homekit controller right away.
I need your help to use the Somfy API.
I have a Somfy Protect alarm (not Tahoma). I can access it using the APIs Documentation from developer.somfy website (I can get the siteId, see my device and execute command to the device i.e to open or close the shutter of the camera).
If I try to connect to the Somfy API using HA integration it doesn’t work:
Method 1: Create an App from the somfy website (URI: https://xxx/auth/external/callback), provide consumer Key and Secret to my configuration.yaml file and use Settings/Integration/Add/Somfy. Error message “An error has occurred Please try again. If the problem persists, please contact our technical support team.”
Method 2: If I remove Somfy: from my configuration.yaml file and do Settings/Integration/Add/Somfy, I have a message from HA " The component is not configured. Please follow the documentation."
SOLVED
Method 1: I received an email from Somfy the problem is from their side
Method 2: cloud: was missing in my configuration.yaml. It is recommended to use default_config: to not have the same problem in the future
Unfortunately you have to have the box. I’m using the Protect Alarm with this integration through the Tahoma Box but before, I was using some kind of tricks through IFTTT, but it was not very reliable and a lot of work to have the dual-ways integration with the alarm.
Thank you for your comment, but I think I should be able to connect to the API using HA. I should have a valid token since I have an app (on the somfy website) and not an error message