-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow using multiple bulbs at the same time with magicblueshell
* `connect` can now be called multiple time with all the bulbs you want to connect to. Commands are then dispatched on every bulb one at a time * `connect` now accepts bulb version as an optional argument, allowing to connect to multiple bulbs with different versions at the same time
- Loading branch information
Showing
2 changed files
with
65 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52fa1f0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Betree,
I've installed this commit to test it out. It doesn't seem to change behaviour from HASS UI (groups still update one at a time) so I will try from the shell.
52fa1f0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The update is indeed for shell only. I've made some minor modifications in the lib but the core of this update is to be able to update multiple bulbs sequentially from the shell.
I'm not sure you can achieve real parallelism here, even with threads; I think bluetooth library / device will be a bottleneck. I still have to check BLE specifications + bluepy library details to solve these questions.