No updates on (Nuon) GreenWave Smartplug 6

For Z-Wave related questions in Domoticz

Moderator: leecollings

Post Reply
MarFan
Posts: 18
Joined: Monday 02 September 2013 15:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

No updates on (Nuon) GreenWave Smartplug 6

Post 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,
MarFan / NL / 3x RasPi / RfXcom / RfLink / S0PCM-5 / P1
MarFan
Posts: 18
Joined: Monday 02 September 2013 15:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: No updates on (Nuon) GreenWave Smartplug 6

Post 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 ?
MarFan / NL / 3x RasPi / RfXcom / RfLink / S0PCM-5 / P1
User avatar
gizmocuz
Posts: 2541
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: No updates on (Nuon) GreenWave Smartplug 6

Post 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
Quality outlives Quantity!
MarFan
Posts: 18
Joined: Monday 02 September 2013 15:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: No updates on (Nuon) GreenWave Smartplug 6

Post 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)
MarFan / NL / 3x RasPi / RfXcom / RfLink / S0PCM-5 / P1
User avatar
gizmocuz
Posts: 2541
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: No updates on (Nuon) GreenWave Smartplug 6

Post 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
Quality outlives Quantity!
garp
Posts: 7
Joined: Monday 30 September 2013 18:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: No updates on (Nuon) GreenWave Smartplug 6

Post 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"
Last edited by garp on Wednesday 02 October 2013 9:05, edited 2 times in total.
Domoticz on Raspberry Pi2 with a RazBerry (V1.0), RFXcom USB, Greenwave (NUON) smart plug 6 & single smart plugs, Fibaro door/window sensors, Cresta temp sensors (433mhz), Z-wave.me wall controller/switch, Z-wave.me dimmer, KaKu ACM3500 etc
gertjuhh

Re: No updates on (Nuon) GreenWave Smartplug 6

Post by gertjuhh »

If you add "-O /dev/null" to your wget command you don't have to remove files afterwards
garp
Posts: 7
Joined: Monday 30 September 2013 18:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: No updates on (Nuon) GreenWave Smartplug 6

Post 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.
Domoticz on Raspberry Pi2 with a RazBerry (V1.0), RFXcom USB, Greenwave (NUON) smart plug 6 & single smart plugs, Fibaro door/window sensors, Cresta temp sensors (433mhz), Z-wave.me wall controller/switch, Z-wave.me dimmer, KaKu ACM3500 etc
User avatar
CopyCatz
Developer
Posts: 123
Joined: Thursday 11 July 2013 17:28
Target OS: -
Domoticz version:
Location: Outer Heaven
Contact:

Re: No updates on (Nuon) GreenWave Smartplug 6

Post by CopyCatz »

Is anyone using this switch with the aeon stick? I think I'm going to order a few of these :D
antwan
Posts: 116
Joined: Saturday 13 July 2013 13:28
Target OS: Linux
Domoticz version: Latest
Location: Hilversum, The Netherlands
Contact:

Re: No updates on (Nuon) GreenWave Smartplug 6

Post 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.
Rasp Pi 2B: 3x DS18S20 (1-wire), BME280 (i2c)
Cubietruck 1: Aeotec Z-Wave+, RFXtrx433XL+P1, RFXtrx868, TE923 display, SolarEdge API
Cubietruck 2: Aeotec Z-Wave, Voltcraft CO-20
djgodlike
Posts: 32
Joined: Wednesday 27 January 2016 16:37
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: No updates on (Nuon) GreenWave Smartplug 6

Post 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...
Aeon Labs Gen5 USB
Greenwave Powernode 6 NS310
2x Greenwave Powernode 1 NS310
Philips Hue
Logitech media Server
Plugwise Smile P1
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: No updates on (Nuon) GreenWave Smartplug 6

Post by Egregius »

You don't need polling for the Greenwave devices :p
Sneezydevil
Posts: 111
Joined: Monday 18 January 2016 9:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: No updates on (Nuon) GreenWave Smartplug 6

Post 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?
djgodlike
Posts: 32
Joined: Wednesday 27 January 2016 16:37
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

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

Post 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.
Aeon Labs Gen5 USB
Greenwave Powernode 6 NS310
2x Greenwave Powernode 1 NS310
Philips Hue
Logitech media Server
Plugwise Smile P1
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: No updates on (Nuon) GreenWave Smartplug 6

Post by Egregius »

Ooh, usage... I don't care about that :roll:
Sneezydevil
Posts: 111
Joined: Monday 18 January 2016 9:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: No updates on (Nuon) GreenWave Smartplug 6

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest