Home On Node
My home automation framework.
Setup
To setup a new Raspberry Pi, follow the Raspberry Pi Headless Setup instructions.
Clone Repo
git clone https://github.com/petele/HomeOnNode.git
cd HomeOnNode/app
mkdir logs
npm ci
- Update
Keys.js
Set up log rotation
Edit /etc/logrotate.conf
and add:
"/users/pi/HomeOnNode/app/logs/rpi-system.log" {
rotate 4
weekly
missingok
nocompress
}
appGPIO
cd ~/HomeOnNode/app
npm i onoff
appBedJet
cd ~/HomeOnNode/app
npm i node-ble
- Setup BLE permissions: https://www.npmjs.com/package/node-ble
- Create initial
config.json
file
appFlic
- Follow instructions at https://community.home-assistant.io/t/install-flic/16969/4
login.sh
to run automatically
Set cp ~/HomeOnNode/login.sh ~
- Edit
~/login.sh
and have it start whatever is necessary. - Edit
.bashrc
and add./login.sh
to the bottom of the file.
Celebrate!
Other notes and resources
Interesting projects
Harmony Info
Archive - No longer used
Install Z-Wave
- Install USB stuff for z-wave
sudo apt-get -y install libcap2-bin libudev-dev libusb-1.0-0-dev libpcap-dev
- Follow instructions from OpenZWaveShared
sudo ldconfig
git clone https://github.com/OpenZWave/open-zwave