dinsdag 20 december 2016

Domoticz installation on Raspberry Pi 3



I made a step by step instruction how to install Domoticz on a Raspberry Pi 3 including a Razberry Z-wave board using the RASPBIAN JESSIE LITE image.



Format SD card with SDFormatter v4.0


Download and write RASPBIAN JESSIE LITE image to SD card with Win32 Disk Imager.


* as from November 2016 Raspbian has disabled the SSH server by default.
workaround: place a file named 'ssh', without any extension, onto the boot partition of the SD card.


Insert SD card in Raspberry Pi and boot (network cable attached) and write down IP address. If not connected to a monitor search the IP via your router or a network scanner (like Fing app).

Login via SSH with PuTTY
default username = pi
default password = raspberry

Start with the raspi-config by typing
sudo raspi-config
1 Expand Filesystem
2 Change User Password
5 Internationalisation Options Change Timezone (Europe, Amsterdam)
9 Advanced Options Memory Split change GPU to 16 (headless installation)

Reboot
Reconnect by Restart Session (right click PuTTY frame) and login again (with the new password)

Re-synchronize the Raspbian package index files from their sources by typing
sudo apt-get update

Upgrade all installed packages to their latest versions (this will take some time) by typing
sudo apt-get dist-upgrade
confirm with Y when prompted
press q to quit when prompted

Delete downloaded files and reboot by typing
sudo apt-get clean
sudo reboot

Reconnect by restart session and login again
Install the z-way software for the Razberry by typing
wget -q -O - razberry.z-wave.me/install | sudo bash
confirm with yes when prompted (confirm license agreement)
confirm with no when prompted (email subscription)
Reboot by typing
sudo reboot

Reconnect by restart session and login again
Remove z-way server from startup by typing
sudo update-rc.d z-way-server remove
Install Domoticz by typing
sudo curl -L install.domoticz.com | sudo bash
confirm with Y when prompted and confirm the Domoticz server settings

Reboot by typing
sudo reboot

Reconnect by restart session and login again
remove the services readKey by typing
sudo update-rc.d readKey remove
remove mongoose by typing
sudo update-rc.d mongoose remove
Reboot by typing
sudo reboot

start Domoticz in your web browser (in my case 192.168.1.120:8080)
include the Razberry (OpenZWave USB) as follows

Reconnect by restart session and login again
Set fixed ip address by typing
sudo nano /etc/dhcpcd.conf

And add the following code to the beginning, adapted to your adresses
interface eth0
static ip_address=192.168.1.180/24 # << change to an ip address in your network
static routers=192.168.1.1 # << change to your gateway
static domain_name_servers=8.8.8.8 # << change to your DNS

reboot by typing
sudo reboot

Domoticz can now be found in the web browser under 192.168.1.180:8080

Since I upgraded Domoticz from a Raspberry Pi 1 model B to Raspberry Pi 3 I made a Database backup and can Easily import the backup and all the configuration is back in Domoticz.

This can be found under: Setup -> Settings -> Backup/Restore


Last part what I did is copy the scripts.


Geen opmerkingen:

Een reactie posten