steve228uk / homebridge-magichome

A Homebridge plugin for Magic Wifi devices
MIT License
82 stars 47 forks source link

Can't set to red anymore and colours have an offset. #25

Open jensen-eric opened 7 years ago

jensen-eric commented 7 years ago

Hi, thanks a lot for that amazing plugin. Two days ago I set up my LED RGBW Warm White LED Strip with the "5 Channel Controller for RGB LED Strip" used in the tutorial and featured in the "Compatible Devices" section. I installed npm on my MacBook using homebrew and installed homebridge and your plugin following the instructions. Everything worked perfectly. Siri integration worked great too.

Today I started playing around and set the option "setup" from "RGBWW" to "RGBW" in the config.json. As expected it didn't work anymore so I reset it to "RGBWW" which used to work like a charm. Now I am still able to turn the LEDs on and off and set the color. However, the colours have some kind of offset and I cannot set them to red anymore. (It will be some kind of blueish white instead). The MagicHome App is still able to set the colours accurately (including red). Uninstalling the plugin, homebridge as well as npm, and reinstalling everything didn't solve the problem. I have no clue what happened. The settings should be just as they were. Are there some hidden cache files or something. I tried deleting the stuff in ~/.homebridge already.

Thank you in advance! :)

jensen-eric commented 7 years ago

Okay, now it works fine once again. What made it work: I ran homebridge. The log said "DEVICE COLOR: 335,16,71" (as it did every time I restarted homebridge since the problem occurred). I was still unable to make the lights red ("HUE: 0"). I then used the MagicHome app to turn the LEDs red, quit homebridge and ran it again. This time the log said "DEVICE COLOR: 255,100,50", which looked way better already! And now everything works fine again. I had, however, done the exact same thing a couple of times already and it did not work then. So I'm still not sure what happened and why. As I am a little worried that this could happen again with every color change, I would still appreciate a little bit of input on what could have caused the problems. Thank you :)

ZombieEleos commented 6 years ago

I am having this same issue, can't seem to get it to fix, was working but not anymore :(