-
Notifications
You must be signed in to change notification settings - Fork 23
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
question: other lights #48
Comments
Hi @orrpan, having other bulbs supported would be really interesting if you can re-use the existing code to do it 🙂 Can you provide more info about the manufacturer / model? |
Okey, I’ll make another lib file. Model and brand is unknown, it’s the onces with speaker and rgb light. The most “name” of them that I have figured out is the app name, “My Light”. I still have the decoding of sound and alarm left. But all colors, on/off, brightness, effects and white is done (and the algorithm for generating their checksum) Edit: I’ve not decoded the responses when action is sent. Also when connected it is possible to tigger the bulb to send all current values, this will be done when everything else is done |
@Betree I figured out all checksums. Was really easy all bytearrays (2-byte addition) has to be a total value I do have some problem with receiving, the handler 0x000e is the one to read from (with gatttool) but it does not give me any value. I can see in my wireshark log how a response is sent from the bulb at this handler (after an wirte request is done), but it does not seems to stored as "last message". Any good guesses? I've tried gattool --listen, to see if any response will arrive but no luck. It seems like the answer is sent directly but I'm too slow/not synced to read it. Snippet from wireshark
Edit: It is not really necessary to get the response for every packet but for the current status if bulb is disconnected and connected would be good |
The whole No 4, Sent Read Req
|
I'm almost done implementing an other bulb, the functions are of the same but other byte arrays and a little other stuff. For a later pull request, do you prefer a new
....lib.py
file so that the repo becomes a more of a pythonbulbblue
package or trying smashing everything into one?I still have decoding the read response packages and the timer functions.
The text was updated successfully, but these errors were encountered: