Install Domoticz and Razberry2 on Raspbian 2017-01-11


I just installed domoticz with the following setup:

There are a couple of things to keep in mind, for the Razberry2 to work properly, especially with the later jessie releases:

So, the minor issue is that when you use "raspi-config" to turn off the serial console, it does not only turn off the console output on the serial port. It also turns off the serial port, which is not really what we want. That is why most people get a bit confused and fiddle around until they figure out that the "enable_uart=0" entry in /boot/configure.txt should be "enable_uart=1", and never think of why it happened to be that way.

The "console output" to serial is configured in /boot/cmdline.txt with the entry "console=serial0,115200", which we need to get rid of, but still make sure that there is no "enable_uart=0" in /boot/config.txt.

Unless you really want to, there is no need to redistribute the GPU RAM mapping.

So, a working setup (as of 2017-01-20) is:


```cat /boot/cmdline.txt dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait


``` enable_uart=1

``` sudo systemctl stop hciuart sudo systemctl disable hciuart

* Ensure you have a /dev/ttyAMA0 file

``` ls -la /dev/ttyAMA0
 crw-rw---- 1 root dialout 204, 64 Jan 20 08:19 /dev/ttyAMA0

``` mkdir ~/domoticz cd ~/domoticz wget tar xvfz domoticz_linux_armv7l.tgz rm domoticz_linux_armv7l.tgz sudo cp /etc/init.d sudo chmod +x /etc/init.d/ sudo update-rc.d defaults sudo service start

* Go to "Setup"->"Hardware"
* Add a OpenZWave USB device with the serial port: /dev/ttyAMA0


<!-- end of blog post -->
mkdir "../content/magnus-blog/2017-01-26-Install-Domoticz-and-Razberry2-on-Raspbian-2017-01-11"
./genSingles 24 > "../content/magnus-blog/2017-01-26-Install-Domoticz-and-Razberry2-on-Raspbian-2017-01-11/"