Using Domoticz with the RaZberry Z-Wave Controller Topic is solved

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

User avatar
cpighin
Posts: 68
Joined: Friday 03 July 2015 10:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Assisi, Italy
Contact:

Using Domoticz with the RaZberry Z-Wave Controller

Post by cpighin »

Hi,

after some limited experience with a RPi2 and an earlier version of Domoticz, now I'm starting from scratch on a RPi3 with Domoticz version V3.5877.

As I have several Z-Wave devices, I installed in the RPi3 RaZberry module and now I'm trying to making it known to Domoticz.
I refer to the excellent guide Using Domoticz RaZberry with the Z-Wave Controller
http://www.vesternet.com/resources/appl ... I7cfnXhDqP

I have found something strange on my system: I'm now at point "Your RaZberry device should now be shown in the list - click on the "Setup" button next to it". Before clicking on the Setup botton, I have a screenshot slightly different from that of the guide. Here's my Domoticz screenshotImage

You may observe that it is not shown the line "Motherbord".
Furthermore, by clicking on the red Setup button, the I get the screenshot Imagewith the information that no data are avilable in the table.

What is wrong?

Consider that I have not included any device at present. May be this the reason for such behaviour?

Claudio :)
Ericv
Posts: 38
Joined: Saturday 28 January 2017 12:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: Netherlands
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by Ericv »

did you try to mark "Enable polling" and then press "Refresh"?
Raspberry Pi3; Razberry V2; RFlink; PIco UPS HV3.0
User avatar
cpighin
Posts: 68
Joined: Friday 03 July 2015 10:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Assisi, Italy
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by cpighin »

Ericv wrote:did you try to mark "Enable polling" and then press "Refresh"?
Yes, I did!

Claudio :)
tontze
Posts: 317
Joined: Thursday 12 January 2017 15:30
Target OS: Linux
Domoticz version: Beta Ch
Location: Finland
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by tontze »

Hi !

I followed Jonas´s guide from other topic, it does work. Vesternets guide is outdated with Rpi3..

Code: Select all

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
That did it for me. Including node instructions might be valid in vesternets guide.

-T

PS. Motherboard in the vesternets screenshot, you can add rapsberrys own motheboard sensors to domoticz. You dont need them when setting up razberry.
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
User avatar
cpighin
Posts: 68
Joined: Friday 03 July 2015 10:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Assisi, Italy
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by cpighin »

Waiting for any help, I add an information and clarify my questions.

I have read a Wiki http://www.domoticz.com/wiki/Raspberry_Pi where, at paragraph "RaZberry Daughter Card" is linked a new procedure "Domoticz RaZberry installation instruction Raspberry Pi 3" to install the Z-Wave controller on a RPi3.

That link viewtopic.php?f=24&t=10964&start=20#p89074 leads to a discussion where it is not clear to me (I'm not expert) what differences there are with the old procedure and what exactly should be done.

So, questions are:

1) It is strictly necessary to follow the new procedure, or you can also follow the old one?
2) With newest Domoticz versions, should we use ttyAMA0 instead of ttyUSB20 as port for the RaZberry module?
3) With regard to my attempt to install the RaZberry module (see post #1), is it correct that it is not listed in the Hardware table the device: Motherbord?
4) Why I can't see the device: Motherbord?

Claudio :)
User avatar
cpighin
Posts: 68
Joined: Friday 03 July 2015 10:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Assisi, Italy
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by cpighin »

tontze wrote:Hi !

I followed Jonas´s guide from other topic, it does work. Vesternets guide is outdated with Rpi3..

Code: Select all

missing
That did it for me. Including node instructions might be valid in vesternets guide.

-T

PS. Motherboard in the vesternets screenshot, you can add rapsberrys own motheboard sensors to domoticz. You dont need them when setting up razberry.
Thanks "tontze"!

You submitted your post while I was writing ;)

Have you a direct link to Jonas´s guide?

As far as I understand, your code is valid to install Raspbian Jessie and Domoticz on a new RPi3, but I have jet installed such software, so: what do you suggest in this situation?

Regarding the presence or not of "Motherbord" in the Hardware list, if I'm not wrong, you retain that it is normal that it is not shown. Am I right?

Claudio :)
tontze
Posts: 317
Joined: Thursday 12 January 2017 15:30
Target OS: Linux
Domoticz version: Beta Ch
Location: Finland
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by tontze »

cpighin wrote:
tontze wrote:Hi !

I followed Jonas´s guide from other topic, it does work. Vesternets guide is outdated with Rpi3..

Code: Select all

missing
That did it for me. Including node instructions might be valid in vesternets guide.

-T

PS. Motherboard in the vesternets screenshot, you can add rapsberrys own motheboard sensors to domoticz. You dont need them when setting up razberry.
Thanks "tontze"!

You submitted your post while I was writing ;)

Have you a direct link to Jonas´s guide?

As far as I understand, your code is valid to install Raspbian Jessie and Domoticz on a new RPi3, but I have jet installed such software, so: what do you suggest in this situation?

Regarding the presence or not of "Motherbord" in the Hardware list, if I'm not wrong, you retain that it is normal that it is not shown. Am I right?

Claudio :)
If you have Raspbian allready installed, just continue that guide after the sd-card part, from raspi-config :) Jonas´s guide has all the same i pasted here :)

Regarding motherboard, it is not shown in your setup, because you havent added it :) You can add it if you want from the same drop down menu where you selected "openzwave usb" for your razberry. Try it out, it gives you devices like pi3 cpu temperature, memory usage, hdd usage etc. They are fun to play with :)

Jonas's post :

Code: Select all

https://www.domoticz.com/forum/viewtopic.php?f=24&t=10964&p=105288&hilit=razberry2#p105288
-T
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
User avatar
cpighin
Posts: 68
Joined: Friday 03 July 2015 10:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Assisi, Italy
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by cpighin »

Thanks tontze :)

You are right for the issue: absence of hardware Motherboard! I have created it with name Motherboard Rpi3 and Domoticz created 5 devices!

Now, please, let us return to the images of post # 1
1)Image
2)Image

In image 1) we can see that hardware RaZberry is configured on port: /dev/ttyUSB20.
I have the feeling that this is not the right configuration, considering that model of my Raspberry is Rpi3 and if I read correctly your post.

As a matter of fact, by pushing on the red button Setup I can get only image 2), with information that no data are available in the table, even pushing the Refresh button, instead of the expected one with data for a detailed configuration, as reported on the Vestenet guide http://www.vesternet.com/resources/appl ... JAxinXhDqP.

Should I use other parameters while creating correctly hardware RaZberry?

Consider that I didn't give commands reported on your post and I don't know if and how to execute them now

Code: Select all

removing 'console=serial0,115200' from cmdline.txt
sudo nano /boot/cmdline.txt
9. sudo systemctl disable hciuart
10. sudo stty -F /dev/ttyAMA0 9600
and that content of my /boot/cmdline.txt is actually

Code: Select all

dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait fastb$
.

Claudio :)
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: Using Domoticz with the RaZberry Z-Wave Controller

Post by mlamie »

I did spend also quite some time to get it running and I updated the Domoticz wiki page based on my experiences.

What I did start again from scratch. See also a blog post with all the steps.

http://mysmarthomeathome.blogspot.com/2 ... -pi-3.html
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
User avatar
cpighin
Posts: 68
Joined: Friday 03 July 2015 10:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Assisi, Italy
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by cpighin »

mlamie wrote:I did spend also quite some time to get it running and I updated the Domoticz wiki page based on my experiences.

What I did start again from scratch. See also a blog post with all the steps.

http://mysmarthomeathome.blogspot.com/2 ... -pi-3.html
Thanks for your Guide, which is wonderful, very well detailed and rich of images! A very good example of a Guide!

However I think there is an inconsistency: on Raspian Jessie you have installed the Z-way software and then Domoticz. From what I know Domoticz includes OpenZwave and it should not be necessary to install Z-way!

Have you tried to install Domoticz avoiding the Z-way step?

You wrote "I updated the Domoticz wiki page based on my experiences". What you mean in particular?

With regard to my issue i noted on your Guide that you created harware "Razberry" with parameters:
Type: OpenZwave USB (same as mine)
Port: /dev/ttyAMA0 (in my configuration is /dev/ttyUSB20)

I guess that my problem is connected to this issue but I don't know how to solve it and, since I'm not expert, I'll wait for tips from tontze and other good fellows.

Claudio :)
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: Using Domoticz with the RaZberry Z-Wave Controller

Post by mlamie »

The solution is when you install the Z-way package first and Domoticz afterwards that it does work. If you skip the Z-way software it will not work and you need to figure out how those modify the UART interface (AMA0), config.txt file etc... Afterwards you will use the OpenZwave library and not the Z-way software, that is removed.

The Trick is that the Z-way installation has included some commands to let the Razberry board work with the Pi3. That is also mentioned on the Wiki "NEW" link and the forum. viewtopic.php?f=24&t=10964&start=20#p89074

See also the screenshot
Image

So you can see the Z-way software:
- If Pi3 the Bluetooth is disabled (to use the right UART connection)
- Symlink is removed
- dtoverlay is added to config.txt
- remove several parts of the cmdline.txt
- removal of !@#$@ from inittab
- AMA0 interface is reconfigured
You can try to do it your selfs but this is easier ;)

My advise is use my guide and let me know if it works. It probably does.
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
User avatar
PeGe
Posts: 25
Joined: Tuesday 31 January 2017 14:21
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6328
Location: Sollentuna, Sweden
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by PeGe »

Hi,

As I recently (just a week ago) installed Domoticz on a Raspberry Pi version 3, fitted with a RaZbery2 card, WITHOUT co-installing Z-way, I can at least tell you what I did to get my Raspbian Jessie system up and running.

I experienced the very same problem, with that "constantly red setup button", which proved to be caused by another process stealing the serial port.

I have seen many (mostly outdated) hints on how to safely disable the Raspberry Bluetooth support, which is the culprit, but none of them worked for me.

But the following command sequence did:

sudo systemctl mask bluetooth.service
( NOTE: Use "mask" and not just "disable"! Since other processes may well start a "disabled" service in the background! )

sudo systemctl mask hciuart.service

sudo systemctl mask [email protected]

Finally, I also added the following two lines to the /boot/config.txt file:

dtoverlay=pi3-disable-bt
enable_uart=1

After a reboot, I finally got myself a blue 'setup' button in the user interface. And it stayed blue, i.e. now it didn't turn red again in just a few seconds after boot, which it did before.

Now; I cannot say for sure that these steps will definitely alleviate your problem, but I surely know they did the trick for me! And we seem to have the same environments...

/P-G
User avatar
cpighin
Posts: 68
Joined: Friday 03 July 2015 10:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Assisi, Italy
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by cpighin »

Thanks mlamie e PeGe,

for your posts.

The PeGe solution seemed reasonable and I wanted to try it, unfortunately without success.

Here's the code I used (I noticed several "Created symlink from / etc ...." but I can not say that it is the desired outcome to my commands):

Code: Select all

pi@raspberrypi:~ $ sudo systemctl mask bluetooth.service
Created symlink from /etc/systemd/system/bluetooth.service to /dev/null.
pi@raspberrypi:~ $ sudo systemctl mask hciuart.service
Created symlink from /etc/systemd/system/hciuart.service to /dev/null.
pi@raspberrypi:~ $ sudo systemctl mask [email protected]
Created symlink from /etc/systemd/system/[email protected] to /dev/null.
pi@raspberrypi:~ $ sudo nano /boot/cmdline.txt
pi@raspberrypi:~ $
Now the system gives the following screenshot where you notice the usual red button Setup
Image
Of course my attempts to configure in datails the RaZberry failed!

If I will not find a better solution, I think I'll try the mlamie solution in a few days (I will be very busy from now for 2/3 days).

Claudio :)
User avatar
PeGe
Posts: 25
Joined: Tuesday 31 January 2017 14:21
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6328
Location: Sollentuna, Sweden
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by PeGe »

Well, those symlinks are perfectly fine, so that was indeed the expected outcome. They simply mean that ALL further attempts to start those services will go straight down the drain into '/dev/null', effectively preventing the services from ever being unexpectedly started by any other process.

But in your command listing I see that you also edited the file '/boot/cmdline.txt'. That made me a bit puzzled. I just hope you didn't insert the two additional lines I listed into THAT file by mistake? As I wrote, they were supposed to go into '/boot/config.txt'!

Anyway, the sequence worked perfectly fine for me. Sorry that it didn't work out just as well for you. But still; Worth the try, I guess... :cry:

EDIT: Please note that I installed my system based on the January 11 2017 release of Raspbian Jessie! None of the other so called "known working" methods proved to resolve the issues facing me on that specific release. But also, please bear in mind that the rapid deployment of continously updated software releases might easily render yesterday's alledged "truth" no longer true tomorrow!

/P-G
Last edited by PeGe on Tuesday 31 January 2017 23:09, edited 1 time in total.
tontze
Posts: 317
Joined: Thursday 12 January 2017 15:30
Target OS: Linux
Domoticz version: Beta Ch
Location: Finland
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by tontze »

After trying so many things, i recommend to start from the scratch and write new sd-card, after that, here is detailed guide :

Code: Select all

sudo raspi-config
With raspi-config, do following with it :

Expand Filesystem
Change User Password
Change Timezone: set to appropriate timezone
In Advanced Options: Option A3. Memory Split: Set to 16M since we don't need a graphical environment
In Advanced Options: Option A0. Update

Exit and :

Code: Select all

sudo reboot
When rebooted, log in and do update, and upgrade system :

Code: Select all

sudo apt-get update

Code: Select all

sudo apt-get upgrade
When done, reboot :

Code: Select all

sudo reboot
After rebooted, log in and install rpi-update (Rpi firmware updater)

Code: Select all

sudo apt-get install rpi-update
Execute firmware updater:

Code: Select all

sudo rpi-update
Edit /boot/config.txt with nano and add following line to end of the file (it disables onboard bluetooth, needs to be disabled for razberry to work):
dtoverlay=pi3-disable-bt

Code: Select all

sudo nano /boot/config.txt
Edit /boot/cmdline.txt and remove this part: 'console=serial0,115200' of the string written in cmdline.txt

Code: Select all

sudo nano /boot/cmdline.txt
Disable hciuart :

Code: Select all

sudo systemctl disable hciuart
Finally :

Code: Select all

sudo stty -F /dev/ttyAMA0 9600
Reboot again :

Code: Select all

sudo reboot
After rebooted, install Domoticz :

Code: Select all

sudo curl -L install.domoticz.com | sudo bash
Software part done :)

Now, log in to Domoticz, go to setup --> hardware, select OpenZwave USB from dropdown menu, there should be only /dev/ttyAMA0 to select for
it. Name it as you wish, check that it is enabled and press ADD. After a while, its SETUP button should turn to blue.

When its turning to blue, it means its working as it should. When it stays red, its not working. Vesternets guide yout mentioned, is good guide for showing how you add nodes(devices).

-T

PS, i did take image of my sd-card with windows at this point. Just in case if it comes corrupted or i broke it beyond repare in other ways :D
Last edited by tontze on Saturday 23 September 2017 12:49, edited 2 times in total.
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
User avatar
cpighin
Posts: 68
Joined: Friday 03 July 2015 10:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Assisi, Italy
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by cpighin »

Thank yuo PeGe for you comment.
tontze wrote:After trying so many things, i recommend to start from the scratch and write new sd-card, after that, here is detailed guide ...
Thank yuototze.

Your guide appears detailed enough for me and I think I can follow it. If I will find any problem, I will ask for help ;)

I will try in the next WE.

Claudio :)
tontze
Posts: 317
Joined: Thursday 12 January 2017 15:30
Target OS: Linux
Domoticz version: Beta Ch
Location: Finland
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by tontze »

Good luck :)
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
User avatar
cpighin
Posts: 68
Joined: Friday 03 July 2015 10:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Assisi, Italy
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by cpighin »

Hi totze,

I started the work of a new installation and I found that file nano /boot/config.txt does not contain wording "console=serial0,115200" as you wrote.

Hereunder the code of my file

Code: Select all

# For more options and information see
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on
core_freq=250
sdram_freq=400
over_voltage=0
gpu_mem=16
How do you suggest to continue?

Consider also that at the beginning of actions done I noticed that the filesystem was not enlarged after setting of raspi-confing. Now it is exacltly as before!

Claudio :)
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: Using Domoticz with the RaZberry Z-Wave Controller

Post by mlamie »

Here you can see a video of a fresh Domoticz / Razberry installation ;-)

http://www.domoticz.com/forum/viewtopic ... 35#p118041
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
User avatar
cpighin
Posts: 68
Joined: Friday 03 July 2015 10:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Assisi, Italy
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by cpighin »

mlamie wrote:Here you can see a video of a fresh Domoticz / Razberry installation ;-)
http://www.domoticz.com/forum/viewtopic ... 35#p118041
Thanks mlamie,

I saw few video and did'nt find help to understand why my config.txt is so different from that expected.

Can you send the text of your actual config.txt, just to try to undersand something?

Claudio :)
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest