Page 1 of 1
OpenZwave and Greenwave
Posted: Tuesday 23 June 2015 17:44
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
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?
Re: OpenZwave and Greenwave
Posted: Tuesday 23 June 2015 18:19
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)
Re: OpenZwave and Greenwave
Posted: Wednesday 24 June 2015 13:34
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
Re: OpenZwave and Greenwave
Posted: Tuesday 30 June 2015 12:01
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.
Re: OpenZwave and Greenwave
Posted: Thursday 02 July 2015 16:30
by ben92
hi,
im not polling the greenwave so no meter .... but the greenwave is never dead !
Re: OpenZwave and Greenwave
Posted: Wednesday 15 July 2015 22:51
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?
Re: OpenZwave and Greenwave
Posted: Wednesday 26 August 2015 10:09
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');
?>
Re: OpenZwave and Greenwave
Posted: Monday 21 December 2015 15:41
by Egregius
Nice one, thanks

Added this to my refreshzwave script, allready had the json.htm?type=openzwavenodes&idx= in there...
Re: OpenZwave and Greenwave
Posted: Wednesday 17 February 2016 12:16
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?
Re: OpenZwave and Greenwave
Posted: Wednesday 17 February 2016 12:39
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
Re: OpenZwave and Greenwave
Posted: Monday 20 June 2016 12:32
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?