bwssytems / ha-bridge

Home automation bridge that emulates a Philips Hue light system and can control other systems such as a Vera, Harmony Hub, Nest, MiLight bulbs or any other system that has an http/https/tcp/udp interface. This is a compact impl to run on small format computers. This is impl started from this project https://github.com/armzilla/amazon-echo-ha-bridge.
Apache License 2.0
1.45k stars 198 forks source link

CCT Lamp Color_temp #1352

Open tegger2000 opened 2 years ago

tegger2000 commented 2 years ago

Hello, I have some lamps with white range. There is also the possibility with Hue and Alexa to switch between 5 white color cases. Is it possible with HABridge to emulate this as well ? If yes, how ?

bwssytems commented 2 years ago

You have to setup the color command by using the edit scren.

tegger2000 commented 2 years ago

i'm sorry, but could you please give me an example of what I do at Tasmota for example ? For RGB colors the following works: http://192.168.123.234/cm?cmnd=Color%20(${color.r},${color.g},${color.b}) But for white I need a CT value CT | 153..500 = set color temperature from 153 (cold) to 500 (warm) for CT lights

steviehs commented 2 years ago

When I ask Alexa - with color enabled device - it states "This device does not support it" (in German :-) when I am asking to make the light colder. So I guess it needs more.

tegger2000 commented 2 years ago

German answer: I am still standing a bit on the tube I have lamps with Tasmota and the Tasmota Hue emulation. There I can choose with Alexa between, "Warm White, warmwhite, white, daily white and cold white (also German version) ". With an RGB-CCT lamp, the emulation does not work. In addition, I also have lamps with Esphome and Zigbee whose white light is variable. So is it possible to emulate a CCT lamp with ha-bridge or not ? For all three I need a color temperature value

steviehs commented 2 years ago

Hmm... now I have nice GU10 Bulb with RGB and CCT... but via ha-bridge, I can only choose inside the RGB range... I thing CCT is some different HUE API which is not supported yet by ha-bridge? Gee... I think I have to reinstall a java IDE :-)

bwssytems commented 2 years ago

So the api version that habridge supports hsb, xy and ct. So maybe it is the device type return it does not like.

steviehs commented 2 years ago

I think it is just an understanding problem :-) (Layer 8 :-)

The device is a home assistant device controlled via api. Aside from color, it suports also color temperature. But where do I set this ct in habridge?

This is how the http body of "color items" looks like: grafik

So where do I place something similar for color_temp? For my understanding I would expect another row called "color temp items"? Could you give me an example how it would work?

bwssytems commented 2 years ago

Ahh, gotcha. The habridge does not have CT passing mechanism currently only the ones listed here https://github.com/bwssytems/ha-bridge#value-passing-controls