Page 1 of 1

Event to retrigger Greenwave powernodes

Posted: Tuesday 08 March 2016 14:51
by Eternity
I have a couple of Greenwave Powernodes that work fine *but* keep blinking a green led indicating lost communication. I have followed the suggestion to increase the "no communication light" interval to the maximum value 255. That does not solve the problem for me.

I thought of re-triggering them via an event:
Schermafbeelding 2016-03-08 om 14.44.07.png
Schermafbeelding 2016-03-08 om 14.44.07.png (148.8 KiB) Viewed 1687 times
but this doesn't seem to work for me. The events gets triggered, but sometimes a powernode is switched on, although it was Off. What am I doing wrong, or - better still - what would be a working script?

Thanks!

Re: Event to retrigger Greenwave powernodes

Posted: Tuesday 08 March 2016 15:19
by Slinkos
It's because an event starts when the switch gets a "new" value. So switch = "on" and within the next 120 minutes it wil set on again, and because that happened the event wil start over and over again.

Unfortunately it doesn't get cancelled when the switch state changes to off. So even if you set it to "off", the event will still set it to on at a random time within the 120 minutes, because your event told domoticz to do that earlier.

I hope you understand my story. It's quite hard to explain.

Re: Event to retrigger Greenwave powernodes

Posted: Tuesday 08 March 2016 15:29
by Eternity
Thanks Slinkos.

Can you think of a solution to re-trigger the powernode? Perhaps with a dummy switch that checks the status of the powernode?

Re: Event to retrigger Greenwave powernodes

Posted: Tuesday 08 March 2016 17:15
by gizmocuz
If you enable 'polling' on the nodes, then the blinking will stop, and you also get some real-time energy graphs

Re: Event to retrigger Greenwave powernodes

Posted: Tuesday 08 March 2016 17:32
by Eternity
Thanks for you replay, Gizmocuz.

Yes, polling does solve the issue but causes Domoticz to crash/become unstable. Perhaps that was a beta issue, I will try again.

Re: Event to retrigger Greenwave powernodes

Posted: Tuesday 08 March 2016 23:16
by Slinkos
Let me know if it works for you. I also have 2 of those greenwave powernodes with that annoying green LED

Re: Event to retrigger Greenwave powernodes

Posted: Wednesday 09 March 2016 8:09
by Eternity
So far, so good !
I have set a polling interval of 120 seconds:
Schermafbeelding 2016-03-09 om 08.08.54.png
Schermafbeelding 2016-03-09 om 08.08.54.png (76.11 KiB) Viewed 1639 times

Re: Event to retrigger Greenwave powernodes

Posted: Wednesday 09 March 2016 10:43
by Slinkos
Why 120 seconds? I understand that you set the value of the powernode to 255 minutes, so why poll every 2 minutes if once in every 255 minutes is enough?

Re: Event to retrigger Greenwave powernodes

Posted: Wednesday 09 March 2016 10:52
by Egregius
from within my PHP script that would be as easy as this :)

Code: Select all

if($STtv < time() - 15000) Schakel($SItv, $Stv);
Meaning: If last switch time ($STtv) of switch tv ($SItv) is more than 15000 seconds ago switch again to same status ($Stv).

Re: Event to retrigger Greenwave powernodes

Posted: Wednesday 09 March 2016 12:11
by Eternity
Slinkos,

You are right. I have increased the value. Non of my other z-wave stuff is polled, only the greenwave nodes. So far it seems to work nicely :-)

BTW...this is good to know"
Set the time period between polls of a node's state. The length of the interval is the same for all devices. To even out the Z-Wave network traffic generated by polling, OpenZWave divides the polling interval by the number of devices that have polling enabled, and polls each in turn. It is recommended that if possible, the interval should not be set shorter than the number of polled devices in seconds (so that the network does not have to cope with more than one poll per second).