dotsam / homebridge-milight

MiLight/LimitlessLED/Easybulb Plugin for Homebridge
MIT License
63 stars 12 forks source link

Several V6 questions #37

Open dharrison8815 opened 6 years ago

dharrison8815 commented 6 years ago

Hello!

I am currently experiencing some bugginess using some milight v6 bulbs. Please know that I do not have much experience with coding.

1) It seems when asking Siri to change the color of any given light, that a hue command of 0 is sent first. For instance, if the light is currently in white mode and you ask Siri to change the lights to blue- the lights will momentarily flash to a hue of 0(a near red- magenta color) before changing to blue. Occasionally, some groups would not even finish the chain of commands leaving some bulbs stuck on the magenta color. Is there a way to get around the hue 0 command and have the lights go directly to the hue value of the color required?

2) Speaking of the extra hue command. In this, I have learned that the v6 bulbs do not view solid red as a hue of 0 but instead the afforementioned near red, magenta color is represented (in using the stock milight app, I've found a hue of 10 or so to be 'true' red). This threw me off when I asked Siri for red and the result was magenta. Is it possible to program red as starting at a Hue of 10-11 rather than zero?

3) Does Siri understand any form of color temperature commands? Or is there a better app that the standard apple "Home" app to use in conjunction with Milight and Homebridge?

3b) I would like to have my milight v6s change color temp throughout the day to match the temp of the sunlight coming in the windows. How could I best do this? I tried to use scenes (Scene Warm White, Scene Cool White, Scene Natural White) but the scenes would not correctly recall the color- most of the time, the lights would end up in a color mode that was way off from the target color.

3c) If the two priors are not options, is it possible to customize the "default" white color temperature? Perhaps something a bit warmer? Is this something the end users could control via their config file? Even specifying custom color temps per each individual v6 bridge?

Thanks in advance,

Dusty trying to both have and eat my cake

dotsam commented 6 years ago

Hi Dusty,

Sorry about the late response here. I've got a beta version that I haven't pushed out as stable yet because I've yet to fully test a few things, and I just haven't had the time to yet. This version should hopefully fix the problems with switching between different modes on any given command, at the expense of a small bit of additional latency. It also implements the new HomeKit colour temperature characteristic for controlling both white and fullColor bulb types in a much nicer way. I don't know the full syntax for how Siri handles colour temperature, but the Home app does have a "Color" tab that works correctly. This should also let a scene specify a colour temperature and work consistently.

This beta version can be installed with npm install -g homebridge-milight@beta. Please let me know how it works for you.

In regards to the hue being shifted, some differences in the v6 bulbs are noted here (https://github.com/mwittig/node-milight-promise#color-model), but as I don't have any v6 bulbs myself, I can't speak to exactly how this manifests in real-world use.

normen commented 6 years ago

I did test the beta and there still seems to be issues with my v4 (I think) base station running the v3 protocol, so caution is advised :) It didn't properly control the lamps, only some of the commands seemed to get through.