Somfy overkiz intergration

Fellow experts here,

Need a help on somfy integration. I wasn’t able to understand by following the instructions below

" By activating the Developer Mode of your TaHoma box, you can authorize third-party software (like Home Assistant) to connect to it via your local network.

After activation, enter your application credentials and change the host to include your gateway-pin or enter the IP address of your gateway."

Particularly, at the host entry upon configuration, what do i enter? Nothing seems to work. I’ve already enabled developer mode at somfy portal. Keep getting this error message

“Cannot connect to host, certificate verify failed.”

What did you enter in the configuration screen?

same here. hope someone can helps, tried the local ip and get the same error:
Cannot connect to host, certificate verify failed.

docs say:
To avoid security issues, add the following authority to your HTTPS client trust store: https://ca.overkiz.com/overkiz-root-ca-2048.crt
how do we do this for homeassistant (running in docker…)
unchecking the box Verify SSL certificate results in a simpler “Failed to connect” warning.
When checking the available tokens with the api I now have more than a dozen keys for home assistant…

You don’t need to add the certificate, we do this already. If you connect to your IP, uncheck ‘Verify SSL’ because this only works for the hostname.

If you still get “Failed to connect”, it means your Home Assistant instance cannot connect to your hostname / IP. Double check if you set it up correctly + the right port.

Hi @imick, trying again to get this working. I have dev mode enabled for my somfy switch.
Do I need to do anything else?
I have HA running in docker on my unraid server. It cannot ping the gateway-[pin].local but I can directly ping the ip address.

If I try to setup overkiz with:
[TAHOMA SWITCH IP]:8443 with ssl disabled, and providing my somfy.nl username and password I get a “Unexpected error”.

update: cloud integration works fine by the way.

You can create a new issue on GitHub and we will have a look. Unexpected error means that something is written in your log.

ok! ill create a issue. thanks!

edit: ok, while writing up my new github issue and recreating all the steps I took to get the unexpected error I first had to remove the cloud integration for my overkiz tahoma switch integration. Now, when I try to setup the localAPI I got in without issues…
Not sure why, I did exactly the same… Perhaps the cloud integration triggered something that was required to get my local setup working…

Anyways, I’m happy that it know works without cloud integration. Now I can create better/smarter automations than the ones we can create using the tahoma app.

Please help - I’m freaking out trying to understand why my automation is not triggered/working.

Whenever I create an automation with Somy shutters - the automation isn’t triggered/run. All other automations are executed correctly. I’m using connectivity kit via cloud.

  1. I can manually set the position of the electronic shutters in Home Assistant, also all actions like close or open work.

  2. If I change the position with Tahoma app, then click on the shutter in the dashboard - it shows the correct position.

  3. If I change the position via io remote - then click on the shutter in dashboard - the position is also correctly shown. However in Tahoma app it’s not updated.

  4. If I run the automation via Developer Settings → Trigger Automation
    It is alway run even if the conditions aren’t met (skip conditions is not activated)

— WTF is going on? Why are the automations not triggered? I made automations based on the same sensors - and they are run.

The log shows nothing/nor does the history. It’s as if those automations do not exist as soon as I add the shutters into them.

Below are my automations (all created with UI so there cannot be punctuation/spelling mistakes):

a)

alias: Open all Shutters when above 19° in sleeping room
description: ""
trigger:
  - platform: numeric_state
    entity_id:
      - sensor.aqara_bedroom_temperature
    above: 19
condition:
  - condition: numeric_state
    entity_id: sensor.aqara_balcony_temperature
    below: 19
action:
  - device_id: 3c583c127b6c06d78cbe714c7f18fe12
    domain: cover
    entity_id: 78645528e308ea3681783d8771ce137d
    type: open
  - device_id: 0700782fa48091326aa7a40beb6be712
    domain: cover
    entity_id: f4c4cecb73bc1ea850c29317ff2ad2d8
    type: open
mode: single

b)

alias: 18-19° - Set shutter to 50%
description: ""
trigger:
  - platform: numeric_state
    entity_id:
      - sensor.aqara_bedroom_temperature
    above: 18
    below: 19
condition:
  - condition: numeric_state
    entity_id: sensor.aqara_balcony_temperature
    below: 18
action:
  - device_id: 0700782fa48091326aa7a40beb6be712
    domain: cover
    entity_id: f4c4cecb73bc1ea850c29317ff2ad2d8
    type: open
  - device_id: 3c583c127b6c06d78cbe714c7f18fe12
    domain: cover
    entity_id: 78645528e308ea3681783d8771ce137d
    type: set_position
    position: 50
mode: single

c)

alias: Close Shutter when outside over 20°
description: ""
trigger:
  - platform: numeric_state
    entity_id:
      - sensor.aqara_balcony_temperature
    above: 20
condition: []
action:
  - device_id: 3c583c127b6c06d78cbe714c7f18fe12
    domain: cover
    entity_id: 78645528e308ea3681783d8771ce137d
    type: set_position
    position: 1
  - device_id: 0700782fa48091326aa7a40beb6be712
    domain: cover
    entity_id: f4c4cecb73bc1ea850c29317ff2ad2d8
    type: close
mode: single

d)

alias: Close Shutters when below 18°
description: ""
trigger:
  - platform: numeric_state
    entity_id:
      - sensor.aqara_bedroom_temperature
    below: 18
condition: []
action:
  - device_id: 0700782fa48091326aa7a40beb6be712
    domain: cover
    entity_id: f4c4cecb73bc1ea850c29317ff2ad2d8
    type: close
  - device_id: 3c583c127b6c06d78cbe714c7f18fe12
    domain: cover
    entity_id: 78645528e308ea3681783d8771ce137d
    type: close
mode: single

e)

alias: Open all Shutters when above 19° in sleeping room
description: ""
trigger:
  - platform: numeric_state
    entity_id:
      - sensor.aqara_bedroom_temperature
    above: 19
condition:
  - condition: numeric_state
    entity_id: sensor.aqara_balcony_temperature
    below: 19
action:
  - device_id: 3c583c127b6c06d78cbe714c7f18fe12
    domain: cover
    entity_id: 78645528e308ea3681783d8771ce137d
    type: open
  - device_id: 0700782fa48091326aa7a40beb6be712
    domain: cover
    entity_id: f4c4cecb73bc1ea850c29317ff2ad2d8
    type: open
mode: single

Oh yeah , and is there any chance of having an automation that tries to hold a certain temperature. If outside is colder , and inside is over the expected temperature - open shuter by 10% then wait 10 minutes… if Inside is too cold - close shutter by 10%. Do that check every 10 minutes.

I installed Home Assistant and all those sensors/raspberry pi 5 because I was thinking such a simple task should be possible. If not it seems I need to get an aircon because very aircon can do what that tahoma crap doesn’t manage right now (the tahoma app is completely stupid, cannot integrate any sensors - so only time based automation possbile).

I have the same issue…

This night my internet provider “updated” my modem. If things would not work I had to restart it in the morning. All was fine but not my Overkiz connection from within homeassistant.

This integration worked very well before the update this night.
This morning, it did not… when “reloading” the integration nothing happened and “error-ed” so I decided to remove it and re-add it.

Now I am facing issues when I try to include it in HA:

I tried:

  • restarting all (Somfy box, HA, router)
  • using IP address instead of name
  • with/without “verify ssl certificate”
  • I can Ping the box

Nothing changed on the somfy Tahoma box.

Username and password are 100% correct as I can loging on “my somfy”.

What’s next to check or do?

Hello,

Im new here, and also have an issue with a Somfy connection. Hope to not do something wrong when “answering” to this thread - I did not find the button to create a new one, and maybe its close to this subject.

Ok, the issue is:

  • I run Home Assistant in a docker container in my Unraid home server

  • while the connection to Tuya component work perfectly, I face issues with connecting our Somfy devices

  • I have set the Somfy Switch to developer mode, and tried to configure the Overkiz-Gateway, which fails - when entering host, login and PW, I get an “connection error”.

  • Error from log see below

  • I fed ChatCPT with that, and it proposed a lot of stuff where I don’t think it is necessary, or I’m for sure not capable to make it.

Many many thanks for your ideas.

Kai

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Logger: homeassistant.util.loop
Quelle: util/loop.py:136
Erstmals aufgetreten: 11:02:56 (1 Vorkommnisse)
Zuletzt protokolliert: 11:02:56

Detected blocking call to load_verify_locations with args (<ssl.SSLContext object at 0x14aad38dbad0>, ‘/usr/local/lib/python3.12/site-packages/pyoverkiz/overkiz-root-ca-2048.crt’, None, None) inside the event loop by integration ‘overkiz’ at homeassistant/components/overkiz/config_flow.py, line 404: local_client = OverkizClient( (offender: /usr/local/lib/python3.12/ssl.py, line 708: context.load_verify_locations(cafile, capath, cadata)), please create a bug report at Issues · home-assistant/core · GitHub For developers, please see Blocking operations with asyncio | Home Assistant Developer Docs Traceback (most recent call last): File “”, line 198, in _run_module_as_main File “”, line 88, in _run_code File “/usr/src/homeassistant/homeassistant/main.py”, line 223, in sys.exit(main()) File “/usr/src/homeassistant/homeassistant/main.py”, line 209, in main exit_code = runner.run(runtime_conf) File “/usr/src/homeassistant/homeassistant/runner.py”, line 189, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File “/usr/local/lib/python3.12/asyncio/base_events.py”, line 674, in run_until_complete self.run_forever() File “/usr/local/lib/python3.12/asyncio/base_events.py”, line 641, in run_forever self._run_once() File “/usr/local/lib/python3.12/asyncio/base_events.py”, line 1990, in _run_once handle._run() File “/usr/local/lib/python3.12/asyncio/events.py”, line 88, in _run self._context.run(self._callback, *self._args) File “/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py”, line 477, in _handle_request resp = await request_handler(request) File “/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py”, line 559, in _handle return await handler(request) File “/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py”, line 117, in impl return await handler(request) File “/usr/src/homeassistant/homeassistant/components/http/security_filter.py”, line 92, in security_filter_middleware return await handler(request) File “/usr/src/homeassistant/homeassistant/components/http/forwarded.py”, line 83, in forwarded_middleware return await handler(request) File “/usr/src/homeassistant/homeassistant/components/http/request_context.py”, line 26, in request_context_middleware return await handler(request) File “/usr/src/homeassistant/homeassistant/components/http/ban.py”, line 85, in ban_middleware return await handler(request) File “/usr/src/homeassistant/homeassistant/components/http/auth.py”, line 242, in auth_middleware return await handler(request) File “/usr/src/homeassistant/homeassistant/components/http/headers.py”, line 32, in headers_middleware response = await handler(request) File “/usr/src/homeassistant/homeassistant/helpers/http.py”, line 73, in handle result = await handler(request, **request.match_info) File “/usr/src/homeassistant/homeassistant/components/http/decorators.py”, line 81, in with_admin return await func(self, request, *args, **kwargs) File
“/usr/src/homeassistant/homeassistant/components/config/config_entries.py”, line 222, in post return await super().post(request, flow_id) File “/usr/src/homeassistant/homeassistant/components/http/data_validator.py”, line 74, in wrapper return await method(view, request, data, *args, **kwargs) File “/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py”, line 122, in post result = await self._flow_mgr.async_configure(flow_id, data) File “/usr/src/homeassistant/homeassistant/data_entry_flow.py”, line 370, in async_configure result = await self._async_configure(flow_id, user_input) File “/usr/src/homeassistant/homeassistant/data_entry_flow.py”, line 417, in _async_configure result = await self._async_handle_step( File “/usr/src/homeassistant/homeassistant/data_entry_flow.py”, line 520, in _async_handle_step result: _FlowResultT = await getattr(flow, method)(user_input) File “/usr/src/homeassistant/homeassistant/components/overkiz/config_flow.py”, line 232, in async_step_local user_input = await self.async_validate_input(user_input) File “/usr/src/homeassistant/homeassistant/components/overkiz/config_flow.py”, line 69, in async_validate_input user_input[CONF_TOKEN] = await self._create_local_api_token( File “/usr/src/homeassistant/homeassistant/components/overkiz/config_flow.py”, line 404, in _create_local_api_token local_client = OverkizClient(

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Have you gotten anywhere with this issue? Mine has also stopped working. Somfy updated their app last week and it seems to work fine. I have tried the API and cloud with all the different configurations and just comes up with unknown error.

Same here overkiz down after latest updates

same here, Somfy integration down since few days… issue with authentication.

Remove intergration then setup again, turn off ssl certificate verification that works for me

Same here, problem after latest HA update…

There are two known issues currently: