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

Color temperature lights #77

Open nwpr opened 4 years ago

nwpr commented 4 years ago

Currently there is no possibility to expose a color temperature light to HomeKit. I am using Hue Color and Ambience lights, which have multiple channels for controlling the light. Just like many other color temperature lights.

There is one "Dimmer" item/channel for setting the brightness and another one for setting the color temperature. To have this displayed as one item in HomeKit (as the Hue Bridge does), I would suggest adding a second type of "light" as HAP service which can take these two items to expose it correctly to HomeKit. Or adding one more optional argument to "light".

Using a proxy item would not work, as there is no other item type we can use. The color type results in a full color light exposed to HomeKit, not just color temperature.

In my opinion this problem has to be addressed in the openHAB core, since there should be a specific item type for this purpose. But providing this plugin as use-case would definitely not be enough to justify that great amount of change in the openHAB core.

What are your thoughts on this?

tbsbckr commented 4 years ago

+1 for this, facing the exact same problem - I too think it should be addressed by openHAB with a new item type but a special item in Homebrige (lightbulb-temp) would be great. Config should have two items: dimmer for brightness and one for temperature

steilerDev commented 3 years ago

This will be a bigger implementation effort, since Light is actually the most complicated item and adding another dimension will not be trivial. I will push this for the moment, but feel free to send a PR. If you are interested in fixing this feel free to contact me.

jensflorian commented 3 years ago

Adaptive lighting is now supported by homebridge-hue. (See here). This will change color temperature during time and requires selection of adaptive lighting preset in HomeKit. It would be great if we can call this preset from OpenHab too.