We have moved at community.getvera.com

Author Topic: Using weather plug in to switch off the light  (Read 1224 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

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


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

if   "condition" = "sunny"


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

    return false
« 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 -