Page 1 of 1

No updates on (Nuon) GreenWave Smartplug 6

Posted: Monday 02 September 2013 15:22
by MarFan
I installed Domoticz together with an RazBerry on a Raspberry Pi.
Also I bought an (nuon) greenwace Smartplug 6. I configured this device in the Z-Wave UI and see all 6 buttons /sensors and meters.
In Domoticz I also see all these (18) devices.

But, there is no update. The values are not changing.
I can update it manually in the Z-wave UI, and those values are then vissible in Domoticz.

Do I miss any setup or .....

Thank you,

Re: No updates on (Nuon) GreenWave Smartplug 6

Posted: Friday 06 September 2013 23:00
by MarFan
I figured it out,

The refresh/update is not done automaticly.
There is a command IPaddressRP:8083/ZWaveAPI/Run/devices[X].instances[Y].Meter.Get()
Where X is the device ID
Y : 0 = all plugs
y : 1-6 plug Y on the smartplug

I now created a script (VB) which poll every plug (every 2 seconds 1 plug). This will update Domoticz also

@Rob/gizmocuz is it possible that Domoticz fires this command before getting the values ?

Re: No updates on (Nuon) GreenWave Smartplug 6

Posted: Saturday 07 September 2013 18:35
by gizmocuz
Thats odd... but might be working that way.

Could you not setup the device (in razberry) to automaticly get the values every 10 minutes for example?
I can do this with other sensors...

With kind regards,
Rob

Re: No updates on (Nuon) GreenWave Smartplug 6

Posted: Saturday 07 September 2013 19:30
by MarFan
gizmocuz wrote: Could you not setup the device (in razberry) to automaticly get the values every 10 minutes for example?
I can do this with other sensors...
Could you post the setup (screendump), I believe I checked everything and could not find it

In this forum they talk about this problem and solved it, that way
http://www.openremote.org/display/forum ... h+Razberry (search for Meter.Get 2 times)

Re: No updates on (Nuon) GreenWave Smartplug 6

Posted: Sunday 08 September 2013 15:55
by gizmocuz
Maybe it is in underneath the button 'Devices Configuration'.

But maybe this device is not 100% supported yet.

Could you email me (info @ domoticz . com), the output from:
http://IPADDRESS:8083/ZWaveAPI/Data/0

then copy the value of 'updateTime' that you can find at the bottom.

Wait an hour, then issue
http://IPADDRESS:8083/ZWaveAPI/Data/UPDATETIMEVALUE

Where IPADDRESS is the ip address of the razberry device, and UPDATETIMEVALUE is the value you copied earlier

With kind regards,
Rob

Re: No updates on (Nuon) GreenWave Smartplug 6

Posted: Monday 30 September 2013 18:47
by garp
I created a script for Razberry (general Linux) that updates the values. I'm still optimizing the script, so it can be different from time to time :D

Code: Select all

! /bin/bash
# Script to update NOUN (Greenwave) smart plugs including smart plug 6 information
# on a Razberry (linux) z-wave controller
#
# save the script somewhere and add it to crontab with 'crontab -e'
#
# #min hour day month weekday command
# */1   *    *    *    *     /home/pi/script/updatescript.sh
#

# Single smart plugs
wget --quiet "http://10.0.0.29:8083/ZWaveAPI/Run/devices[2].instances[0].Meter.Get() -O /dev/null"
wget --quiet "http://10.0.0.29:8083/ZWaveAPI/Run/devices[18].instances[0].Meter.Get() -O /dev/null"
wget --quiet "http://10.0.0.29:8083/ZWaveAPI/Run/devices[20].instances[0].Meter.Get() -O /dev/null"

sleep 1

# Smart node 6 - kitchen table
wget --quiet "http://10.0.0.29:8083/ZWaveAPI/Run/devices[21].instances[0].Meter.Get() -O /dev/null"
sleep 2
wget --quiet "http://10.0.0.29:8083/ZWaveAPI/Run/devices[21].instances[1].Meter.Get() -O /dev/null"
sleep 2
wget --quiet "http://10.0.0.29:8083/ZWaveAPI/Run/devices[21].instances[2].Meter.Get() -O /dev/null"
sleep 2
wget --quiet "http://10.0.0.29:8083/ZWaveAPI/Run/devices[21].instances[3].Meter.Get() -O /dev/null"
sleep 2
wget --quiet "http://10.0.0.29:8083/ZWaveAPI/Run/devices[21].instances[4].Meter.Get() -O /dev/null"
sleep 2
wget --quiet "http://10.0.0.29:8083/ZWaveAPI/Run/devices[21].instances[5].Meter.Get() -O /dev/null"
sleep 2
wget --quiet "http://10.0.0.29:8083/ZWaveAPI/Run/devices[21].instances[6].Meter.Get() -O /dev/null"
sleep 2

# Smart node 6 - behind the tv
wget --quiet "http://10.0.0.29:8083/ZWaveAPI/Run/devices[25].instances[0].Meter.Get() -O /dev/null"
sleep 2
wget --quiet "http://10.0.0.29:8083/ZWaveAPI/Run/devices[25].instances[1].Meter.Get() -O /dev/null"
sleep 2
wget --quiet "http://10.0.0.29:8083/ZWaveAPI/Run/devices[25].instances[2].Meter.Get() -O /dev/null"
sleep 2
wget --quiet "http://10.0.0.29:8083/ZWaveAPI/Run/devices[25].instances[3].Meter.Get() -O /dev/null"
sleep 2
wget --quiet "http://10.0.0.29:8083/ZWaveAPI/Run/devices[25].instances[4].Meter.Get() -O /dev/null"
sleep 2
wget --quiet "http://10.0.0.29:8083/ZWaveAPI/Run/devices[25].instances[5].Meter.Get() -O /dev/null"
sleep 2
wget --quiet "http://10.0.0.29:8083/ZWaveAPI/Run/devices[25].instances[6].Meter.Get() -O /dev/null"

Re: No updates on (Nuon) GreenWave Smartplug 6

Posted: Monday 30 September 2013 20:12
by gertjuhh
If you add "-O /dev/null" to your wget command you don't have to remove files afterwards

Re: No updates on (Nuon) GreenWave Smartplug 6

Posted: Wednesday 02 October 2013 8:58
by garp
Thx. Tested it and it works like a charm. I updated the script in the above post to the current, running one.

I also added 2 seconds wait time between the querying of each plug on the smart plug 6 in an attempt not to overload the plugs with requests.

Re: No updates on (Nuon) GreenWave Smartplug 6

Posted: Sunday 05 January 2014 16:27
by CopyCatz
Is anyone using this switch with the aeon stick? I think I'm going to order a few of these :D

Re: No updates on (Nuon) GreenWave Smartplug 6

Posted: Sunday 05 January 2014 20:32
by antwan
CopyCatz wrote:Is anyone using this switch with the aeon stick? I think I'm going to order a few of these :D
Have the stick and powerbarr for 2 weeks now. I'm verry happy with it and more zwave stuff on order.

Rob has this for more then a month.

Re: No updates on (Nuon) GreenWave Smartplug 6

Posted: Tuesday 09 February 2016 22:24
by djgodlike
It now seems to work directly from domoticz without a script.
Just enable polling for every device and adjust time (under hardware device controller setting from OpenZWave) to 30 sec!

Just installed the greenwave smartplug 6 and 2 single greenwave switches. Confirm both working on domonticz on xpenology with Aeon Z-wave Gen5 stick.

Ps i cannot watch the total usage of the smartplug 6 yet...

Re: No updates on (Nuon) GreenWave Smartplug 6

Posted: Wednesday 10 February 2016 0:06
by Egregius
You don't need polling for the Greenwave devices :p

Re: No updates on (Nuon) GreenWave Smartplug 6

Posted: Wednesday 10 February 2016 8:10
by Sneezydevil
Egregius wrote:You don't need polling for the Greenwave devices :p
Do they fully work for you without polling? Do they update (and keep updating) usage and total usage?

Re: RE: Re: No updates on (Nuon) GreenWave Smartplug 6

Posted: Wednesday 10 February 2016 10:16
by djgodlike
Sneezydevil wrote:
Egregius wrote:You don't need polling for the Greenwave devices :p
Do they fully work for you without polling? Do they update (and keep updating) usage and total usage?
No they don't seem to show the watts without polling.

Re: No updates on (Nuon) GreenWave Smartplug 6

Posted: Wednesday 10 February 2016 10:40
by Egregius
Ooh, usage... I don't care about that :roll:

Re: No updates on (Nuon) GreenWave Smartplug 6

Posted: Wednesday 10 February 2016 10:45
by Sneezydevil
Haha was just checking I have several greenwave powernodes on most I have polling disabled since I don't need to know the usage. But on 1 or 2 I switch based on usage, in those cases I have polling enabled.

Since I don't really like polling, you gave me glimmer of hope I could get around using polling on those few that have it enabled.