brutella / hkknx-public

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

Offer lock/unlock command for all actuator devices #152

Closed pfeifix closed 2 years ago

pfeifix commented 2 years ago

The lock/unlock command (and related status) would make sense for all actuator devices. Currently the hkknx GUI only allows for configuring it for shutters, garage doors and fans. I need it at least for lamps and power outlets to prevent them from being controlled by local physical switches. My KNX actuators offer communication objects for these purposes.

Originally posted by @pfeifix in https://github.com/brutella/hkknx-public/issues/135#issuecomment-992763685

brutella commented 2 years ago

Blocking is currently only offered for the following types

This feature is not available for other accessories because of the reason how they would appear in the Apple Home app. If blocking is enabled for an accessory, an additional switch is added to the accessory to block and unblock it. The Apple Home app includes the state of that switch in the description text as described in this article (German only).

For example a light bulb would appear as follow

  1. The light is off and not blocked IMG_0F973D1A865B-1

  2. The light is off and blocked IMG_A6F8E7FA99FF-1

  3. The light is on and blocked IMG_74CDF1BDABE6-1

  4. The light is on and not blocked IMG_E28A1D1AADAF-1

That's just too confusing in my opinion. If you really need that feature, just create a switch named after the accessory which controls the blocked/unblocked status.

By the way – this is how it would look in the detail screen, which looks fine to me. IMG_C17C3DA41B2B-1

pfeifix commented 2 years ago

Seems reasonable to me not to offer the blocked/unblocked feature as long as Apple decides to display it in this confusing manner. I have seen that my fan is displayed just as you described using the example of the lamp. Very disappointing. I hope Apple will figure out another (better) way to display the blocked/unblocked states for devices in the Home App.