Overkiz integration - Local API [Development / Testers topic]

@andyblac indeed, that is the biggest change :wink:. I see that the translations/strings in the config flow are not present via the custom PR integration, however that will be present in core.

Does everything function as expected?

yes, everything seems ok here, but I only have one RTS Roman Shade (more to come)

You can follow the instructions in the start post (Overkiz integration - Local API [Development / Testers topic]). Let me know how it works.

I aim to ship this with the next HA release (August 2), but in order to get ready, it would be great to have a few testers with different devices.

3 Likes

@imick just pulled latest update, got a migration error as below

This error originated from a custom integration.

Logger: homeassistant.config_entries
Source: custom_components/overkiz/__init__.py:67 
Integration: Custom Overkiz PR#71644 
First occurred: 11:04:18 (1 occurrences) 
Last logged: 11:04:18

Error migrating entry gateway-xxxx-xxxx-xxxx.local:8443 for overkiz
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 632, in async_migrate
    result = await component.async_migrate_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/overkiz/__init__.py", line 67, in async_migrate_entry
    v2_entry_data[CONF_SERVER] = entry.data[CONF_HUB]
                                 ~~~~~~~~~~^^^^^^^^^^
KeyError: 'hub'

I have replace my actual hub id with xxxx-xxxx-xxxx

removing the hub and re-adding fixed it again, not sure if this was intended again, or if it should have worked this time, so thought I should report it.

also, the model of the hub is missing, not sure if you can fix this or not.

Thanks for reporting! This will only happen to users that used an earlier version of my PR. :slight_smile:

Unfortunately not, Somfy does not provide a model name via the Local API.

1 Like

Since the descriptions and labels do not work when testing, hereby screenshots of the text of every dialog:

2 Likes

@imick Just to let you know, since updating I am no longer seeing multiple discovered devices in the Integrations page.

Thanks. :+1:

2 Likes

I‘ve added the PR custom component and added the URL over the PR integration.
I added Overkiz but i get no dialog to choose local or cloud option as in your last screenshot.
So it is not clear for me now how i get the Local API option with the config flow?

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