swttt / com.swttt.homekit

Homekit for Homey
https://apps.athom.com/app/com.swttt.homekit
GNU Affero General Public License v3.0
35 stars 20 forks source link

Somfy RTS Sunscreen Open Close State #139

Open Veldkornet opened 5 years ago

Veldkornet commented 5 years ago

HomeyKit v3.0.6 Homey v2.0.2

Would it be possible to switch the “Opened” and “Closed” status of the Somfy RTS Zonwering if the type is a sunscreen?

At the moment, when my sunscreen is closed (ie, it is “up” / not extended), it shows in HomeKit as “Open”. The reverse is obviously also true, when my sunscreen is extended (ie, open / down), it shows in HomeKit is “Closed”.

d509a7fe-df02-44b4-9a9c-3510a4604ec6

Of course, if these were window blinds / curtains that would make sense. But for a sunscreen, it’s actually the opposite.

Now I see in Homey, that you can choose what type of device the Somfy is. Would it be possible to reverse the “Open” / “Closed” status if the type is a sunscreen?

f4823dcd-36ec-468a-8695-919b445e15c6

robertklep commented 5 years ago

At the moment, sun shades aren't supported at all (it's a new class for firmware v2 that we haven't yet implemented). Should be easy to add, including the inverted action.

Can you make a screenshot of the data for this device from https://developer.athom.com/tools/devices ?

I want to know which capabilities it has, and because it's an Athom app, the source isn't available 😖

nhassink commented 5 years ago

It is also possible to invert somfy sunscreens in the Homey app. This way iT works as expected in HomeKit (have them myself). IT is in the advanced settings menu

robertklep commented 5 years ago

@nhassink oh, that's even better! (less work for us)

Still need to add support for sunshade classes though (and possibly others too).

Veldkornet commented 5 years ago

But in Homey, it’s correct. Up is up and down is down, why would I want to break that one to fix HomeKit.

Assume you’re referring to this, where you can invert the signal 20e83d0b-7858-425b-a778-cdcf678db521

nhassink commented 5 years ago

Yes I have the second one set to ja.

nhassink commented 5 years ago

Another option is to use a virtual device and four flows to set the up/down state inverse to the actual sunscreen and add the virtual device to homekit. I had it this way when the inverse setting was not yet available in the HomeKit app

Veldkornet commented 5 years ago

Yes, I’ve done that previously with the virtual devices, but then I have two floating around in Homey, and I have to hide the one away somewhere so people don’t get confused etc. It’s messy. But I don’t want workarounds for everything :) I just want it to work properly :)

Andre92NL commented 2 years ago

Hi, I am having the same issue with the inverted indication of the sunscreen and blinds (Somfy via TaHoma switch). Did you find a solution in the mean time? Thanks