steve228uk / homebridge-magichome

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

LEDENET UFO #6

Open ckreed opened 7 years ago

ckreed commented 7 years ago

I can cycle power on the strip, but I cannot control brightness or color(s). This uses the MagicHome app just fine, but homebridge only controls the power on/off.

Here is what I have: https://www.amazon.com/LEDENET-Controller-Android-Smartphone-Control/dp/B00MDKOSN0/ref=redir_mobile_desktop?_encoding=UTF8&keywords=ledenet%20ufo&pi=SY200QL40&qid=1482177267&ref=mp_s_a_1_1&sr=8-1

tmarcus02 commented 7 years ago

@ckreed Yes I cleaned up the options, RGBWv3 should work for your controller.

ckreed commented 7 years ago

@tmarcus02 :-( Sorry, the Home app and flux_led.py will turn on/off the strip, but that is all. No color or brightness control from either (when using RGBWv3, or any of the others).

tmarcus02 commented 7 years ago

I checked back in the history and the code for RGBWWv3a is the same as RGBWv3.

if setup == "RGBWWv3a":
    msg.append(0x00)
    msg.append(0x00)
    msg.append(0x0f)
if setup == "RGBWv3":
    msg.append(0x00)
    msg.append(0x00)
    msg.append(0x0f)

The only thing I can think of is try uninstalling and re-installing using the following commands

Step 1 sudo npm uninstall -g --unsafe-perm homebridge-magichome

Step 2 sudo npm install -g --unsafe-perm tmarcus02/homebridge-magichome

ckreed commented 7 years ago

Perfect!! That did the trick. Well done.

Klangen82 commented 7 years ago

So I have read this thread an maybe I´m a bit of a noob but could someone please add a guide how you got the UFO to work? I have tested some configs etc. but don´t get a stable and working solution...

Klangen82 commented 7 years ago

So this is how I hot it to work on a Magic UFO led.

  1. I open the Magic Home app on my iphone, whent to the settings and then check the version I have. (in my case version v3) fullsizerender

  2. Installed HomeBridge MagicHome plugin via sudo npm install -g --unsafe-perm tmarcus02/homebridge-magichome

  3. Added the MagicHome to the config and depending on your version you can have RGBW, RGBWv3 & RGBWv3a an an option. image

If someone want to add this to the readme please be my guest:)

steve228uk commented 7 years ago

@Klangen82 I'll get this added and merge in @tmarcus02's changes today. Thanks for this.

GatoPharaoh commented 7 years ago

thanks @Klangen82 - works like a charm with @tmarcus02's version

Gverschueren commented 7 years ago

still have the original problem, can't do anything except put on and off.. I can not install the

npm install -g --unsafe-perm tmarcus02/homebridge-magichome

code 128 npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b master git://github.com/tmarcus02/homebridge-magichome.git /root/.npm/_cacache/tmp/git-clone-18e26f1c

can anyone help me? I'm kinda new to all this :)

GatoPharaoh commented 7 years ago

@Gverschueren possible you're just missing sudo?

Sunrise17 commented 7 years ago

im not missing sudo but still I'm receiving the same fault.

GatoPharaoh commented 7 years ago

try updating to the latest npm version sudo npm install -g npm

djdom111 commented 7 years ago

Hi, thank you for the plugin. I still do have a problem with the white led on the rgbw strip. My controller is 5ch one (http://amzn.to/2eAljEV). I tried both steve228uk's and tmarcus02's versions with the settings RGBWW and RGBWWv1 respectively. I can turn on and off, change the color of the RGB leds, but the white one is all the time on, and I can't change the brightness. I tried all the setting install/uninstall and all the time is the same. Can you help me, please. Thanks a lot.

Zacknetic commented 7 years ago

Yes I can help you. Unfortunately I'm on on vacation now so I can't give you the exact instructions. If you look at my branch of the plugin you will find a edited version which will work.

On Aug 13, 2017, at 1:07 PM, djdom111 notifications@github.com wrote:

Hi, thank you for the plugin. I still do have a problem with the white led on the rgbw strip. My controller is 5ch one (http://amzn.to/2eAljEV). I tried both steve228uk's and tmarcus02's versions with the settings RGBWW and RGBWWv1 respectively. I can turn on and off, change the color of the RGB leds, but the white one is all the time on, and I can't change the brightness. I tried all the setting install/uninstall and all the time is the same. Can you help me, please. Thanks a lot.

― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

djdom111 commented 7 years ago

Lethegrin, thank you for your reply. I found your modified plugin. However when I installed your plugin it doesn't turn on. I tried both settings RGBW and RGBWW. It looks like your modified flux_led.py doesn't work with my controller (I come back to the original plugin, I was able to turn it on and than I change only your flux_led.py and didn't turn on again. I don't want to disturb in your vacation but maybe you can quickly suggest what I can modify in the file, otherwise I will be waiting for you until you finish your vacation:). One more time thank you for your replay and help.

Zacknetic commented 7 years ago

Two questions, does home bridge run after using my plugin? You must use chmod for flux_led.py

Secondly, in your config.json are you setting pure white to true?

On Aug 14, 2017, at 10:41 AM, djdom111 notifications@github.com wrote:

Lethegrin, thank you for your reply. I found your modified plugin. However when I installed your plugin it doesn't turn on. I tried both settings RGBW and RGBWW. It looks like your modified flux_led.py doesn't work with my controller (I come back to the original plugin, I was able to turn it on and than I change only your flux_led.py and didn't turn on again. I don't want to disturb in your vacation but maybe you can quickly suggest what I can modify in the file, otherwise I will be waiting for you until you finish your vacation:). One more time thank you for your replay and help.

― You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

djdom111 commented 7 years ago

Yes, Homebridge runs ok after your plugin, there is also a wheel to change the color and everything what should be. When I press the button to on it shows that is on, but the light is off. I tried with both settings for purewhite (true and false)

Zacknetic commented 7 years ago

Just copy in my flux_led.py and index.js and use chmod on flux_led.py. Google chmod if you're unsure if it's use. ALSO open both files in something like notepad++ and make sure "line endings" are set to "unix" not " windows "

How are you copying the files by the way. What system are you using?

On Aug 14, 2017, at 11:22 AM, djdom111 notifications@github.com wrote:

Yes, Homebridge runs ok after your plugin, there is also a wheel to change the color and everything what should be. When I press the button to on it shows that is on, but the light is off. I tried with both settings for purewhite (true and false)

― You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

djdom111 commented 7 years ago

I have a system on Raspberry pi. First time I installed your plugin using this command sudo npm install -g --unsafe-perm lethegrin/homebridge-magichome than I had uninstalled it, and installed the steve's one. After it I copied your file using command sudo cp and I have the same effect (it doesn't on)

I open the files using Atom.

How to check the line endings. Where shoul I copy your files to chmode them?

djdom111 commented 7 years ago

One more time thank you for help and a great plugin. I found that andysmithfal's plugin works for me. Lethegrin, thank you and have a great vacations.

Zacknetic commented 7 years ago

Hey DJDOM, did you figure it out?

On Mon, Aug 14, 2017 at 3:00 PM, djdom111 notifications@github.com wrote:

Hi Lethegrin, I googled about chmod but I'm not sure what to do with the file. I think I will need more help from you to do the check on the files step by step. I'm totally new to this. I will be really grateful if you find for me a little bit of your time. If it's other or simpler way to check what can be wrong with the file, just let me know. One more time thank you for everything.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/steve228uk/homebridge-magichome/issues/6#issuecomment-322278877, or mute the thread https://github.com/notifications/unsubscribe-auth/AFYk1xYCaNeSE-VjIjBi83Jpcyn1rw0kks5sYJlrgaJpZM4Lnc_t .

djdom111 commented 7 years ago

Hi Lethegrin, I did use andysmithfal's plugin. This one works for me without any problems. I don't know what is the difference between yours and his but I wasn't able to figure out yours. One more time thank you for your help :)

zandegran commented 6 years ago

andysmithfal's flux_led.py solved the problem. Thanks @djdom111 for finding a solution. The difference is that this does not support prorocol LEDENET as supported by https://home-assistant.io/components/light.flux_led/