Git Product home page Git Product logo

hue's Introduction

Philips hue

Xiaomi Aqara

Gateway configuration

Need to set Mi Home application to "Chinese Mainland" to be able to detect the gateway https://www.openhab.org/addons/bindings/mihome/

Switch configuration

Add switch "interrupteur télécommandé sans fil Aqara"

  • open "Mi Home" app
  • activate wifi
  • [+] on the top right (no bluetooth)
  • filter "aqara", select "Interrupteur télécommandé sans fil Aqara (bascule simple)" (if several in the list try last)
  • press the switch during 10s => switch light blue blink 3 times => display confirmation added ok
  • launch "node index.js" to check SID of new switch

Compile and run

[git clone https://github.com/palevasseur/hue.git]
[npm run compile]
[node index.js]

Deploy on Raspberry

deploy

on raspberry:

  • install modules [npm install --only=production]
  • copy the bundles using lftp
cmd to ftp dist/bundle files into ~/Projects/hue folder (hue folder must exist):
lftp -e "set sftp:auto-confirm yes; set sftp:connect-program 'ssh'; open sftp://pi:[email protected]:22; cd Projects/hue; put ./dist/bundle-hue-back.js; bye"

install lftp on Window

  • download zip https://lftp.nwgat.ninja/ and unzip to C:\Program Files
  • add PATH env var "C:\Program Files\lftp-4.7.7.win64-openssl\bin"

launch script on boot

add cron task: [sudo crontab -e]

@reboot /usr/bin/node /home/pi/Projects/hue/bundle-hue-back.js > /home/pi/Projects/hue/hue.log 2>&1 &

Related

https://github.com/peter-murray/node-hue-api
https://github.com/marvinroger/node-lumi-aqara

https://github.com/aholstenson/miio
https://github.com/ioBroker/ioBroker.zigbee

hue's People

Contributors

palevasseur avatar

Watchers

 avatar  avatar

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.