Overkiz integration - Local API [Development / Testers topic]

Did you first select your server?

I am not sure, where should i do this?

If you see the screenshots above, just follow the screenshots / instructions in the same order. First select your server (e.g. Somfy Europe), than local or cloud, then your credentials.

Hmm, the first dialog looks on my side like this

But Auto Discovery has found a Gateway now…

This is not the local integration. Something went probably wrong with the installation, or you didn’t select the right integration in the dropdown. Perhaps someone else in this topic with experience can help you?

I’ve performed the two steps discribed in the first post

Otherwise, you can follow the next steps:

  1. Follow the installation steps for this custom component:
    alandtse/pr_custom_component: Create a custom component from a Home Assistant Integration Pull Request. Use this when you want to test a pull request that changes a built in integration. (github.com)
  2. When you are done, provide the following URL https://github.com/home-assistant/core/pull/71644 and follow the steps of the documentation above.

You can wait here for advice from someone else; or discuss on Discord: Overkiz (by Somfy) for Home Assistant.

I get it integrated now.

Then i blocked the internet connection from the Somfy Switch. After that i cant control the motors

Can you share the errors you get in your logs? I have tested this myself as well and it does work.

Are you sure you blocked the internet connection only, and not the local connection as well? Can you still visit https://gateway-xxxx-xxxx-xxxx.local:8443 in your browser?

@imick when I go to my Tahoma Switch hub webpage, all I get is 404 Not Found, not sure what I’m supposed to see

That is the right response. This shows you can access the Local API ;-).

1 Like

Works fine local

Also working

do seem to have a duplication button for My Position ?


that is disabled by integration, and can’t be deleted.
or is it some other button ?

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: