____ _ _ ___| _ \ ___ _ __ ___ ___ | |_(_) _v0.2.3 / _ | | | |/ _ \| '_ ` _ \ / _ \| __| |/ __|_ / | __| |_| | (_) | | | | | | (_) | |_| | (__ / / \___|____/ \___/|_| |_| |_|\___/ \__|_|\___/___| www.npmjs.com/package/homebridge-edomoticz A Platform Plugin for HomeBridge by Marci & TheRamon [http://twitter.com/marcisshadow] [http://domoticz.com/forum/memberlist.php?mode=viewprofile&u=10884] From a clean install of Jessie on Raspberry Pi, booted up and connected to WLAN... sudo apt-get update sudo apt-get upgrade sudo reboot sudo apt-get install rpi-update sudo BRANCH=next rpi-update [fixes Wifi Ch12/13 issue with rPi3 WiFi] iwconfig wlan0 power off [fixes powermanagement issue with WiFi on all Raspberry Pi] sudo touch /etc/network/if-up.d/wlan0 [these lines make the powermanagement fix permanent] sudo chmod +x /etc/network/if-up.d/wlan0 sudo chmod 777 /etc/network/if-up.d/wlan0 sudo echo -e '#!/bin/bash\niwconfig wlan0 power off' > /etc/network/if-up.d/wlan0 sudo chmod 755 /etc/network/if-up.d/wlan0 sudo reboot [Installing Domoticz] sudo curl -L install.domoticz.com | bash [Only need to do the following lines if on RaspberryPi Model B / B+ / nonARM7 CPU] sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*} /var/db/receipts/org.nodejs.* hash -r sudo su -c 'echo "deb https://deb.nodesource.com/armv6l-node/ weezy main" >> /etc/apt/sources.list' sudo curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash - [otherwise continue from here] sudo apt-get install -y build-essential python-rpi.gpio nodejs sudo apt-get install libavahi-compat-libdnssd-dev sudo apt-get install git sudo apt-get install mosquitto sudo npm install -g node-red --unsafe-perm sudo wget https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/nodered.service -O /lib/systemd/system/nodered.service sudo wget https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/node-red-start -O /usr/bin/node-red-start sudo wget https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/node-red-stop -O /usr/bin/node-red-stop sudo chmod +x /usr/bin/node-red-st* sudo npm install -g homebridge --unsafe-perm sudo npm install -g homebridge-edomoticz --unsafe-perm mkdir ~/.homebridge pico ~/.homebridge/config.json [refer to https://github.com/PatchworkBoy/homebridge-eDomoticz, ctrl-o to save, ctrl-x to exit] sudo pico /lib/systemd/system/homebridge.service #---Start Copy---# [Unit] Description=HomeBridge Service After=multi-user.target [Service] User=pi Type=idle ExecStart=/usr/bin/homebridge [Install] WantedBy=multi-user.target #---END Copy---# [Paste (ctrl-v from win clients, cmd-v from Mac clients) ctrl-o to save, ctrl-x to exit] sudo chmod 644 /lib/systemd/system/homebridge.service sudo systemctl daemon-reload sudo systemctl enable homebridge.service sudo systemctl enable nodered.service sudo systemctl enable mosquitto.service sudo apt-get install pi-bluetooth bluetooth bluez blueman [RaspberryPi 3 only] sudo reboot [done - navigate to the device in a web browser on port 8080, configure Domoticz, add sensors, reboot. Pair to the Homebridge from your iOS device.]