steve228uk / homebridge-magichome

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

Only uses the first four LEDs #65

Open SenneDeVocht opened 5 years ago

SenneDeVocht commented 5 years ago

I think every function in the app works, but only with the first four LEDs. Sometimes even just the first two! This is a bit of a problem, because my ledstrip is 120 LEDs long... I'm using a WS2812B ledstrip and the LED SPI Controller.

If someone knows what I'm doing wrong, please tell me.

toshibochan commented 5 years ago

This homebridge is not for addressable led controller

Zacknetic commented 5 years ago

How you even got this working for 4 WS2812B LEDs with this plugin is amazing.

toshibochan commented 5 years ago

Of 120 led in one strip only 4 turn on?

SenneDeVocht commented 5 years ago

I'm so sorry. I just noticed this isn't the github of the magichome app... I was just browsing for my problem and came across this.

If anyone is still able to help me, you may totally do that.

Zacknetic commented 5 years ago

I’ll bite. Again this has nothing to do with homebridge-magichome. Keep this in mind.

What LED controller are you using? How are you connecting your led strip to this controller? Which specific software are you using?

Please be specific. We’ll get it figured out tho.

SenneDeVocht commented 5 years ago

Sorry for the late reply (my email doesn't work correctly). I'm using this controller: https://www.applamp.nl/led-spi-wifi-controller-magic-home-voor-2812-en-28.html This app: https://play.google.com/store/apps/details?id=com.zengge.wifi And these LEDs: https://www.applamp.nl/dream-color-ws-2812-rgb-digital-led-strip-5-meter.html

The connection is just a little connector that is the same on the controller and the LEDs.

If you don't know what's causing this, don't worry, this is the wrong GitHub after all.

Zacknetic commented 5 years ago

I didn’t realize magichome made controllers for individually addressable LEDs. Cool.

While I can’t help you specifically with this one problem I’ll give you some points to troubleshoot.

1.) Look in the settings of your app for adjusting the number of LEDs attached. Unlike normal LED controllers, individually addressable controllers must know ahead of time how many LEDs there are ahead of time. Look for a setting that says “number of LEDs”.

2.) You might have received the wrong type of LEDs / controller. Ensure you received what you purchased and both the controller and the strip use the same technology. I.e. WS2812. Maybe they sent you a WS2811 strip by accident.

3.) If that doesn’t work, you may need to snip the strip. The first segment might have been damaged somehow. Only do so in a designated cutting zone. You’ll see copper pads exposed with a line down the middle.

Good luck and post back with results.

SenneDeVocht commented 5 years ago

1) Settings were set correctly (120 LEDs) 2) LEDs are ws2812b, controller should work for both ws2812 and ws2812b 3) I'm guessing I have to do this if there's a bad contact, but the LEDs work perfectly with an Arduino.

Something I think I didn't tell yet: most of the times it's just the first two LEDs working, but sometimes more. It's kinda random.

Zacknetic commented 5 years ago

Wait wait wait. Set the led size to 5 and see what happens.

SenneDeVocht commented 5 years ago

When I plug the ledstrip in, all leds flash, then just two stay on. When the colors update, there's a small chance four LEDs go on, but when it updates again, only the first two change.

Basically the same as before, but first there was a very small change six LEDs go on, which now doesn't happen anymore because the size is set to 5.

SenneDeVocht commented 5 years ago

Again, I really don't want to annoy anyone with this. If it doesn't work, it doesn't work and I'll just try to make something with my esp2866.

Zacknetic commented 5 years ago

My thinking is that while you have 120 LEDs they might be only connected to 1 controller per say... 3 LEDs. So in the settings you’d only list 40 LEDs.

But yeah. Sounds borked