We have moved at community.getvera.com

Author Topic: Using weather plug in to switch off the light  (Read 1100 times)

Offline huib

  • Full Member
  • ***
  • Posts: 179
  • Karma: +0/-0
Using weather plug in to switch off the light
« on: June 09, 2012, 11:17:50 am »
I am looking to use the weather plug in status ''sunny'' to swich off the light of an aquarium.
The light is activated in the morning and when the sky is clear and sunny the light can be switched off
If the status of the weather plug in changes back the light need to be switched on
In the evening by an event (time) it will be swiched off again

I need some guidance / help for this luup option

update;
I am working on the following luup, on which i would like your advise


local DEVICE_ID_WEATHER_PLUGIN = 20

=====
local condition = luup.variable_get( 'urn:upnp-micasaverde-com:serviceId:Weather1', 'condition',
DEVICE_ID_WEATHER_PLUGIN )

if   "condition" = "sunny"

then

luup.call_action("urn:upnp-org:serviceId:SwitchPower1", "SetTarget", {newTargetValue = "0"}, 17 --- aquarium uit

  else
    return false
  end
======
« Last Edit: June 09, 2012, 04:06:37 pm by huib »
- veralite UI5 - veralite UI7 - 9 fibaro dimmers - 7 fibaro switches - 2 eminent movement sensors - remote control - opentherm gateway - remote powermeter reading - control of whr930 unit - control of washing machine -