GithubHelp home page GithubHelp logo

homebridge-magic-blue-bulb's People

Contributors

lucavb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebridge-magic-blue-bulb's Issues

ERROR LOADING PLUGIN homebridge-magic-blue-bulb Error

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! :)

lost connection with bulb

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 ?

Unable to get Plugin working

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?

TypeError: Invalid event target

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.

I made a version of this compatible with mac OS

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!

I made a version of this compatible with Triones RGB LED BLE devices

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:

https://www.amazon.de/iLC-Strahler-Telefon-APP-Steuerung-million/dp/B07RL74CF9/ref=pd_lpo_201_t_2/257-6528870-5212838?_encoding=UTF8&pd_rd_i=B07RL74CF9&pd_rd_r=2573d4b3-935f-4fa2-b714-cf09e5d090db&pd_rd_w=VlB8G&pd_rd_wg=xPeYO&pf_rd_p=d5c9797d-0238-4119-b220-af4cc3420918&pf_rd_r=3MGKPB6HECPEZFTF9X87&psc=1&refRID=3MGKPB6HECPEZFTF9X87

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 :)

Failed loading plugin

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] ====================

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.