-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to Control Multiple Devices Consistently #3
Comments
I have four GE lights (no RGB). I could control them at the same time using a group without any problem.
|
Initially I was using a bluetooth dongle, which was passed through ESXi to an Ubuntu VM which I thought was the culprit (something in the chain there). I did a fresh install of Ubuntu ARM64 on an RPi4 using the internal bluetooth and the result is the same. The only common denominator between these two instances is Ubuntu, so perhaps I will try a different distro to see if results are any better.
Location of the RPi doesn't seem to change behavior
Every command as a group exhibits this behavior: On, Off, CCT (temp), Brightness, RGB (Color Wheel)
Yes both light group functions, as well as the on/off switch at the top of the 'Light' entity exhibit the same sporadic control
I did some testing in the developer tools sections by just issuing commands to vanity_1 and vanity_2, and the problem persisted, very rarely would it actually control them together. I can try to completely eliminate some in the config and report back to see if that improved at all
Not in this instance, but that is my desired end result. |
When you group the light using home assistant. Home assistant will send command almost at the same time (Due to the lock mechanism in the code, they emit one right after the other). You could try to add a few more light groups with various number of GE lights to test how many it can handle. One possibility is that somehow the bluetooth mesh could only handle 4 to 5 sequential commands at the same time. For me, 4 lights can be toggled at the same time. A potential workaround of this problem is to add a few milliseconds of delay right after each sent package. I.e., after the command of def send_packet(self, id, command, params):
# the lock mechanism is to prevent the simutaneous packets if
# you control two devices at the same time though a group.
self.lock.acquire()
try:
self.link.send_packet(id, command, params) in light.py |
I tried that with values .05, .01, .005, .003, .002, .001 and it introduced "wonkiness" - Commands show up really late (several seconds) or don't show up at all. Doesn't seem to change the bulbs not being controlled together consistently. |
I factory reset my lamps, removed 3 of them from power, and created a new location (generating a new username and password from the getconfig.py script) I added just 3 lights to the location in C by GE, and imported the new config to Home Assistant. Even with just 3 lamps group control is sporadic/random. There is no perceivable difference than my 6 lamp setup, the lamps have a very low chance of reacting to group commands. |
Hello, I'm experiencing the same issue and was wondering if any solution was found, thanks. |
I encountered the same problem using a Bluetooth chip BCM4339/4335. |
I hope to have time to test/deploy this over the weekend, will let you know. Might I ask what bluetooth chipeset you were using previously with no issues? |
The original bluetooth chip that gives no problem is |
Weird. I was using a RPi4 which uses a CYW43455 which I was under the impression is equivalent/identical I also tried a USB adapter with a CSR8510 A10 and results were the same |
I recently revisited this custom component. I have tried it both with and without your sleep addition in 6546cfb It works well with your addition, but it also seems to work well now without it. |
Individual control of lamps works great after your recent update.
However when I try to control my group of lamps (total 6) not all of the lamps receive commands. It seems 1-3 of the lamps react when controlled as a group
I'd be happy to provide whatever info you'd like, although nothing appears 'wrong' in the debug logs.
The text was updated successfully, but these errors were encountered: