lucavb / homebridge-magic-blue-bulb Goto Github PK
View Code? Open in Web Editor NEWMagicBlue LED Lightbulb Plugin
License: GNU General Public License v3.0
MagicBlue LED Lightbulb Plugin
License: GNU General Public License v3.0
I am using homebridge with my Raspberry Pi Zero W and latest Rasbian Lite. I successfully added magic-blue bulb to my iOS device, but when I want to change its state (on-off, brightness, color), it stucks at loading. I got v9 model bulb, so in index.js file I changed handle to 0x000b. But still no result. Other light bulbs like xiaomi are working fine. Also I can control magic blue bulb using gattool commands, it works perfect, but from ios device it fails. Please help me! :)
hello you can kindly help to install the plugin of raspberry?
Hi!
First of all, nice job! I found your repository and noticed it didn't work because of the lack of MAC addresses for BT devices on Mac. So i rebuild your plugin to use the native services
and characteristics
of the BTLE lamps.
I initially figured i could keep them working side by side (Raspberry Pi / Mac), but had to change quite a lot of code to get it to work.
Here it is; https://github.com/terwanerik/homebridge-magic-blue-bulb
Maybe someone can figure out if this works on Raspberry Pi as well? Than i'd be more than happy to do a pull request :)
Cheers!
Hi, I tried to use your plugin to control my RGB Led strip via Homebridge. It is also controlled via the HappyLighting app. I have the MAC address but it doesn't seem to connect. also tried different plugins but same problem. Do you have any idea?
Hi
I'm running home bridge using Homebridge on Bootup (init.d)
How Can I add a custom plugin to homebirdge ?
I Installed your alpha and rebooted homebridge successfully. The log doesn't show any errors. When I add the device to the Config.json file with the correct MAC address and reboot, homebridge loads as normal, writing "Homebridge is running on port XXXXX." to the logs. Then immediately after, the following is printed twice:
TypeError: Invalid event target
at setupSubscription (/usr/local/lib/node_modules/homebridge-magic-blue-bulb/node_modules/rxjs/src/internal/observable/fromEvent.ts:229:11)
at Observable._subscribe (/usr/local/lib/node_modules/homebridge-magic-blue-bulb/node_modules/rxjs/src/internal/observable/fromEvent.ts:204:5)
at Observable._trySubscribe (/usr/local/lib/node_modules/homebridge-magic-blue-bulb/node_modules/rxjs/src/internal/Observable.ts:238:19)
at Observable.subscribe (/usr/local/lib/node_modules/homebridge-magic-blue-bulb/node_modules/rxjs/src/internal/Observable.ts:219:14)
at SwitchMapOperator.call (/usr/local/lib/node_modules/homebridge-magic-blue-bulb/node_modules/rxjs/src/internal/operators/switchMap.ts:99:19)
at Observable.subscribe (/usr/local/lib/node_modules/homebridge-magic-blue-bulb/node_modules/rxjs/src/internal/Observable.ts:214:25)
at TakeUntilOperator.call (/usr/local/lib/node_modules/homebridge-magic-blue-bulb/node_modules/rxjs/src/internal/operators/takeUntil.ts:61:21)
at Observable.subscribe (/usr/local/lib/node_modules/homebridge-magic-blue-bulb/node_modules/rxjs/src/internal/Observable.ts:214:25)
at MagicBluePlugin.findBulb (/usr/local/lib/node_modules/homebridge-magic-blue-bulb/dist/magic-blue-plugin.js:69:14)
at new MagicBluePlugin (/usr/local/lib/node_modules/homebridge-magic-blue-bulb/dist/magic-blue-plugin.js:58:14)
at /usr/local/lib/node_modules/homebridge/src/server.ts:357:50
at Array.forEach (<anonymous>)
at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/src/server.ts:330:29)
at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:156:12)
at cli (/usr/local/lib/node_modules/homebridge/src/cli.ts:80:10)
at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
Homebridge then reboots and the process loops.
Here is the text for the device on Config.json. If I remove this line, homebridge boots normally.
{
"accessory": "magic-blue-bulb",
"name": "MagicBlue",
"mac": "C4:BE:84:41:AD:EF",
"handle": 46
},
Let me know if you need any additional information and thank you for reading this.
Hi Lukas,
I modified your plugin with full Triones support in Homekit. Since I am security network engineer and haven't so deep knowledge of coding i modified the code to be compatible with Triones devices like these:
Hope that is ok? I sill use it for private purposes. If I have the OK of you I will upload this plugin to github to make it usable for all who want to use it. Thanks for the basic idea with noble and best wishes for XMAS and happy new year :)
Can I add more than I bulb ?
Hi
I'm not able to run after install
ERROR LOADING PLUGIN homebridge-magic-blue-bulb:
[2018-10-23 13:47:06] Error: Cannot find module '../build/Release/binding.node'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object. (/usr/lib/node_modules/homebridge-magic-blue-bulb/node_modules/bluetooth-hci-socket/lib/native.js:3:15)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
[2018-10-23 13:47:06] ====================
Hi
Finally I resolve the issue with installation, there need to be sudo access granted to node.
But now when I run homberidge.
[3/16/2017, 5:45:29 PM] [MagicBlue] lost connection to bulb. attempting reconnect ...
[3/16/2017, 5:45:30 PM] [MagicBlue] reconnect was successful
But even when I click turn on/of nothing happend.
Shoudl I change handle value or something ?
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.