brutella / hkknx-public

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

Push Button Confusion #266

Open BugRoger opened 1 year ago

BugRoger commented 1 year ago

There is something weird going on with the Button accessory. When using multiple "Sub-Buttons" the Homekit scene/automation that is executed switches around seemingly randomly. That is without any configuration change in hkknx and Homekit.

It started recently either with an iOS or hkknx update. It worked as expected and reliable until hkknx < 2.5.0. It is possible that a recent iOS update is the culprit too.

Unfortunately, I can't really pin point the cause and am at a lost how to debug what's going on. My suspicion is that a hkknx restart shuffles the internal mapping from Button1/2/3. I tried to "fix" the mapping by changing the scenes in Homekit using try and error. That worked for a while. Rebooting a Homepod broke it again - though that seems totally nuts. I guess, that was a coincidence and actually the 16.3.2 update messed it up.

Here's my configuration. KNX scene 3 configured to Button1 Double Press should execute the Homekit scene "Make less Noise". It currently executes Button3 Double Press with Homekit scene "TV mode".

image File File (1)

petnau commented 1 year ago

Hi,

I have a similar issue. All of a sudden the buttons have switched places or back in unconfigured state.

brutella commented 1 year ago

Nothing changed in hkknx since version 2.5.0 regarding buttons. I suspect that a recent iOS/HomePod update messed this up. 🤷‍♂️

BugRoger commented 1 year ago

Buttons do get shuffled every once in a random moon 🤷 After it got shuffled again I came up with a workaround. It works as long as there is only 1 button per accessory. I created 3 accessories with 1 button each. Problem "solved".

cptbalusgit commented 2 weeks ago

I actually experienced the same still from time to time, so switched over and now I use one button for every scene just as you do. hkknx V 2.8.2b and iOS/tvOS 17.5.1