Overkiz integration - Local API [Development / Testers topic]

Then its also working on my my side cause i also get just 404 Not Found.

Hmm, i just blocked the device in my Unify router but it looks like the whole traffic is blocked.
Because when i block Somfy Switch i get this error:

Error requesting device events data: Cannot connect to host gateway-xxxx-xxxx-xxxx.local:8443 ssl:default [Connect call failed (‘192.xxx.xxx.xxx’, 8443)]

I added now i rule to only block internet traffic and now its working :slight_smile:

The Somfy app says no internet connection and shows the box as Offline but i can control my motors.

Thank you for your time and work!!!

1 Like

Installed the PR Custom component via HACS and rebooted HA. Now installed the PR Custom component integration and provided the given PR. Forgot to reboot HA. Not been able to install the new Overkiz integration (Custom Overkiz PR#71644). After I did reboot HA, I found the custom overkiz integration. Chose Europe as my server, used the “Local API” option and provided the gateway hostname and bam, it worked. Thank you @imick for all your work (so far).

Great, thanks a lot all for your tests! Please let me know if you face any issues with the integration.

I will be working on cleaning the code and hopefully in a next update we can include the first version of local API support.

Known bugs:

3 Likes

Both known bugs (mentioned in the post above) should now be fixed with the latest version.

Will it be part of the next HA release?
Not sure yet. I need to write all tests for Config Flow (needs 100% test coverage) and the code needs to be on par with core code quality, and my time is still very limited.

Add local API support to Overkiz integration (Somfy TaHoma Developer Mode) by iMicknl ¡ Pull Request #71644 ¡ home-assistant/core (github.com)

Please note that the Config Flow won’t show descriptions when you test it via the custom PR component, see the descriptions here: Overkiz integration - Local API [Development / Testers topic] - #106 by imick.

7 Likes

Thanks for the whole job, hope to try this 1st official release soon !

@imick I have used the hack of Donny Maasland a long time ago.
I stopped updating Home Assistant, since the old Overkiz (by Somfy) integration otherwise stopped working.

Now I wanted to try your implementation, but it always wants to communicate with Somfy to get the token.
Since I hacked the device I already have a token, but no SSL certificates. The old version worked on plain http.

Is there a way to get the hacked version back working with your implementation?
I’m a bit scared to update the firmware since it’s been altered. I don’t want to brick my Connexoon.

If I can make some alterations to the code it would be okay. If it can be implemented it would even be better :wink:

@imick just wanted to say thanks for the new release. The last one was barely usable due to the connection loss all the time (unavailable status). This one seems way more stable! Will test that the coming days.

This won’t be supported by the integration. Connexxoon now has an official Local API, supported by Somfy.

Modifying the integration is possible, but it won’t be super easy. You will need to remove the part where we contact the Somfy server in the Config Flow to generate a token and hardcode a token in here. We don’t verify the SSL certificate by the way, so as long as you can access it over SSL, it should be fine.

I did adjust the flow, but it didn’t login (yet).
Added the token in code. For the UUID I generated a custom one and also hard coded it.
It tries to login, but fails.
But SSL is not enabled on the specific device.

Where does it determine to use SSL, maybe I can change it to plain http?

Perhaps better to discuss the follow up on Discord, since this is off-topic for here. HTTPS is added in generate_local_server() which is part of the Overkiz python library, thus not that easy to modify. What kind of error do you get at the moment? (turn on debug logging as well).

I would have a look how you can move to the latest Connexxoon update, it should be possible without bricking.

Hi @imick, thank you for your great work, everything works as expected.

And thank you for the donation!

Great to see so many people testing the integration, and not reporting any issues. Gives me confidence that it is ready to be added to core, when I finally have time to write tests.

4 Likes

@imick just setup my 2nd Somfy shade, was autodetected with no issues, where can I donate to you for this amazing integration?

On the GitHub page of the custom integration, we have a Sponsor button with the PayPal links of all contributors. But please don’t feel the need to donate.

(Constructive :smiley:) feedback on the integration and testing is already appreciated a lot.

1 Like

I was this close running this as beta until I saw you almost planned to push it to an official release :sweat_smile:. I’ll be happy to test when the release is official. Btw; do you know if garage doors (IO) are also supported for the local API?

Big thanks for creating this iMick and others!

I am not sure if we are able to ship it in the coming months. My holidays will be coming up, where I will be a month mostly offline, thus probably it will ship in October the earliest.

Yes it works, I have one on my Tahoma.

1 Like

If that’s the case, do you know if there are any plans to fix the current integration for use with the later HA releases? I’ve held off updating HA for 2 months hoping for some movement one way or another, and don’t generally like being that far behind. Thanks for all the hard work that’s been done so far though!

What do you mean? You can use this test version with the latest HA already?