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:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by cpighin »

Please disregard my previuos posts on file config.txt issue,

I confused the config.txt file with the cmdline.txt.

Sorry.

Now I will arrange things and will take up the installation :?


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 »

Totze, thank you, the installation was successful and I got the RaZberry Setup in Blue :D

I inform you that I have encountered a possible error in your guide that I've solved as follows.

In your post, your command to install Domoticz is

Code: Select all

sudo curl -L install.domoticz.com
I run it and the system responded immediately giving me the impression that Domoticz was installed, but when I tried to access the web application I got warning
Browser Cache refresh failed
Manifest fresh failed
http:/http://192.168.1.103:8080/html5.appcache
Working on the issue, I verified that Domoticz was not present in the system

Code: Select all

pi@raspberrypi:~ $ sudo service domoticz.sh start 
Failed to start domoticz.service: Unit domoticz.service failed to load: No such file or directory.
At this point, i tried to install Domoticz using a more complete command

Code: Select all

sudo curl -L install.domoticz.com | sudo bash
and I saw the system working for the installation, few panels were shown, I pressed always OK and, after a couple of minutes, the process ended.

Than I accessed the Domoticz application on the web without errors, and I started your procedure to configure the RaZberry module as you recommended
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).
All steps were successful except that the Setup button didn't turned on Blue "after a while" even clicking on Update. It did only after my pressing on the red Setup button, the consequent viewing of a detailed device page (table "Nodes") where I pressed the Blue Refresh button. After this action the Setup button was Blue, when I returned to previous page ;) as shown in the image.Image

So, for me, your guide will be pretty good if amended following the verification of what I reported here and many users could benefit of it and would thank you. For me the best could be to publish your guide as e Domoticz Wiki page! :D

Claudio :)

Edit 20170206: I forgot to mention that the file system of my SD card was not extended with the option Expand Filesystem in raspi-config !?
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 »

SETUP button turning from red to blue takes a while, attleast it took while for me :) Glad you got it working :)

Yes my tutorials domoticz installation part lacked "|sudo bash", good that you managed to work around it :)

Did you boot your pi after expanding filesystem ? It will be expanded after next reboot, that you have propably done allready few times, check again :) If not, i presume you allready have whole card in use ?

-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]
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 »

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


/P-G
Hi PeGe, good point on that mask, but does it mask also possible bluetooth dongles ?

-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
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 »

tontze wrote:Hi PeGe, good point on that mask, but does it mask also possible bluetooth dongles ?

-T
Sorry, but I really can't say, since I have never connected a bluetooth dongle to any of my Raspberries!

I'd however assume that all possible bluetooth dongles would rely on the same service, just differently configured depending on the serial port being used. If that is actually the case, the obvious logical conclution would be to find ALL bluetooth devices non-operational after masking out the bluetooth service.

But again; I cannot say for sure... :?

/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 »

tontze wrote:Did you boot your pi after expanding filesystem ? It will be expanded after next reboot, that you have propably done allready few times, check again :) If not, i presume you allready have whole card in use ?
I have rebooted my RPi3 several times and Gparted see the SD card still not expanded!

Image

Of course I can expand the volume of the ext4 partition using Gparted and I will do this action soon.

If I will use again your guide with another SD card, I will check again the result of Expanding Filesystem With raspi-config and I'll let you known!

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 »

Actually, i havent checked myself is my partition resized :D What i did check tho, it said in the next boot "partition resized" but not sure did it actually. Gotta check this when i get home :)

-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
EdddieN
Posts: 510
Joined: Wednesday 16 November 2016 11:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: Scotland
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by EdddieN »

Hello,

I have tried these steps several times from scratch and ... nothing. The card never changes from red to blue. If I look into the logs I see this:

Code: Select all

2017-04-14 18:47:04.930 OpenZWave: Starting...
2017-04-14 18:47:04.930 OpenZWave: Version: 1.4-2228-gbce4a88-dirty
2017-04-14 18:47:04.930 OpenZWave: using config in: /home/pi/domoticz/Config/
2017-04-14 18:47:05.937 OpenZWave: Received timeout notification from HomeID: 0, NodeID: 255 (0xff)
2017-04-14 18:47:06.938 OpenZWave: Received timeout notification from HomeID: 0, NodeID: 255 (0xff)
2017-04-14 18:47:07.939 OpenZWave: Received timeout notification from HomeID: 0, NodeID: 255 (0xff)
2017-04-14 18:47:08.940 OpenZWave: Received timeout notification from HomeID: 0, NodeID: 255 (0xff)
2017-04-14 18:47:09.942 OpenZWave: Received timeout notification from HomeID: 0, NodeID: 255 (0xff)
I was going to ignore this method but since I see it has made it to the Wiki...

Have many people used this method successfully with a Pi3 and a Razz2?
11101101 - www.machinon.com
josklungers
Posts: 4
Joined: Sunday 12 February 2017 22:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by josklungers »

EdddieN wrote:Hello,

I have tried these steps several times from scratch and ... nothing. The card never changes from red to blue. If I look into the logs I see this:

Code: Select all

2017-04-14 18:47:04.930 OpenZWave: Starting...
2017-04-14 18:47:04.930 OpenZWave: Version: 1.4-2228-gbce4a88-dirty
2017-04-14 18:47:04.930 OpenZWave: using config in: /home/pi/domoticz/Config/
2017-04-14 18:47:05.937 OpenZWave: Received timeout notification from HomeID: 0, NodeID: 255 (0xff)
2017-04-14 18:47:06.938 OpenZWave: Received timeout notification from HomeID: 0, NodeID: 255 (0xff)
2017-04-14 18:47:07.939 OpenZWave: Received timeout notification from HomeID: 0, NodeID: 255 (0xff)
2017-04-14 18:47:08.940 OpenZWave: Received timeout notification from HomeID: 0, NodeID: 255 (0xff)
2017-04-14 18:47:09.942 OpenZWave: Received timeout notification from HomeID: 0, NodeID: 255 (0xff)
I was going to ignore this method but since I see it has made it to the Wiki...

Have many people used this method successfully with a Pi3 and a Razz2?
I have the same problem:
log.JPG
log.JPG (31.58 KiB) Viewed 7969 times
but i have also two serial ports i can choose:
serial.jpg
serial.jpg (37.66 KiB) Viewed 7969 times
I added both, but setup not turn into blue..

Please help!
User avatar
EdddieN
Posts: 510
Joined: Wednesday 16 November 2016 11:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: Scotland
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by EdddieN »

As far as I know it should be the AMAO one (if using the Razberry board).

I never managed to get it working using the method mentioned here:
https://www.domoticz.com/forum/viewtopi ... 55#p117527

but I did get it several times following this method:
https://www.domoticz.com/forum/viewtopi ... =20#p89074

In general they both do more or less the same since after letting z-wave.me doing the edits to the file configs, you remove/disable z-wave.me service
1. DL fresh Raspbian Jessie Image and write it to SD Card
2. Do all the apt-get update, apt-get upgrade and so on...
3. Install z-way, with following command: wget -q -O - razberry.z-wave.me/install | sudo bash
4. Shutdown z-way-server and disabling autostart with sudo update-rc.d z-way-server remove
5. Install domiticz.
6. sudo update-rc.d readKey remove
7. sudo update-rc.d mongoose remove
11101101 - www.machinon.com
User avatar
EdddieN
Posts: 510
Joined: Wednesday 16 November 2016 11:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: Scotland
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by EdddieN »

Ok, finally I got it to work without the need to install z-wave.me server as described in the opening post. But I had to skip these steps:

Code: Select all

5. sudo apt-get install rpi-update
6. sudo rpi-update
Maybe worth mentioning that I'm running on stable version 3.5877
11101101 - www.machinon.com
passivehouse
Posts: 3
Joined: Tuesday 28 November 2017 9:07
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.8153
Location: Toulouse
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by passivehouse »

Sorry I followed very carefully all this very good post but it still does not work for me.
I actually did rpi-update. Which firmware are you using I could try to downgrade?

Thank you.

I am using Pi3 with Linux raspberrypi and a RaZberry PI GPIO Daughter Card
Linux: 4.9.65-v7+ #1056 SMP Fri Nov 24 13:58:07 GMT 2017 armv7l GNU/Linux
openzwave: 1.4-2501-g5af6780-dirty
domoticz: V3.8153

My log:
2017-11-28 09:56:33.838 OpenZWave: using config in: /home/pi/domoticz/Config/
2017-11-28 09:56:33.842 OpenZWave: Starting...
2017-11-28 09:56:33.842 OpenZWave: Version: 1.4-2501-g5af6780-dirty
2017-11-28 09:56:34.845 OpenZWave: Received timeout notification from HomeID: 0, NodeID: 255 (0xff)
2017-11-28 09:56:35.846 OpenZWave: Received timeout notification from HomeID: 0, NodeID: 255 (0xff)
2017-11-28 09:56:36.854 OpenZWave: Received timeout notification from HomeID: 0, NodeID: 255 (0xff)
2017-11-28 09:56:37.855 OpenZWave: Received timeout notification from HomeID: 0, NodeID: 255 (0xff)
2017-11-28 09:56:38.856 OpenZWave: Received timeout notification from HomeID: 0, NodeID: 255 (0xff)
and "setup" stays desperately red...
koowee
Posts: 62
Joined: Thursday 29 December 2016 18:17
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Finland
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by koowee »

I didn't read whole topic, but here is link to one thing what was problem on my configuration (enabled serial port via raspi-config). Maybe it help you?

http://domoticz.com/forum/viewtopic.php ... 50#p154050
passivehouse
Posts: 3
Joined: Tuesday 28 November 2017 9:07
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.8153
Location: Toulouse
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by passivehouse »

Thank you for your answer.

I tried the rick but it didn't do any good to my problem. Still messages like
2017-11-28 15:07:36.854 Error, contrlr, ERROR: Dropping command, expected response not received after 1 attempt(s)
2017-11-28 15:07:36.854 Always,
2017-11-28 15:07:36.855 Always, Dumping queued log messages
2017-11-28 15:07:36.855 Always,
2017-11-28 15:07:36.856 Always,
2017-11-28 15:07:36.856 Always, End of queued log message dump
2017-11-28 15:07:36.856 Always,
2017-11-28 15:07:36.857 OpenZWave: Received timeout notification from HomeID: 0, NodeID: 255 (0xff)
IDANIT
Posts: 73
Joined: Saturday 07 November 2015 10:01
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Poland
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by IDANIT »

what port are U using? I've got /dev/ttyAMA0 and its working pretty good.
passivehouse
Posts: 3
Joined: Tuesday 28 November 2017 9:07
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.8153
Location: Toulouse
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by passivehouse »

Yes it is what I am using too (I tried whatever was proposed in domoticz).
Note that I did this
sudo stty -F /dev/ttyAMA0 9600
which probably did something on this AMA0 but I don't know what.

I followed the steps here: viewtopic.php?f=28&t=15795&p=117355#p117527

Thanks.

PS: I wonder if it couldn't just be that my zwave-me card is dead? How could I check this?
luispedro
Posts: 2
Joined: Tuesday 01 November 2016 12:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Using Domoticz with the RaZberry Z-Wave Controller

Post by luispedro »

tontze wrote: Tuesday 31 January 2017 20:18 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
Worked perfectly well for me.
Your post is bookmarked so I can comeback again if I need to reinstall Domoticz.

Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest