Domoticz, Pi3, RaZberry & Raspbian Jessie

For Z-Wave related questions in Domoticz

Moderator: leecollings

bullrin
Posts: 38
Joined: Friday 29 January 2016 22:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.4403
Location: Germany/BW/Mannheim
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by bullrin »

I trying to upgrade vom rpi to rpi3, but I have the same problems with razberry board.
First thing is when I go to raspi-config advanced options, I have no entry "device tree"
Image
So I have disabled bluetooth manually over /boot/config.txt and added dtoverlay=pi3-disable-bt and executed sudo systemctl disable hciuart

But it seems that there is still a problem.
Image

and this is domoticz screen
Image
evansnp
Posts: 16
Joined: Tuesday 05 April 2016 17:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by evansnp »

First thing that I would say is, don't use /dev/ttyUSB20 (didn't see any mention of you creating a symlink from /dev/ttyAMA0 to /dev/ttyUSB20), use /dev/ttyAMA0 (you may need to be on the beta chain for this to be an option). Make sure that you have no other software trying to connect to RaZberry port e.g. z-way. Rest assured that it does work, as I have a (relatively) stable system.
bullrin
Posts: 38
Joined: Friday 29 January 2016 22:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.4403
Location: Germany/BW/Mannheim
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by bullrin »

Sorry forget to mention that I have created the symlink.
Do you have a "device tree" entry on advanced options in rpi config?

There is no led active on the razberry modul :(

which firmware version does your rpi have?

I've tried another run, install raspbian, get openzwave, build otw, get domoticz, build it...
But still not working. I have it now on ttyAma0. But the log shows still the "dropping command expected response not received after 3 attempt(s) " error
bullrin
Posts: 38
Joined: Friday 29 January 2016 22:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.4403
Location: Germany/BW/Mannheim
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by bullrin »

I did it now 3 or 4 times again and again. But its everytime the same:
2016-06-12 11:49:17.577 OpenZWave: Starting...
2016-06-12 11:49:17.577 OpenZWave: Version: 1.4-77-g40eb730
2016-06-12 11:49:17.577 OpenZWave: using config in: /home/pi/domoticz/Config/
2016-06-12 11:49:18.584 OpenZWave: Received timeout notification from HomeID: 0, NodeID: 255 (0xff)

Steps:
[*]DL Raspbian Jessie Image and write it to SD Card
[*]updated with apt-get update, apt-get upgrade, rpi-update
[*]added dtoverlay=pi3-disable-bt to boot/config.txt
[*]sudo systemctl disable hciuart
[*]Get domoticz stable release and Start it (I did previously the installing from source, with same results)
[*]Add openZwave Module to ttyAMA0
[*] receive errors seeing above

I have no idea what it do wrong. I followed the instructions given by other posts
evansnp
Posts: 16
Joined: Tuesday 05 April 2016 17:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by evansnp »

It could be a faulty Razberry module. When you power up your Pi, does the red LED on the Razberry module illuminate for around 1 second?
As another test, you could try installing the z-way server, as that has more diagnostic capabilities than those provided within Domoticz. If you do install it, remember to stop the Domoticz service first, then start z-way-server.
bullrin
Posts: 38
Joined: Friday 29 January 2016 22:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.4403
Location: Germany/BW/Mannheim
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by bullrin »

evansnp wrote:It could be a faulty Razberry module. When you power up your Pi, does the red LED on the Razberry module illuminate for around 1 second?
As another test, you could try installing the z-way server, as that has more diagnostic capabilities than those provided within Domoticz. If you do install it, remember to stop the Domoticz service first, then start z-way-server.
No it's not the module. I'm switching from rpi1 to rpi3. Everything was working fine with my rpi1. Just switching to get a performance boost.
irrbloss
Posts: 5
Joined: Sunday 19 June 2016 17:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by irrbloss »

I'm having the exact same problem! I have tried everything in this thread, and also some other suggestions found on Google, but nothing works.

This is what works/doesn't work:
Installing Domoticz-image to sd-card - boots but Razberry-card not detected.
Installing Razberry-image (with z-way) - doesn't even boot.
Installing Razberry/z-way on fresh Jessie - everything works!
Installing Domoticz on fresh Jessie - boots but Razberry-card not detected.

The above is for RPI3.

Everything works on my RPI1 B-model (both Domoticz and z-way) with the same Razberry-card.

Edit: Ok, I finally got it working by doing this:

1. Install fresh jessie to sd-card.
2. Do all the apt-get update, 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.

Now everything works!

I think the z-way-installation disables bluetooth in another way mentioned in this thread, that actually works on (all) RPI3-models. If someone figures out exactly what, step 3 and 4 would not be needed.
bullrin
Posts: 38
Joined: Friday 29 January 2016 22:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.4403
Location: Germany/BW/Mannheim
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by bullrin »

@irrbloss: you're my hero! after spending many many hours, this solution works! Maybe someone can analyze the installation script of zway software :D
irrbloss
Posts: 5
Joined: Sunday 19 June 2016 17:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by irrbloss »

Another thing I noticed today, don't forget to remove the services readKey (uses a lot cpu, my rpi3 runs a lot cooler after removing this) and mongoose (webserver? blocks port 443 if you want to use it for SSL in domoticz) coming from z-way.

Code: Select all

sudo update-rc.d readKey remove
sudo update-rc.d mongoose remove
bullrin
Posts: 38
Joined: Friday 29 January 2016 22:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.4403
Location: Germany/BW/Mannheim
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by bullrin »

thanks for sharing! If you discover more tweaks, please continue posting :)
thundernerd
Posts: 2
Joined: Wednesday 22 June 2016 9:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by thundernerd »

@irrbloss, did you install the sources of open z-wave and domoticz or did you install the stable/beta binaries?

I've been struggling, with the same problem for a while now. Domoticz does recognize my RaZberry but doesn't include any z-wave nodes.
irrbloss
Posts: 5
Joined: Sunday 19 June 2016 17:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by irrbloss »

thundernerd wrote:@irrbloss, did you install the sources of open z-wave and domoticz or did you install the stable/beta binaries?

I've been struggling, with the same problem for a while now. Domoticz does recognize my RaZberry but doesn't include any z-wave nodes.
I installed the stable binaries for both domoticz and z-way, and it works fine now. Didn't have to compile/build anything.
bullrin
Posts: 38
Joined: Friday 29 January 2016 22:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.4403
Location: Germany/BW/Mannheim
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by bullrin »

I installed the sources of open zwave and domoticz and it works like a charm now, since the instructions of irrbloss :)
thetof
Posts: 4
Joined: Saturday 09 July 2016 10:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by thetof »

Thanks to irrbloss for this solution.
I have spent many hours without solution, nothing worked.
It is such a pleasure to read this tip.

To resume
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

For step 2, what do you mean by "and so on..."??
=> rpi-update ?
=> added dtoverlay=pi3-disable-bt to boot/config.txt ?
=> sudo systemctl disable hciuart ?

For step 5, have you add openZwave Module to ttyAMA0 after installing Domoticz

(I'm newbie on raspberry, sorry if the question is useless)
Thanks
irrbloss
Posts: 5
Joined: Sunday 19 June 2016 17:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by irrbloss »

thetof wrote:Thanks to irrbloss for this solution.
I have spent many hours without solution, nothing worked.
It is such a pleasure to read this tip.

To resume
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

For step 2, what do you mean by "and so on..."??
=> rpi-update ?
=> added dtoverlay=pi3-disable-bt to boot/config.txt ?
=> sudo systemctl disable hciuart ?

For step 5, have you add openZwave Module to ttyAMA0 after installing Domoticz

(I'm newbie on raspberry, sorry if the question is useless)
Thanks
For step 2, no need to edit any files, basically just doing all the updates you can think of, like rpi-update. Also no need to disable hciuart manually. I think "and so on" only included rpi-update :).

Yes I'm using ttyAMA0 in Domoticz, no need to softlink it in newer versions of Domoticz.
thetof
Posts: 4
Joined: Saturday 09 July 2016 10:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by thetof »

Thanks a lot for your clear and quick answer.
(I will try next week, during holidays)
thetof
Posts: 4
Joined: Saturday 09 July 2016 10:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by thetof »

Is your raspberry connected on Internet with cable or by wifi ? (to do apt-get and installation...)

Other question : on the "Raspberry PI Configuration", on Interfaces, everything is disable except SSH on my fresh Jessie on sdcard.
Do you have enable "remote GPIO"?? ('cause the razberry is plug on the GPIO port)

Thanks in advance!!!
thetof
Posts: 4
Joined: Saturday 09 July 2016 10:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by thetof »

You can forget my previous post.

Everything is working now !! Awesome !!

Many thanks to irrbloss.

This is the good way to use domoticz with Razberry on Pi3 Jessie !!

(as you can see, I couldn't wait next week to try... now, it's time to go sleeping!)
thundernerd
Posts: 2
Joined: Wednesday 22 June 2016 9:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by thundernerd »

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!!
gilzin
Posts: 7
Joined: Saturday 01 October 2016 12:53
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Post by gilzin »

did you change /dev/AMA0 to S0?
Post Reply

Who is online

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