two z-wave moduls as "energy-saving power strip"?

I have a cheap “energy-saving power strip” but my sat-box doesn’t seem to use enough energy to turn on the other outputs. So I thought, would it be possible to do something like that with two z-wave moduls (on/off plugs)
I believe it could be done with lua but I don’t know how.
I want my sat-box in one modul (modul 1) and my TV HDMI-switch and PS3 in another modul (modul 2). Now could I tell modul 2 to switch OFF when modul 1 uses less than lets say 30 watts and ON when it uses more? That way my equipment would turn off when my sat-box is in standby, I don’t want to turn it off completely as it is a recorder also.

I hope I came to the right place :slight_smile:

Regards Rasmus (Denmark)

It should work if module 1 had power monitoring capability like this smartswitch: http://shop.micasaverde.com/index.php/featured-products/smartswitch.html

It would take you a while to make up the cost of the smartswitch in energy savings though!

Im not really concerned about energy savings. My HDMI-switch can only be switched off from the unit itself. No on/off button on the remote. The HDMI-switch is in a closet so I basicly just want to switch it off to extend its life a little. Right now its turned on 24/7…

I have these moduls: [url=http://www.flex-control.dk/privat/produkter/lysstyring/produktertillysstring/on-offplug/]http://www.flex-control.dk/privat/produkter/lysstyring/produktertillysstring/on-offplug/[/url]
[url=http://www.homeestore.com/index.php/da/produkter?page=shop.product_details&flypage=flypage.tpl&product_id=75&category_id=2]HomeesTore.com is for sale | HugeDomains

Both of them have power monitoring…

You say its possible. Could you explain to me how I do this?

I wrote a script to do something very similar.

My porch light shines into my living room, and I wanted it to turn off when I was watching a movie/playing games.

I have my entertainment system going through a SmartSwitch, and when more than 100watts are being drawn, and the porch light is on, it turns it off. After a minute, it checks again. If it’s returned to < 100 watts, it turns the light back on.

[code]–get values
local wattValue = luup.variable_get(“urn:micasaverde-com:serviceId:EnergyMetering1”,“Watts”,19)
–porchStatus, 0 = off, 1 = on
local porchStatus = luup.variable_get(“urn:upnp-org:serviceId:SwitchPower1”,“Status”,17)
local wattageThreshold = 100

–if the porch light is on, or we’ve turned it off, run the wattage checks
if( porchStatus ==“1” ) or porchLightModified > 0 then
if (tonumber(wattValue) > wattageThreshold) then
luup.log(“Current Wattage is “…wattValue…”, which is > “…wattageThreshold…” turning it off!”)
–turn the light off
luup.call_action(“urn:upnp-org:serviceId:SwitchPower1”,“SetTarget”,{ newTargetValue=“0” },17)
–set the modified flag so we know we should keep checking to see if the wattage returns to < the threshold.
porchLightModified = 1
–doesn’t really change anything since we do the switching in lua.
return true
else
–if wattage > threshold, AND we have turned the light off through the script, turn it back on.
–this check prevents the script from turning the light on when it was turned off through some other means.
if (porchLightModified > 0) then
luup.log(“Current Wattage is “…wattValue…”, which is < “…wattageThreshold…”, turning it back on!”)
–turn the light on
luup.call_action(“urn:upnp-org:serviceId:SwitchPower1”,“SetTarget”,{ newTargetValue=“1” },17)
–once it’s back on, reset the modified flag so we don’t keep checking the wattage if the light’s off.
porchLightModified = 0
–doesn’t really change anything since we do the switching in lua.
return false
else
luup.log(“Current Wattage is “…wattValue…”, and it’s already on!”)
end
end
else
luup.log(“Porch light is off already, not doing anything!”)
end
[/code]

I really know nothing abouts scripts but couldn’t I just pretend that your porchlight-SWITCH is my HDMIswitch-SWITCH. And my Sat-box-SWITCH is your “Media TV/AV”-SWITCH.?
I would like the HDMI-Swich to turn off when my sat-box goes below 30 watts (Standby)
Now if I just replaced some values in your script to make it work…?
I don’t know what the numbers 17 and 19 means but i’m guessing it is the ID of the switches?
If so I could replace the numbers to 5 and 6 which is the ID’s of my switches. And then replace what i’m guessing is the device-type “urn:micasaverde-com:serviceId:EnergyMetering1” with “urn:schemas-upnp-org:device:BinaryLight:1” (the name of my devices)

Probably not that easy but would it be a start?

Regards Rasmus

Anybody?

BinaryLight? Does it report wattage still?


I am here: Google Maps