Closed maxakuru closed 6 years ago
Hi,
Unfortunately i don't use DotStar LEDs in SPI mode to replicate, but one of the problem maybe be the division of the leds per lights (242 / 4 = 60.5), i recommend to setup the leds number to 240 so there will be no problem at this level. Regarding the error you paste i believe i understand what the problem may be. With native esp lights i send r,g,b values that i receive from entertainment application, but i cannot pass these values to deconz or original hue bridge (don't know what exactly what you use for Philips bulbs) because these accept xy or hs color modes so i convert the values to xy cie values. In order to turn off the lights completely i believe the application send the values 0 to r, g and b, and here the conversion formula fail. I will made a new commit to send "off" request when this happen.
BTW in the HueEmulator3.py file there is following syntax:
if fremeID == 24 : #24 = every seconds, increase in case the destination device is overloaded
For esp lights i send all frames because they have build it udp server and are able to process this rate, but deconz or original hue bridge need to receive these using http server that is slower and for this i implement one counter that is not optimised. I choose to send one request every second by setting this to 24, this works good with YeeLight bulbs, but i don't test with Deconz.
I’ve tried 240 pixels and it still has the issue. I understand you have no way of testing (and no reason to) so I’ll try to fix it myself. When/if I get it, I’ll post in a new issue my resolution or make a PR if it’s a significant change to the esp code.
Thanks for looking into the division by zero issue, 1 update/sec sounds good.
May i know what is your gateway device to zigbee bulbs?
I use a gen 2 Philips Hue Bridge. All lights in my home are Hue except for the DotStar lightstrip.
Got the same error with yeelight strip (division by zero) before that, entertainment mode and Hue Sync App works great
have a look at the log. https://pastebin.com/eyGkTM1N
I made now a new commit, can you test it? For Yeelight is plenty space for improvement because it accept raw rgb data that hue entertainment is sending.
i guess you have a typo somewhere
(i just used the install script again to update)
Sorry, i fixed.
no problem.. i'm glad you are here to fix it :)
found another typo right now
something wired happened while i paste the new content. Hope this is last one.
@UniCizin i can do one considerable improvement for yeelight, are you able tot test it?
i guess i still have a bit time for this tonight..
otherwise i can test it tomorrow (holidays, yey)
just tell me when the update is out :)
if we get these yeelights up and running i will buy a lot more i guess ^^
Done, I'm waiting for feedback if nobody complain anymore about this i will consider the issue solved.
okay, i have some good news and some bad news..
the good ones...
it now runs flawless (from coding) even Razer Synapse can synchronize (even it is a bit slow)
the bad ones:
Blue and Red are only a purple tone .. Green is perfect.
Please start new issue, this must remain opened for "ZeroDivisionError". I believe issue is just with Yeelight so i will install back mine and perfrom the test
okay, i will make a new post about this. And with the ZeroDivisionError gone, you could add Razer Synapse to the working apps i guess.
@maxakuru @UniCizin @mariusmotea I think this issue got a bit sidetracked towards the end. Does the ZeroDivisionError still exist or not?
@cheesemarathon The divide by zero is resolved. I can't speak to the color accuracy, but that's another issue that could be opened if someone feels the need.
Closing 👍
First, thanks for the awesome project. Amazing work.
Background:
WS2812BHueStrip
sketch (changed the NeoPixelBus templates to<DotStarGrbFeature, DotStarSpiMethod>
)Issues:
hue-emulator
service. I stopped the service and ran the emulator manually and got an error that seems to be the root, here's the trace:Trace:
What I've tried:
I just noticed the
division by zero
error, and figured I'd post an issue. While I'm here I decided to detail the other issues I've had. Any idea where I should look to next? Any ideas about the flickering?Cheers!