steilerDev / homebridge-openhab2-complete

A homebridge plugin for openHAB, that has the expectation to fully support all Services offered by Apple's Homekit Accessory Protocol (HAP)
GNU General Public License v3.0
52 stars 16 forks source link

Lightbulb service does not change colour for color item until brightness is changed #58

Closed DigiH closed 2 years ago

DigiH commented 4 years ago

Hi, first of all thanks for a great homebridge plugin, which I have thoroughly enjoyed since implementing it a few days ago.

I have now come across an issue where I'm not sure if I am missing something, or if this is a genuine bug.

I have defined a Lightbulb service linked to a color item in openHAB, which I want to use as a proxy to actually turn on various light scenes in a room with different colours and being able to change the brightness of these lights.

Everything is working fine, apart from changing the colour. Only after changing the brightness does to colour change happen.

In trying to get to the bottom of the problem I have created a simple 'non-proxy' Lightbulb service linked to a color item which directly controls a color defined OH light bulb. Here the same issue appears.

Steps to reproduce:

With the above steps no colour change happens at all, only as soon as the brightness slider is touched and slightly changed the previously selected colour will also appear. Only from then on do colour changes also happen when selecting predefined colours or using the colour wheel. Until the light is switched OFF and ON again.

Same thing when trying to control with Siri.

I have created some logging in OH for this, and until a brightness change happens the Lightbulb service only ever receives an ON command, therefor not affecting any colour change.

Configurations openHABian 1.5 on Raspberry Pi 4 iOS 13.1.2 openHAB 2.5.0 M3 homebridge 0.4.50 homebridge-openhab2-complete v1.1.0

Has anybody else come across this, or is there any additional thing I can try to get to the bottom of this?

Thanks

jensliebau commented 4 years ago

openHab 2.5.0 M3 homebridge 0.4.50 HueBridge SW: 1934129020

weakfl commented 4 years ago

refs #57

steilerDev commented 2 years ago

Should be fixed with v1.3.4 / f340d95