brutella / hkknx-public

hkknx is a HomeKit KNX bridge for KNX.
https://hochgatterer.me/hkknx
97 stars 6 forks source link

Allow inverting cover position #198

Closed mirkolenz closed 1 year ago

mirkolenz commented 1 year ago

I have two marquees installed at my house. In HomeKit, they are highlighted as being open when they are actually closed. The same behavior is also true for Home Assistant. There however, I have the option to invert the values of all properties and thus I am able to solve the problem. In HKKNX, it is currently only possible to invert the up/down behavior, but not the absolute position.

As a workaround, I also tried to invert the position on the KNX actuator. In this case however, the automatic shading function no longer works since the actuator "thinks" that the cover is already fully closed.

Thus, I propose to add the new value type DPST-5-1 (100..0%) (maybe with slightly different naming) for the properties Jalousie Ist-Position and Jalousie Soll-Position (maybe also the corresponding slat positions for the sake of completeness).

brutella commented 1 year ago

So your actuator uses a value of 0% to fully extend the marquees and 100% to fully wind it up?

mirkolenz commented 1 year ago

No, the opposite is true (just like for regular covers). But for a marquee, HomeKit should report the position 0% as closed and 100% as open.

brutella commented 1 year ago

This should now be possible in 2.3.1-b1

mirkolenz commented 1 year ago

Thank you for the fast response, it works as perfectly!

Just one thing I noticed: I wanted to synchronize the settings using your home app. Could this be related to a change in any of the last pre-releases? I also tried to re-add the bridge, but was not able to do so.

brutella commented 1 year ago

What is the result of the synchronisation? Does it fail with an error?

mirkolenz commented 1 year ago

The app is not able to establish a connection to the HKKNX server (even though the correct host and port are entered).

brutella commented 1 year ago

What error do you get when you establish a connection?

mirkolenz commented 1 year ago

It says Connection Problem. Unable to connect to IP:PORT.

brutella commented 1 year ago

Are you sure that the IP address of hkknx is correct?

mirkolenz commented 1 year ago

I just figured out the problem: My phone somehow connected to my guest Wi-Fi network that has no access to my internal VLAN. So it was an issue on my side. Sorry for any inconveniences caused!