Event to retrigger Greenwave powernodes

Moderator: leecollings

Post Reply
Eternity
Posts: 63
Joined: Saturday 06 December 2014 16:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Event to retrigger Greenwave powernodes

Post 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 1680 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!
Synology DS218+
Homey controller
Z-Wave stuff (Fibaro / Aeotec / NEO Coolcam)
Zigbee stuff (Aqara)
HUE lights
Logitech Harmony Ultimate + Hub
IP camera's
Slinkos
Posts: 81
Joined: Thursday 10 December 2015 0:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Location: Netherlands
Contact:

Re: Event to retrigger Greenwave powernodes

Post 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.
Eternity
Posts: 63
Joined: Saturday 06 December 2014 16:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Event to retrigger Greenwave powernodes

Post 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?
Synology DS218+
Homey controller
Z-Wave stuff (Fibaro / Aeotec / NEO Coolcam)
Zigbee stuff (Aqara)
HUE lights
Logitech Harmony Ultimate + Hub
IP camera's
User avatar
gizmocuz
Posts: 2712
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Event to retrigger Greenwave powernodes

Post by gizmocuz »

If you enable 'polling' on the nodes, then the blinking will stop, and you also get some real-time energy graphs
Quality outlives Quantity!
Eternity
Posts: 63
Joined: Saturday 06 December 2014 16:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Event to retrigger Greenwave powernodes

Post 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.
Synology DS218+
Homey controller
Z-Wave stuff (Fibaro / Aeotec / NEO Coolcam)
Zigbee stuff (Aqara)
HUE lights
Logitech Harmony Ultimate + Hub
IP camera's
Slinkos
Posts: 81
Joined: Thursday 10 December 2015 0:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Location: Netherlands
Contact:

Re: Event to retrigger Greenwave powernodes

Post by Slinkos »

Let me know if it works for you. I also have 2 of those greenwave powernodes with that annoying green LED
Eternity
Posts: 63
Joined: Saturday 06 December 2014 16:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Event to retrigger Greenwave powernodes

Post 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 1632 times
Synology DS218+
Homey controller
Z-Wave stuff (Fibaro / Aeotec / NEO Coolcam)
Zigbee stuff (Aqara)
HUE lights
Logitech Harmony Ultimate + Hub
IP camera's
Slinkos
Posts: 81
Joined: Thursday 10 December 2015 0:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Location: Netherlands
Contact:

Re: Event to retrigger Greenwave powernodes

Post 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?
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Event to retrigger Greenwave powernodes

Post 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).
Eternity
Posts: 63
Joined: Saturday 06 December 2014 16:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Event to retrigger Greenwave powernodes

Post 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).
Synology DS218+
Homey controller
Z-Wave stuff (Fibaro / Aeotec / NEO Coolcam)
Zigbee stuff (Aqara)
HUE lights
Logitech Harmony Ultimate + Hub
IP camera's
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest