Domoticz, Pi3, RaZberry & Raspbian Jessie

For Z-Wave related questions in Domoticz

Moderator: leecollings

jonas
Posts: 3
Joined: Thursday 03 March 2016 19:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4985
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by jonas »

I followed the previous tip and it works, thanks! :) But I could't find peace until I could find a solution that simplifies the installation process. You don't have to install Z-Way! :D

Write image Raspian Jessie Lite on sd-card.

1. sudo raspi-config
1.1 expand Filesystem
1.2 Change User Password
1.3 Change Timezone: set to appropriate timezone
1.4 Advanced Options: Option A3. Memory Split: Set to 16M since we don't need a graphical environment
1.5 Advanced Options: Option A0. Update
1.6 sudo reboot
2. sudo apt-get update
3. sudo apt-get upgrade
4. sudo reboot
5. sudo apt-get install rpi-update
6. sudo rpi-update
7. sudo nano /boot/config.txt
add to end of the file:
dtoverlay=pi3-disable-bt
8. removing 'console=serial0,115200' from cmdline.txt
sudo nano /boot/cmdline.txt
9. sudo systemctl disable hciuart
10. sudo stty -F /dev/ttyAMA0 9600
11. sudo reboot
12. sudo curl -L install.domoticz.com | bash

Yes I'm using RaZberry2, type OpenZWave USB with /dev/ttyAMA0 in Domoticz!

Good luck!
Last edited by jonas on Sunday 25 December 2016 17:33, edited 2 times in total.
User avatar
mlamie
Posts: 122
Joined: Friday 25 October 2013 17:12
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: The Netherlands
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by mlamie »

thundernerd wrote:I finally got the setup to work. Strange thing is I've been retrying the same thing over and over again. This was my last try otherwise I would have ordered an USB Z-Wave stick.

If I have some spare time I will image my current SD and try to figure out which settings Z-Way server configures. That way the install of Z-Way server would no longer be necessary.

Thanks for your help irrbloss!!
I spend a couple of hours to upgrade from Rpi1 to Rpi3 including the Razberry board. Luckely I found this topic and, all went fine based on the steps posted by irrbloss.

If you still wonder what the installation of z-way does have a look at the screenshot below:
Image
Raspberry Pi 3, RaZberry, RFXtrx433
Various Z-Wave devices, KlikAanKlikUit devices, ESP8266 NodeMCU, Sonoff POW and a Essent E-thermostaat
IP camera: Dahua 4MP IPC-HDBW4421R-AS, Vivotek FD8134V
kc27
Posts: 7
Joined: Sunday 10 January 2016 22:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by kc27 »

Thank you irrbos, works perfect!!
Also on a Raspberry 2.
No change or simlink of /dev/AMA0 is needed.
Works "out of the box"!!
User avatar
K3rryBlue
Posts: 77
Joined: Tuesday 07 February 2017 22:13
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10xx
Location: Netherlands
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by K3rryBlue »

I just want to add a suggestion.

The rPi and sd-card seems not to be a very happy marriage. Crashes, database malfunction etc.
Please have a look at berryboot.
Instead of installing to the sd-card, you can install it to an USB drive, which improve the stability of the rPi.

I used a USB thumb, Sandisk USB 3.0 64GB USB Stick, and so far it runs pretty stable.
Domoticz V4.10717, RPi2 -> Linux raspberrypi 4.4.47-v7+ , RFXCOM - RFXtrx433 USB 433.92MHz ,RAZBERRY2 and OpenZWave USB Version: 1.4-2363-g1f10253-dirty
tontze
Posts: 317
Joined: Thursday 12 January 2017 15:30
Target OS: Linux
Domoticz version: Beta Ch
Location: Finland
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by tontze »

Thnx kerry, thats interesting.
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
piokuc

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by piokuc »

Hi all :)
Is any chance to we can use on RPI3 Bluetooth in Domoticz also with wifi and Razberry ZWAVE card ?
Ericv
Posts: 38
Joined: Saturday 28 January 2017 12:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: Netherlands
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by Ericv »

Please have a look at berryboot.
What is the advantage (if any) of using berryboot in stead of following the steps mentioned earlier in this thread:
1. sudo raspi-config
1.1 expand Filesystem
1.2 Change User Password
1.3 Change Timezone: set to appropriate timezone
1.4 Advanced Options: Option A3. Memory Split: Set to 16M since we don't need a graphical environment
1.5 Advanced Options: Option A0. Update
1.6 sudo reboot
2. sudo apt-get update
3. sudo apt-get upgrade
4. sudo reboot
5. sudo apt-get install rpi-update
6. sudo rpi-update
7. sudo nano /boot/config.txt
add to end of the file:
dtoverlay=pi3-disable-bt
........
....etc
Raspberry Pi3; Razberry V2; RFlink; PIco UPS HV3.0
User avatar
K3rryBlue
Posts: 77
Joined: Tuesday 07 February 2017 22:13
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10xx
Location: Netherlands
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by K3rryBlue »

Seems you started to mix things.......
Not sure if you read the topic or information on Berryboot?
How to install Raspbian, has nothing to do with berryboot.

The problem with installing Raspbian to a SD-Card, is that the medium acts unstable. SD-cards gets easily corrupted, database malfunction, crashes etc.
With Berryboot you can install Raspbian to a HDD, SSD, .... Which makes the rPi much more stable.
When done, you follow the setup from this topic, as this is pretty accurate.
Domoticz V4.10717, RPi2 -> Linux raspberrypi 4.4.47-v7+ , RFXCOM - RFXtrx433 USB 433.92MHz ,RAZBERRY2 and OpenZWave USB Version: 1.4-2363-g1f10253-dirty
Ericv
Posts: 38
Joined: Saturday 28 January 2017 12:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: Netherlands
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by Ericv »

You are right, sorry for mixing up things. Made an error with copy/paste text.

I currently have the Pi running from usb-stick. But did not use berryboot to get that working. I followed one of the many tutorials to copy Raspbian to usb-stick and subsequently run from usb-stick, by changing startup options. in '/boot/cmdline.txt'.

What still is not fully clear to me: if you install raspian with Berryboot on a USB drive/stick, can you then use the pi even without SD-card?
Raspberry Pi3; Razberry V2; RFlink; PIco UPS HV3.0
User avatar
K3rryBlue
Posts: 77
Joined: Tuesday 07 February 2017 22:13
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10xx
Location: Netherlands
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by K3rryBlue »

No, you still need the sd card to boot (the smallest you can find 80MB :-) ), the OS runs fully from the attached storage device.

Only with berryboot it's much easier, also for the people who are not that experienced with linux. And berryboot gives you the "noob" function.(for those who need it)
Domoticz V4.10717, RPi2 -> Linux raspberrypi 4.4.47-v7+ , RFXCOM - RFXtrx433 USB 433.92MHz ,RAZBERRY2 and OpenZWave USB Version: 1.4-2363-g1f10253-dirty
Ericv
Posts: 38
Joined: Saturday 28 January 2017 12:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: Netherlands
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by Ericv »

OK, thanks.

What needs to be on the SD-card? only the '/boot/cmdline.txt' file?
Raspberry Pi3; Razberry V2; RFlink; PIco UPS HV3.0
User avatar
K3rryBlue
Posts: 77
Joined: Tuesday 07 February 2017 22:13
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10xx
Location: Netherlands
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by K3rryBlue »

only a few files:
Image
Domoticz V4.10717, RPi2 -> Linux raspberrypi 4.4.47-v7+ , RFXCOM - RFXtrx433 USB 433.92MHz ,RAZBERRY2 and OpenZWave USB Version: 1.4-2363-g1f10253-dirty
User avatar
BazsoDombiAndras
Posts: 56
Joined: Thursday 08 January 2015 9:52
Target OS: Raspberry Pi / ODroid
Domoticz version: v4.10717
Location: Cluj-Napoca, Romania
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by BazsoDombiAndras »

jonas wrote: Sunday 20 November 2016 20:49 I followed the previous tip and it works, thanks! :) But I could't find peace until I could find a solution that simplifies the installation process. You don't have to install Z-Way! :D

Write image Raspian Jessie Lite on sd-card.

1. sudo raspi-config
1.1 expand Filesystem
1.2 Change User Password
1.3 Change Timezone: set to appropriate timezone
1.4 Advanced Options: Option A3. Memory Split: Set to 16M since we don't need a graphical environment
1.5 Advanced Options: Option A0. Update
1.6 sudo reboot
2. sudo apt-get update
3. sudo apt-get upgrade
4. sudo reboot
5. sudo apt-get install rpi-update
6. sudo rpi-update
7. sudo nano /boot/config.txt
add to end of the file:
dtoverlay=pi3-disable-bt
8. removing 'console=serial0,115200' from cmdline.txt
sudo nano /boot/cmdline.txt
9. sudo systemctl disable hciuart
10. sudo stty -F /dev/ttyAMA0 9600
11. sudo reboot
12. sudo curl -L install.domoticz.com | bash

Yes I'm using RaZberry2, type OpenZWave USB with /dev/ttyAMA0 in Domoticz!

Good luck!
I'm wondering if the very same steps apply to Raspberry Pi 2. If yes, I'm guessing that in step 7 the "dtoverlay=pi3-disable-bt" added to the end of the /boot/config.txt has to be different. I wonder what it should be... what does this dtoverlay stuff mean anyway?

Thank you!
User avatar
BazsoDombiAndras
Posts: 56
Joined: Thursday 08 January 2015 9:52
Target OS: Raspberry Pi / ODroid
Domoticz version: v4.10717
Location: Cluj-Napoca, Romania
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by BazsoDombiAndras »

Answering my own question, I think step 7 disables the bluetooth on RPI3, because that messes with the GPIO pins needed by the Razberry daughter card. Since RPI2 does not have bluetooth, I'm guessing that step 7 can be skipped comletely (unless something else messes with those GPIO pins on the RPI2, which is probably not the case).
whawhe
Posts: 3
Joined: Friday 20 January 2017 12:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by whawhe »

Has anyone got this working with latest Raspbian Stretch?
On "step 10. sudo stty -F /dev/ttyAMA0 9600"
I get this:
stty: /dev/ttyAMA0: No such file or directory

Am I missing something? Something changed between Jessie and Stretch in regards to this?

[Update]
Solved it. had disabled the Serial port in raspi-config :oops:
arjenw
Posts: 9
Joined: Thursday 16 January 2014 8:54
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by arjenw »

At all interested.
Same procedure works fine for Stretch on Beta 11059

Regards
Arjen
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests