samsam2310 / bluetooth-chsmartbulb-python-api Goto Github PK
View Code? Open in Web Editor NEWHacking "Chsmartbulb" BT/BLE LED bulb speaker
License: MIT License
Hacking "Chsmartbulb" BT/BLE LED bulb speaker
License: MIT License
Based on code in this repository, I worked on a SmartThings integration
https://github.com/matthid/ilamp-communication
As this is now running for months without issue on my system I decided to open-source it and write some documentation. Maybe it helps someone :)
/cc @samsam2310 @pfalcon
Hello,
I just bought a light bulb which should be a Chsmartbulb.
Unfortunately it does not respont to any commands.
The test-script fails at #508
python test-script/light.py
no device specified. Searching all nearby bluetooth devices for
the SampleServer service
connecting to "Serial Port Service - Channel 2" on F4:4E:FD:D1:5D:74
01fe000041021000470c000000000000
Traceback (most recent call last):
File "test-script/light.py", line 46, in <module>
assert r == h("01fe0000410210000100000000000000")
AssertionError
If I comment out the assert command I get
>python test-script/light.py
no device specified. Searching all nearby bluetooth devices for
the SampleServer service
connecting to "Serial Port Service - Channel 2" on F4:4E:FD:D1:5D:74
01fe000041021000470c000000000000
open
01fe000041811600355d000034304c42010100001300
Unfortunately I cannot see any changes on the light bulb.
Could you please give me a hint, how I can adapt the protocol?
Thanks :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.