I’m using openHAB 2.5.5 (latest) and having problems configuring my homekit the right way.
I will controll a Dimmable KNX Switch with homekit. When i klick the icon in the iOS Home App. Its sending a ON and 100 Command at the same time. The actor has timebased start percentage but its get overwritten by the command.
the challenge here - both are independent changes and from the openHAB binding perspective we dont know whether it was one click on the icon or the user did 2 different actions: click on “on” and “increase brightness to 100%”. proper fix can be done only by Apple in home app - icon click = ON.
there are similar discussions for other homekit implementations
and apparently no proper solution just some workarounds like wait 20ms and if you get the second command, ignore ON event.
I’ve connected all HomeKit dimmers via NodeRed because of this behaviour of the openhab HomeKit binding.
If I click on the icon in the home app the light turns on with the brightness level the light had when it was on the last time.
I realised today, that the HomeKit binding has made big step since I checked it the last time. This bug (yes it is and definitely not a feature) unfortunately still exists.
In which snapshot would I find this? I got the confirmation that the commit “e271705” is merged. In the snapshot I installed afterwards (2.5.6 Build #139), I cannot identify any different behaviour.
seems still not to work on openHAB 2.5.6 Build #139.
I just installed a fresh instance. I created an item with the exact configuration (copy and paste).
Dimmer dimmer_light_3 “Dimmer Light 3” {homekit=“Lighting, Lighting.Brightness” [dimmerMode=“filterOnExceptBrightness100”]}
could you please try one more time. increase delay to 100 or so Dimmer dimmer_light_3 “Dimmer Light 3” {homekit=“Lighting, Lighting.Brightness” [dimmerMode=“filterOnExceptBrightness100”, commandDelay=100]}
Unfortunately still not working at my side. I tried 100ms and even higher stuff like 1000ms. I also did the same update procedure, didn’t I? Any idea to test?
strange.
can you please try enable logging in karaf with
openhab> log:set TRACE org.openhab.io.homekit
im looking for this sequence. it will tell which commands it has received from home app and which command it has sent to item.
2020-06-10 14:54:09.313 [TRACE] [.homekit.internal.HomekitOHItemProxy] - add command to command cache: item org.openhab.io.homekit.internal.HomekitOHItemProxy@4d53a681, command type ON_COMMAND, command state ON. cache state after: {ON_COMMAND=ON}
2020-06-10 14:54:09.314 [TRACE] [.homekit.internal.HomekitOHItemProxy] - add command to command cache: item org.openhab.io.homekit.internal.HomekitOHItemProxy@4d53a681, command type BRIGHTNESS_COMMAND, command state 100. cache state after: {ON_COMMAND=ON, BRIGHTNESS_COMMAND=100}
2020-06-10 14:54:09.314 [TRACE] [.homekit.internal.HomekitOHItemProxy] - send OnOff command for item dimmer_light_2 (Type=DimmerItem, State=NULL, Label=Dimmer Light Test 2, Category=null) with value ON