-
Notifications
You must be signed in to change notification settings - Fork 60
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
BLU direct controll through bluetooth #111
Comments
I use it in my car to disconnect the battery! Perhsps you can use the script. I made some changes but can't remember who was the original creator but it works great (Bluetooth-Gateway has to be deactivated): to pair a BLU-device you press the button after connecting power (time to pair is 10 sec): // ----------------------------------------------------------------------- let BTHparsedd = null; // ACTION FUNCTION if (BTHparsedd.Button === 1) { let KVSbtn = { // BLUETOOTH SCANNER function getByteSize(type) { let BTH = []; let BTHomeDecoder = { let _bth; let ShellyBLUParser = { function replace(origin, substr, replace) { let last_packet_id = 0x100; // SCAN OF PAIRING / UNPAIRING BUTTONS (One click for Pairing, Double click for Unpairing) let BTHparsed = ShellyBLUParser.getData(res); for (let item in buttons_cache) { console.log("Shelly BTH packet: ", JSON.stringify(BTHparsed)); function bleReceived(BTHparsed, res) { let program = { if (bleScanSuccess === false) { program.init(); |
No description provided.
The text was updated successfully, but these errors were encountered: