Overkiz API and Somfy API

Hi sure her’e an example from my configuration.yaml, I use it on my roman blinds.

template:
	- trigger:
	  - platform: state
	    entity_id:
	      - cover.andys_bedroom_somfy_window_shade
	    id: "on"
	    from: opening
	    to: unknown
	  - platform: state
	    entity_id:
	      - cover.andys_bedroom_somfy_window_shade
	    id: "off"
	    from: closing
	    to: unknown
	binary_sensor:
	  - name: Andys Shade Helper
	    unique_id: bef6f128-9493-49f1-a61c-d3db57d38af4
	    state: "{{ trigger.id }}"

 cover:
	- platform: template
	  covers:
	    andys_bedroom_window_shade:
	      unique_id: dcb9f6e3-f1f2-46d6-9d06-6f52a3222681
	      device_class: blind
	      friendly_name: "Andys Bedroom Window Shade"
	      value_template: >
	        {% if states('cover.andys_bedroom_somfy_window_shade') == 'opening' %}
	          opening
	        {% elif states('cover.andys_bedroom_somfy_window_shade') == 'closing' %}
	          closing
	        {% elif states('binary_sensor.andys_shade_helper') == 'off' %}
	          closed
	        {% elif states('binary_sensor.andys_shade_helper') == 'on' %}
	          open
	        {% else %}
	          none
	        {% endif %}
	      open_cover:
	        - condition: state
	          entity_id: binary_sensor.andys_shade_helper
	          state: "off"
	        - service: cover.open_cover
	          target:
	            entity_id: cover.andys_bedroom_somfy_window_shade
	      close_cover:
	        - condition: state
	          entity_id: binary_sensor.andys_shade_helper
	          state: "on"
	        - service: cover.close_cover
	          target:
	            entity_id: cover.andys_bedroom_somfy_window_shade
	      stop_cover:
	        service: cover.stop_cover
	        target:
	          entity_id: cover.andys_bedroom_somfy_window_shade
	      icon_template: >-
	        {% if this.state == 'opening' %}
	          mdi:arrow-up-box
	        {% elif this.state == 'closing' %}
	          mdi:arrow-down-box
	        {% elif this.state == 'closed' %}
	          phu:shutter-100
	        {% else %}
	          phu:shutter-20
	        {% endif %}

and to action it you can use cover.andys_bedroom_window_shade

you can still use your remotes, as it will update tthe new cover to the correct state,the only down side is, closing / opening half way, will show the incorrect state, I.E if open, and you close half way and stop it will show as closed, but just open slightly and stop, the Fav postion button works though, as it should closed completely the reopen to your saved position.

Hi Andy,
thank you so much for your help …
i now understand this concept a bit more :wink:
however - it looks like either my venetian blinds or the connection of the blinds through the somfy-connectivity-kit with the overkiz integration does not report the ‚opening‘ or ‚closing‘ state.
tried to check it with a simple {{ states(‘cover.arbeiten’)} line within the template tab of the developer tools - and moved the blinds around. This unfortunately resulted only in reporting back ‚open‘ or ‚closed‘.
or am i on the wrong track here?

no, you are correct, mine are the reverse (only show “opening, closing, unknown”)

First of all apologies for asking maybe an “off Topic” question…

I Have a Somfy opening sensor, that shows if a door is open, closed or even being tampered with.
In the Somfy ap, this sensor switches instantly, when open or closed.
However, in the Overkiz on HA, the sensor does not respond the actual open or close state, or just very late. (Minutes later, or not at all)

Is there a way to see the changing sate instantly, like in the Tahoma app?

Apologies once again, but I am an absolute Noob to HA and programming.

Thanks in Advance,

Erwin

Hi,

I can’t get the local API working on my connexoon.

  • HA version 2023.12.0 in a container
  • On an up-to-date rpi
  • I got the connexoon in developer mode (ergo my credentials are being accepted)
  • the default host: gateway-xxxx-xxxx-xxxx.local:8443 completed with my own PIN won’t connect
  • Filling the host with the IP of the connexoon completed with the port:8443 will result in a response: “Cannot connect to host, certificate verify failed.”
  • when trying to access with false credentials I get : “Ongeldige authenticatie” (invalid authentication) so it seems i’m able to reach something…

I powercycled the connexoon several times and even left it unpowered for while.

Am I missing something? Somebody got a clue what to do?

Many thanks!

JJ

try with IP and disable SSL. a user in the beta had the same same as you

Overkiz integration - Local API [Development / Testers topic] - #240 by samvandenberge

Great! Works like a charm!

Thanks!!!

Guys, please explain, which Somfy IO sun and wind sensors are compatible with Overkiz? I have Tahoma Switch and O verkiz on my HA and I would to add wind and sun sensors.

What do you want to achieve? Often sun / wind/rain sensors are linked directly to the screen and will move the screen or block screen movement when an event is detected. Not sure if they also expose the values to the Overkiz integration.

If the values are present in the official Somfy app, they can be shown in the Overkiz integration :slight_smile:

1 Like

I have 2 sun sensors, I believe they are the ‘sunis wirefree IO’ ones and they show up as LightIOSystemSensor in Overkiz. Lux values are available in HA.
The wind sensor I have isn’t visible in the Somfy app nor in Overkiz and controls the screens directly.

2 Likes

IO sunis sensors are visibel in overkiz. Wind sensors are not visibel. All brands have there wind sensors not exposed for external use :thinking:

1 Like

moved my Somfy to the new app the other day, and now notice (might be coincidental, tbh I didnt really check before) that the MY position sliders dont sync with the Apps settings.

Which is a nuisance as I now no longer know who is in charge when automating in HA on that number.

If I set the app My position to 15%, the number in HA remains on 86%

Not sure what would be best now. Could it be the move to the new App (Somfy I mean) would require a rebuild in HA?

btw, the Target closure sensors are all at unknown

For me the “My position” entities have been “inverted”, see My Position configuration does not match position of recalling My Position · Issue #66767 · home-assistant/core · GitHub

The behavior I observed for the “Target Closure” entities seems to be that most of the time they are Unknown. They only seem to get a value when issueing a postion command (which then is the target they are supposed to go). Except when that command is to open the rollershutter, then instead of expected 0 it also becomes Unknown (hmmm, maybe this is why they seem to be Unknown for most of the time since I only look during the day when they are all open).

Wonder if anyone can help - currently using Overkiz and somfy and just got a new venetian blind which has both tilt and up/down
I can happily control the up and down and also set a My position, but I see no way to control the tilt - is there a way?
Thanks

Best is to create a new issue and add your diagnostics.

I got the same problem like Mark, any solution in sight?

Hi, I switched to local access and it works but is there a way to completely disable or remove Somfy cloud access?
When I use the official app (TaHoma) and when I’m not connected with my wifi network it’s still functioning like before. Yes I could remove the app, but the somfy box/hub still doing something with the cloud I guess (updates?)

Can you create an issue on GitHub? Include your diagnostics when the cover is set to manual / normal mode.

You can block the internet access of your hub via most routers (e.g. by leveraging parental controls :wink:).

before I proceed, given the fact this is still in section Feature requests: is this still the place to ask about config questions?
I need some advise on grouping positionless Somfy ‘Lamellen’ into a template cover, or group, to trigger HA into updating the last-updated when the My button is pressed