htreu / OpenHAB-HomeKit-Bridge

Bridging OpenHAB items to the HomeKit Accessory Protocol
Apache License 2.0
171 stars 32 forks source link

Colorpicker sending strange values #50

Open rayzor187 opened 8 years ago

rayzor187 commented 8 years ago

Hi

I have everything up and running and so far its working good!

But i have an issue. When using the Colorpicker i get strange values from the Bridge in to OpenHAB.

If i tell siri to change the color to RED i get 3 commands in return (see below). And when converting those from HSB to RGB it gets wrong, in this case pure white.

It is converting the last HSB value recieved and in this case its white so in a way that is correct. But if you convert the middle command from HSB that would give you bright blue?! So none of the lines are correct... also it does not seam to update elegato eve when the color has been changed from the OpenHAB app.

From the Bridge

Sent to the lamp

Running OpenHAB 1.8.1, Homekit bridge installed on a Linux computer and controlling from a iPhone 6 with elegato eve.

any ideas?

htreu commented 8 years ago

I will have a look into it. Since I don't own a RGB lamp myself this very well might be a bug.

rayzor187 commented 8 years ago

Thanks! I'll look closer tonight and see if I can find something.

htreu commented 8 years ago

since I don't own any RGB lights I did a test with the Hue-emulator. The colours are exactly like I tell Siri in the command. Thus "change the color to red" will actually set the color of the emulated lamp to red.