Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Welcome to the avea node wiki!
This page details the instalation procedure to get one or more ElGato avea lights run, controlled by Siri. To get this thing running, you have to install HAP-NodeJS, a Node.js implementation of HomeKit Accessory Server.
In my case I've installed HAP-NodeJS following the instructions from this web page (I've corrected some missed details):
First connect remotely with PuTTY or something like that to the raspberry pi2b and then follow exactly this steps:
cd /home/osmc sudo apt-get update sudo apt-get upgrade -y sudo apt-get remove nodejs-legacy sudo apt-get install git-core libnss-mdns libavahi-compat-libdnssd-dev -y
Download the most updated version of the "node" package
wget http://node-arm.herokuapp.com/node_latest_armhf.deb sudo dpkg -i node_latest_armhf.deb
Install Node Package Manager (npm):
sudo apt-get install npm sudo npm install npm@latest -g
Check the versions of the packages installed on your raspberry ...
node -v && npm -v
2. Install HAP-NodeJS
Add all the necessary packages...
sudo npm install -g node-gyp git clone https://github.com/KhaosT/HAP-NodeJS.git cd HAP-NodeJS/ npm install node-persist && npm install mdns npm install debug && npm install curve25519-n && npm install ip npm install ed25519 && npm install request && npm install noble npm install onecolor npm install fast-srp-hap npm install buffer-shims npm install winston npm install promise-queue npm install avea_bulb npm rebuild
2.1 Let's get this thing started
Start the service as super user (it's neccessary to access the bluetooth hardware) and check that everything was correctly installed.
sudo node BridgedCore.js
2.2 Help! I have errors!
If you have errors during the solution is always the same: First check the error message and then add the module that generates the error. Maybe you have to remove the avea_node folder once again before adding requested modules:
rm -rf ./node_modules/avea_node
Now add the needed modules with
npm install [requested module]
Then repeat step 2.1 once again.
Please, if everything works fine, take one minute to place a comment here saying whether it worked or not. And include the version of kodi/osmc/raspbian you are using.
2.3 Let's talk to Siri
To see the logs you can type
This allows you to see the software output while you speak with siri. You can also create a service that starts this process automatically on every raspberry pi restart. HowTo add HAP–NodeJS as a service at startup ...
Now it's time to do a first test with your home app. Try to connect to the bridge and have a look on the fake devices. You find the pin you will be asked for in the file BridgedCore.js
┌────────────┐ │ 031-45-154 │ └────────────┘
3. Configure your avea accessory file
Have a look in the accessory folder. Maybe you want to move the fake devices to a sub folder:
cd ~/HAP-NodeJS/accessories/ mkdir fake mv *accessory.js ./fake
Now place file
Sample_1Avea_EN_accessory.js in the accessories folder.
cd ~/HAP-NodeJS cp ./node_modules/avea_node/accessories/Sample_1Avea_EN_accessory.js ./accessories/
And now everything is ready to start the service.
sudo node BridgedCore.js
There you go!
If you have more than one bulb try
dining_bulb_accessory.js. Edit the file, make a copy and rename it for each bulb.
cd ~/HAP-NodeJS cp ./node_modules/avea_node/accessories/dining_bulb_accessory.js ./accessories/nameLightOne_accessory.js