OpenZwave and Greenwave

For Z-Wave related questions in Domoticz

Moderator: leecollings

Post Reply
zaadstra
Posts: 23
Joined: Saturday 06 September 2014 15:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

OpenZwave and Greenwave

Post by zaadstra »

Hi,

I am puzzling to get a Greenwave Powernode reliable running. Now it is in a distance of 5m from the Aeon S2 stick and in between in a few meters an Everspring powered plug. And still the communication drops and the Powernode starts flashing. Restarting Domoticz or rebooting Pi solves it for a while. Changing the log setting to extended and back for OZW in the Domoticz settings also helps, this appears to restart the OZW layer (visible in the log).
Now it's that close to the Zwave controller and an extra network hop is available, I can only think the next step to make it reliable is hard soldering the Greenwave to the Pi :D

As a simple reboot solves the problem without touching the Greenwave I was wondering if there is a software solution to fix this.

So I searched on the OpenZwave forum for Greenwave issues and found this topic started last year by Gizmocuz:

https://groups.google.com/forum/#!topic ... sWDzBQAgwU

Justin H states that some diagnose can be done with a "HasNodeFailed manager call". Is this possible from Domoticz?
User avatar
gizmocuz
Posts: 2471
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: OpenZwave and Greenwave

Post by gizmocuz »

For the greenwave, you have to enable polling, then it should work correctly
Could you verify this ? have some here and they are working allright (to bad they need to be polled)
Quality outlives Quantity!
zaadstra
Posts: 23
Joined: Saturday 06 September 2014 15:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

Re: OpenZwave and Greenwave

Post by zaadstra »

Yes polling is switched on, so I see correct meter values. It is unpredictable when it stops communicating, but is seems sure that it does (distance to controller now few meters and an active node in between.). It is visible in the OZW log, the powernode is declared dead after 3 retries, and then left alone. The metering stops and the Greenwave starts to blink. First I blamed the distance for failing (as you in the post on OZW forum) but now it can't be the cause anymore.
I also lowered polling time from 60 secs to 120 seconds. The greenwave is the only device that is polled, the Everspring wall plugs don't have meters.

I can post a part of that log (done before on this forum). There is something between the powernode and OZW. If OZW was less strict in declaring dead or give an option to retry or revive after 5 minutes than the Greenwave would work. A soft reboot of OZW does the same but also affects other nodes.

Are there anymore logs to look in or produce, to find the cause?
This HasNodeFailed manager call, is that present on a Pi install of Domoticz?

Thanks
zaadstra
Posts: 23
Joined: Saturday 06 September 2014 15:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

Re: OpenZwave and Greenwave

Post by zaadstra »

Any news? On the OZW forum there is silence. It reads to me as the OZW guys see the software is working as designed, I think they are missing a chance. So my thought is still that OZW is the weakest link in Domoticz. All we can do is create some creative workarounds. Does Gizmocuz have an creative view on this? I have no clue how Domoticz talks to the OZW layer.
ben92
Posts: 57
Joined: Thursday 14 August 2014 17:41
Target OS: Linux
Domoticz version: beta
Location: France
Contact:

Re: OpenZwave and Greenwave

Post by ben92 »

hi,
im not polling the greenwave so no meter .... but the greenwave is never dead !
zaadstra
Posts: 23
Joined: Saturday 06 September 2014 15:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

Re: OpenZwave and Greenwave

Post by zaadstra »

Interesting, that prooves my suspicion.... the devices gets confused by all those metering questions. I already lowered the polling rate to 2 minutes (total).

Today the green light was blinking again. So I tested what other posters said: push the button and it connects again. The on- off- button switches the nodes but no result in Domoticz. Then the little button on the side and some fast blinking of the green light et presto, data again in the log, updates switches and meters (and the time in those objects).

Nice find but I hope to solve it from the other direction: from the automation within the Pi. I still cannot use this thing to switch stufff on and off, because I never know when it fails when I am at work or holiday. Then my lights will not switch for the period until I return home...

Domotics should be able to detect this (I might find a trick to script it) but where to kick the system? I know that a reboot of Domoticz (not the Pi, only the service) restarts OpenZwave and restores connection. Also, switching the OZW log (enable debug on and off, Setup-Hardware-S2 stick) has the same result.

Any OpenZwave guru on board here?
chadweek
Posts: 1
Joined: Wednesday 26 August 2015 9:36
Target OS: Raspberry Pi / ODroid
Domoticz version: v2.2808
Contact:

Re: OpenZwave and Greenwave

Post by chadweek »

hi,

I've the same issue with my greenwave plug. Sometimes, the node become dead and i've to restart domoticz service to get communication back.
As you, I really don't understand why this problem occurred.
I've maded a php script to detect the dead nodes and to restart domoticz if needed. This script is called by crontab every 15 minutes.
I would prefered not to use such a script but i didn't find another solution for the moment.

hope it will help people with this greenwave problem...

Code: Select all

<?php
/* Function : WriteLog */
/* Params : */
/* @logInfo : Information to log */
function writeLog($logInfo) {
	$logFile = '/var/log/detectNodeDead.log';
	if (is_writable($logFile)) {
      $fp = fopen($logFile, 'a');
      fwrite($fp, date('d/m/Y H:i:s').': '.$logInfo."\r\n");
      fclose($fp);
	}
}

$IDX_AeonsS2 = 9; //IDX for AEON Stick
$JSON_Stream = @file_get_contents("https://192.168.2.3/json.htm?type=openzwavenodes&idx=".$IDX_AeonsS2);
if ($JSON_Stream === false) exit; //No result, we leave the script.
$JSON_Result = json_decode($JSON_Stream, true);

$DeadNode = False;
foreach ($JSON_Result as $node=>$data) { //We list all node attached to Aeon Stick
 if ($node == "result") {
    foreach($data as $index=>$eltsNode) {
		if ($eltsNode["State"] == "Dead") { // A dead node is finded
			$DeadNode = True;	
			writeLog('Dead Node finded ['.$eltsNode["Description"].']'); //We log the dead node
		}
    }	
 }
}
//Dead node have been finded. Domoticz service have to be restarted.
if ($DeadNode) exec ('sudo service domoticz.sh restart');
?>
Last edited by ThinkPad on Wednesday 26 August 2015 10:36, edited 1 time in total.
Reason: Put code between [code] tags
User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: OpenZwave and Greenwave

Post by Egregius »

Nice one, thanks :)
Added this to my refreshzwave script, allready had the json.htm?type=openzwavenodes&idx= in there...
djgodlike
Posts: 32
Joined: Wednesday 27 January 2016 16:37
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: OpenZwave and Greenwave

Post by djgodlike »

Is this only happening with Aeon sticks? I own a Aeon stick Gen5 for a week now.
When i unplug a greenwave plug the only way to wake is by restarting domoticz. Update: or indeed pressing the button on the plug.

Is this happening with other controllers too?
Last edited by djgodlike on Wednesday 17 February 2016 12:16, edited 2 times in total.
Aeon Labs Gen5 USB
Greenwave Powernode 6 NS310
2x Greenwave Powernode 1 NS310
Philips Hue
Logitech media Server
Plugwise Smile P1
teha
Posts: 18
Joined: Wednesday 30 December 2015 20:23
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Lomma, Sweden
Contact:

Re: OpenZwave and Greenwave

Post by teha »

I have the following experience

I have a Aeon Stick S2 and a one port greenwave plug
Previously this plug starting to flash every now and then, needed to push the button to get it rolling again

I did the following:
1. Start polling the device
2. Increase the "No communication light" setting to 60

I personally think that the indicator start flashing without the device being dead
Attachments
Capture.PNG
Capture.PNG (19.97 KiB) Viewed 3927 times
RPi2 with RFXtrf433(E) at stable, RPi2 with AeonStick S2 on beta, 14*Sonos, Synology DS415play, Axis, D-link camera, PhilipsHue
Plantje
Posts: 451
Joined: Friday 16 October 2015 7:58
Target OS: Windows
Domoticz version:
Contact:

Re: OpenZwave and Greenwave

Post by Plantje »

I have bought two second hand S112-F power plugs and on those I don't have the " No communication light" option. Any idea there?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest