Giter VIP home page Giter VIP logo

homebridge-awox's People

Contributors

dragouf avatar rethorique avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

devdevdavid

homebridge-awox's Issues

Use plugin without mqtt

Hello,
Thanks for plugin.

  1. Can I use in config.json only mac address (without mqtt configuration):
    {
    "accessory": "AwoxSmartLight",
    "name": "My Lamp",
    "lampMac": "d03972b84926"
    }
  2. If I can, way mqtt use in this plugin?
  3. There is a possibility to use the plugin without Bluetooth , because my pi isn't in range with lamp.

Thanks a lot

ERROR LOADING PLUGIN homebridge-awox

Hi,

I tried to control my Awox Smartlights with homebridge and the awox plugin but, when I run homebridge on my Raspberry Pi3, I always got this message :

ERROR LOADING PLUGIN homebridge-awox:
[2018-5-6 09:30:05] Error: Cannot find module '../build/Release/binding.node'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/usr/lib/node_modules/homebridge-awox/node_modules/bluetooth-hci-socket/lib/native.js:3:15)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)

I'm a noob on Raspbian, coding etc... I don't know how to fix that.
Anybody could help please ? ThanX in advance.

Does this package work?

Hi there,

first of all: I am very happy that I found a Homebridge plugin that hopefully connects my Awox bulbs. I installed your Homebridge plugin "homebridge-awox".

During the installation process of your plugin (npm i homebridge-awox -g) the following errors occurred:

node-pre-gyp ERR! Tried to download(404): https://github.com/tessel/node-usb/releases/download/1.3.1/usb_bindings-v1.3.1-node-v51-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v51 ABI, glibc) (falling back to source compile with node-gyp)
> [email protected] install /usr/local/lib/node_modules/homebridge-awox/node_modules/bluetooth-hci-socket
> node-gyp rebuild

make: Verzeichnis „/usr/local/lib/node_modules/homebridge-awox/node_modules/bluetooth-hci-socket/build“ wird betreten
  CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o
../src/BluetoothHciSocket.cpp: In member function ‘void BluetoothHciSocket::emitErrnoError()’:
../src/BluetoothHciSocket.cpp:275:72: warning: ‘v8::Local<v8::Object> v8::Function::NewInstance(int, v8::Local<v8::Value>*) const’ is deprecated (declared at /home/pi/.node-gyp/7.9.0/include/node/v8.h:3657): Use maybe version [-Wdeprecated-declarations]
   Local<Value> error = errorConstructor->NewInstance(1, constructorArgs);
                                                                        ^
  SOLINK_MODULE(target) Release/obj.target/binding.node
  COPY Release/binding.node

Additionally the following warnings are displayed:

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/homebridge-awox/node_modules/xpc-connection):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

When I start Homebridge and turn the light on or off, the log contains an undefined in the beginning of the publishing message. Additionally the message can't find service appears:

[2017-12-28 13:16:11] [Dormitorio] Set power state on the 'Dormitorio' to true
[2017-12-28 13:16:11] [Dormitorio] lightOn...
[2017-12-28 13:16:11] [Dormitorio] publishing to: 'undefined/f4b85e3c9fc7/power' value: true
[2017-12-28 13:16:12] [Dormitorio] start scanning
[2017-12-28 13:16:12] [Dormitorio] found lamp with id: f4b85e3c9fc7 . and name:  SML_c9
[2017-12-28 13:16:12] [Dormitorio] connected to peripheral: f4b85e3c9fc7
[2017-12-28 13:16:13] [Dormitorio] cant find service...

Thank you very much for your help!!!

Cheers,
Timo

Plugin Running but Lamps don‘t react

Hi, I just installed on the raspberry pi model 3+ homebridge and also your plugin.
Was a but tricky but I found out that for the raspberry pi you have to install some drivers before and then have an optional command for the npm setup console command:
sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev
sudo npm install -g --unsafe-perm homebridge-awox
May you can include that in your readme and save some others time.

After that I can add the lamps and they show up in homekit on my iPhone.
Unfortunately the actual state is not matched and I cannot change brightness or colour or turn on or off the lamp.

May I did something wrong with the lamp mac address?
Was really not easy to find that address because it is not written on the lamp and not visible in the awox ios app were my lamps work like a charm.
On the raspberry pi bluetooth manager with a mouseover the found lamps I found the mac as popup field
Looks like A4:C1:XX:XX:XX:XX and I put in your mac configuration field:
“lampMac“ : “A4C1XXXXXXXX“
Is that correct? Any thoughts what I may can made wrong?
May that I paired/setup them with the app is a problem?
Thanks for the help

Home Assitant Compatible ?

Hey, I was wondering if this package was compatible with Home Assistant, I would love to use it with this app ! :D

is this plugin still working?

Hi,

I wonder if this plugin is still working? I am getting this error:

====================
[2020-4-22 17:31:16] ERROR LOADING PLUGIN homebridge-awox:
[2020-4-22 17:31:16] Error: Cannot find module 'bluetooth-hci-socket'
Require stack:

  • /usr/lib/node_modules/homebridge-awox/node_modules/noble-extended/lib/hci-socket/hci.js
  • /usr/lib/node_modules/homebridge-awox/node_modules/noble-extended/lib/hci-socket/bindings.js
  • /usr/lib/node_modules/homebridge-awox/node_modules/noble-extended/lib/resolve-bindings.js
  • /usr/lib/node_modules/homebridge-awox/node_modules/noble-extended/index.js
  • /usr/lib/node_modules/homebridge-awox/node_modules/awox-smartlight/src/lib.js
  • /usr/lib/node_modules/homebridge-awox/index.js
  • /usr/lib/node_modules/homebridge/lib/plugin.js
  • /usr/lib/node_modules/homebridge/lib/server.js
  • /usr/lib/node_modules/homebridge/lib/cli.js
  • /usr/lib/node_modules/homebridge/bin/homebridge
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
    at Function.Module._load (internal/modules/cjs/loader.js:862:27)
    at Module.require (internal/modules/cjs/loader.js:1042:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at Object. (/usr/lib/node_modules/homebridge-awox/node_modules/noble-extended/lib/hci-socket/hci.js:6:26)
    at Module._compile (internal/modules/cjs/loader.js:1156:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Module.require (internal/modules/cjs/loader.js:1042:19)
    [2020-4-22 17:31:16] ====================

but I am having a very hard time installing bluetooth-hci-socket on my raspberry pi 4.

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.