Page 2 of 3

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Posted: Thursday 09 June 2016 20:16
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

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Posted: Friday 10 June 2016 15:24
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.

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Posted: Saturday 11 June 2016 0:16
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

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Posted: Sunday 12 June 2016 14:31
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

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Posted: Sunday 12 June 2016 16:32
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.

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Posted: Sunday 12 June 2016 17:28
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.

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Posted: Sunday 19 June 2016 17:28
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.

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Posted: Monday 20 June 2016 22:05
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

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Posted: Tuesday 21 June 2016 22:14
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

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Posted: Tuesday 21 June 2016 22:31
by bullrin
thanks for sharing! If you discover more tweaks, please continue posting :)

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Posted: Wednesday 22 June 2016 9:20
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.

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Posted: Wednesday 22 June 2016 14:54
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.

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Posted: Saturday 25 June 2016 19:48
by bullrin
I installed the sources of open zwave and domoticz and it works like a charm now, since the instructions of irrbloss :)

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Posted: Saturday 09 July 2016 11:19
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

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Posted: Saturday 09 July 2016 13:21
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.

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Posted: Saturday 09 July 2016 14:19
by thetof
Thanks a lot for your clear and quick answer.
(I will try next week, during holidays)

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Posted: Saturday 09 July 2016 23:00
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!!!

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Posted: Sunday 10 July 2016 1:23
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!)

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Posted: Friday 02 September 2016 13:29
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!!

Re: Domoticz, Pi3, RaZberry & Raspbian Jessie

Posted: Saturday 29 October 2016 11:11
by gilzin
did you change /dev/AMA0 to S0?