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
Possible differences in bulb versions #7
Comments
This is interesting, mine shows "Hardware V7". Your changes seem to work with the V7 too so I may as well merge them. It may indeed be interesting to check the bulb version in the future. Could you run the following code in a python console and let me know about the result ?
My results are :
|
Nice that it works for your's too @Betree , I created PR #8 now. Running that code I got:
|
After few more tests I realized I was wrong : both protocols are not compatible. Of course it would be better to detect this automatically. Bluepy gives us the address type (public / random) but from what we've got I'm not sure about how we could detect the bulb version. |
Update README to inform of possible differences in bulbs versions (#7)
I think the handle problems are solved with #20. The UUID appears to be the same for all bulbs/versions. The BT-library can get the handle from/via the UUID. |
Indeed, there may still be some troubles with the address types in the future but I'll close this for now. |
This is mentioned in #4 but it seems like it hasn't been solved yet
I had to change the handle for color change to make the library work with my newly bought Magic Blue bulb. I also had issues connecting to the bulb when address type was set to random and therefore changed it to public which made connection work (not sure why, might be an issue within bluepy lib?). Changes can be seen in this commit to my fork. I have tried this on my laptop and a Raspberry Pi, both running Arch Linux.
Here is some gatttool output:
In the official magic blue app my bulb is listed with a description saying "Hardware V9", @Betree @don41382 what is the hardware version reported by your bulbs? I bought mine from http://www.miniinthebox.com/ btw.
Perhaps there is a way to query the bulbs version number or something and make the lib more dynamic in those places. Will look into this when I have some more spare time :)
Also thanks for a nice lib!
The text was updated successfully, but these errors were encountered: