Overkiz API and Somfy API

Hi all :wave: ,

I’m currently totally reworking the cover platform :building_construction: The goal is to ease the maintenance and be able to add new devices quickly :muscle:

Obviously, I don’t own all the Somfy devices, so I need some help. Can some of you update the file overkiz/cover.py by this one and report me what’s work and does not work anymore? It should be compatible with both ha-tahoma and overkiz integration.

:pray:

2 Likes

Thank you! Because of you, I bought Tahoma switch (I refuse to use cloud solutions) for my blinds.
It has no internet access and commands are coming thru really fast.
Great job!

I found only one issue - integration still uses polling so it takes 0-30 seconds to get command feedback. Do you plan implementing events for immediate feedback?
Another option would be configurable polling interval - I changed it manually to 3 seconds and it seems to be ok on my home installation (6 blinds only).

In theory, after a executed command, it should poll every second to get the update. We do this for the cloud version as well.

However, in my tests I faced the same issue. It seems that they return the completed command before they update and confirm the state change… If this is the case, than I need to log a bug with Somfy and hope they finish it in the future.

The plan is to lower the update interval for local for sure, and 3 seconds could be a good one.

Hi,
unfortunately I get this Message when trying to set up overkidz:

Zu viele Versuche mit einem ungültigen Token, vorübergehend gesperrt
Too many attempts with an invalid token, temporarily blocked

what can I do to fix this? In the past everything works as a charme

Hi Tetienne,

I want to help but I’m stuck with how to proceed (the same lack of skills that make me want to use a local integration instead of accessing the internet probably :slight_smile: )

Do I need to create a /components/overkiz/ folder and put the github files in there? I don’t see a components-folder now and if I search in the help files, I only see posts for a custom_components folder.

FYI: I run HA in docker on Synology.

Hi, I installed the local API via the PR custom component and everything seems to be working great!
When configuring the integration, I had to remove the ‘.local’ part of the URL to make it work. Otherwise I would get an ‘unexpected error’.

gateway-xxxx-xxxx-xxxx.local:8443

1 Like

hello, is there a way to test this custom integration without uninstalling the cloud integration?
When I try to add it it tells me that the account is already configured, I don’t want to lose all my automations if I delete the cloud integration! And I’m not sure I would have time to rename all my devices without the automation updating.
Thanks

I have one bigquestion:

I want to buy several Somfy Tilt 50 RTS devices with a connectivity kit, is it possible to set the tilt position? And use the MY position? It is very unclear if its possible to tilt with the integrations.

If someone has this, please reply :slight_smile:

Hi, I have similar devices with tilt position and it works perfectly.
Not sure what the product number is, but they are IO instead of RTS (shows up as io:ExteriorVenetianBlindIOComponent).

I am impressed. Local API setup was simple and Somfy home-io opening sensors respond immediately. Like zigbee or z-wave sensors. Please keep working on that I will play around with this component a little bit longer to see if there are any other issues.
Thanks a lot!

Hi Guys,

I moved to local API recently and it seems to be dropping out every day or so. All devices become unavailable.

A restart of the integration or HA and the devices come back.

Logs attached, any pointers would be great.

Thanks so much.

  File "/usr/local/lib/python3.10/site-packages/backoff/_async.py", line 133, in retry
    ret = await target(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/pyoverkiz/client.py", line 551, in fetch_events
    response = await self.__post(f"events/{self.event_listener_id}/fetch")
  File "/usr/local/lib/python3.10/site-packages/pyoverkiz/client.py", line 763, in __post
    await self.check_response(response)
  File "/usr/local/lib/python3.10/site-packages/pyoverkiz/client.py", line 862, in check_response
    raise Exception(message if message else result)
Exception: "No registered event listener."

Hi,
first of all thanks for the work on the somfy local API, it worked just fine after installing it!

I want to give a quick feedback on my experience.

  1. As installing the Overkiz as Custom Component, it auto discovered the Gateway 5 times (1 it was configured already).
  2. It’s hard to see, if it is using Local API or Cloud API @Mariusthvdb Screenshots helped me figuring that out.
  3. Nice-to-Have: It would be great, if an existing Connection could be switched from Cloud to Local
  4. Nice-to-Have: New Configurations from Autodiscover, should have an Option to Choose which Connection should be used.

Screenshot from #1

Thanks,
Tim

Thanks for testing, @TimWeyand! Perhaps we could gather all feedback in the GitHub issue on the core repo.

Currently my time is very limited and I don’t have an Overkiz hub myself (yet?) so it is very hard for me to develop and debug this local support regarding the autodiscovery. In the past I was looking to see if I could find a second hand Somfy TaHoma (Switch) and pay it with donations, but I never did the effort. :grinning:

I see that the Tahoma switch is in stock again after a long time.

Are there more people who want to join with me to buy it for @imick so that he can develop it for us?

I’ll donate (free of any obligations) if there’s a link but I couldn’t find one.

1 Like

Same! Would love to get the local API fully up and running!

1 Like

Thanks folks. If you want to donate, here our links:

@imick is the most active currently.

1 Like

Hi and thanks for the great work !
Is there any plan to integrate water_heater entities in the official Home Assistant Overkiz integration ?
I saw some warnings in the Overkiz custom component on boot, so I wonder if it is maintained anymore.
I have a Cozy Touch with a Thermor water heater.

The plan is still to migrate this, however time constraints (and the speed of core reviews) have slowed this down. Any particular device that you would like to see?

Hello,

Can you share some information how you control your heatpump via NodeRed or Curl?

I am figuring out how to control it, but do not have any API details.

Many thanks