Including Z-wave from Z-way / Zwave.me running on a different RPi

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

Moderators: leecollings, remb0

Post Reply
Json
Posts: 5
Joined: Saturday 04 February 2017 21:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Including Z-wave from Z-way / Zwave.me running on a different RPi

Post by Json »

I'm trying to include Z-wave devices into Domoticz which are managed from a different Raspberry PI on the same network. This other Rpi is running Z-way (the z-wave HA software from z.wave.me). Authentication for the ZWave API on this Z-way machine is switched off.

I figure I want to combine the best of both worlds (and also the Domoticz machine is not in a good location with regard to radio transmission)

In Domoticz, I tried adding "Razberry Z-Wave via LAN interface (HTTP)" as new hardware device, with the correct IP/ port but all I get in the log is "Error: Razberry: Error getting data!"

If I log in to shell on the machine running Domoticz I can type

Code: Select all

 wget -O - http://192.168.x.x:8083/ZWaveAPI/Data/0
and get the expected burst of json data from the Z-way machine. So the connection/ authentication seems to work.

Looking at https://github.com/domoticz/domoticz/bl ... zberry.cpp it seems to be the kind of URL that would be requested:

Code: Select all

const std::string CRazberry::GetControllerURL()
{
	std::stringstream sUrl;
	if (m_username.empty())
		sUrl << "http://" << m_ipaddress << ":" << m_port << "/ZWaveAPI/Data/" << m_updateTime;
	else
		sUrl << "http://"  << m_username << ":" << m_password << "@" << m_ipaddress << ":" << m_port << "/ZWaveAPI/Data/" << m_updateTime;
	return sUrl.str();
}
(not sure about the m_updateTime; but http://192.168.x.x:8083/ZWaveAPI/Data/yyyyyy seems to return valid data when requesting it manually no matter what yyyyyy is.)

What could be the problem, is Domoticz supposed to be able to incorporate Razberry z-wave devices from a different machine this way or am I misunderstanding something fundamental? I could not find much documentation on this "Razberry Z-Wave via LAN interface (HTTP)" option ....

Is there a better way around this problem that i am not aware of since I'm a total newbie? Putting the Razberry card into the Domoticz machine is something I am trying to avoid (like i said for radio transmission reasons)


Version: 3.4834
Build Hash: 8398125
Compile Date: 2016-03-02 08:43:51


cheers
Json
Posts: 5
Joined: Saturday 04 February 2017 21:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Including Z-wave from Z-way / Zwave.me running on a different RPi

Post by Json »

I'm replying to my own message.. I slept on it and tried first looking at the actual network traffic here. So, if you ssh into the Domoticz machine and execute this:

Code: Select all

sudo tcpdump -A -n host 192.168.x.x
.. and then watch the output while you enable this "Razberry Z-Wave via LAN interface (HTTP)", there is .... nothing. But the Domoticz log still shows the same thing; "Error: Razberry: Error getting data!"

If I run the wget command I described earlier in another ssh session, tcpdump wakes up and indicates that the expected network traffic happens to/from the Z-way host 192.168.x.x.

So, Domoticz does not ever to connect to the other host, and that's why it fails.

What on Earth could cause this?

(Note: of course these are actual hosts on my LAN and not 192.168.x.x spelled with the letter x)
User avatar
gizmocuz
Posts: 2552
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Including Z-wave from Z-way / Zwave.me running on a different RPi

Post by gizmocuz »

First ... the razberry method support will be dropped in the next beta, you will have to use openzwave as mentioned everywhere in this forum

You might want to look at ser2net maybe
Quality outlives Quantity!
Json
Posts: 5
Joined: Saturday 04 February 2017 21:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Including Z-wave from Z-way / Zwave.me running on a different RPi

Post by Json »

gizmocuz wrote:First ... the razberry method support will be dropped in the next beta, you will have to use openzwave as mentioned everywhere in this forum

You might want to look at ser2net maybe
Aha.. OK.

Is there some way to run Domoticz on both machines, link them, and have the one with the z-wave card as some sort of Domoticz "slave"?
koowee
Posts: 62
Joined: Thursday 29 December 2016 18:17
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Finland
Contact:

Re: Including Z-wave from Z-way / Zwave.me running on a different RPi

Post by koowee »

Json wrote:Is there some way to run Domoticz on both machines, link them, and have the one with the z-wave card as some sort of Domoticz "slave"?
Maybe this is what you are looking for?

https://www.domoticz.com/wiki/Setting_up_Device_sharing
Json
Posts: 5
Joined: Saturday 04 February 2017 21:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Including Z-wave from Z-way / Zwave.me running on a different RPi

Post by Json »

koowee wrote:
Json wrote:Is there some way to run Domoticz on both machines, link them, and have the one with the z-wave card as some sort of Domoticz "slave"?
Maybe this is what you are looking for?

https://www.domoticz.com/wiki/Setting_up_Device_sharing
Wow, yes, that looks exactly like what I meant. I really am a Domoticz newbie. I think this will solve the problem, then I will just attempt to migrate the Raspberry with the Razberry transciever from Z-way software to Domoticz software at some point.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest