brutella / hkknx-public

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

Turning on lights with dimmed value causes brief flashing #200

Closed mirkolenz closed 1 year ago

mirkolenz commented 2 years ago

Hello, I just discovered a bug that is related to some special configuration of my KNX system. I have multiple DALI lights and set them up to turn on with a brightness value of 100 % (irrespective of their prior dimming state). Turning them on/off works fine both with my KNX switches as well as HKKNX. However, when turning the lights on with a specific brightness (e.g., 5 %), HKKNX behaves like this:

  1. Send "turn on" telegram
  2. Send the dimming value

Contrary to that, my switch only executes the second step. This difference has the consequence that trying to turn on a light in HomeKit during night causes a very short but also very bright "flash" of the lamp.

My request would thus be to remove the first telegram that turns on the light before sending the actual brightness value.

remuslazar commented 1 year ago

it works 👍 thank you, @brutella! 💯

Graefer commented 1 year ago

Hkknx has never been better than now!