Install the Virtual ON/OFF Switches to you Vera
You could also use this plugin:
http://apps.mios.com/plugin.php?id=1408
And then add this luup code in your scene that you like to be checking if the switch is on / off:
Code: [Select]
run = luup.variable_get("urn:upnp-org:serviceId:VSwitch1","Status",DeviceID)
if(run=="1")then
return true
else
return false
end
You have to replace "DeviceID" with the ID of your Virtual Switch.
So once the scene is triggered, this code will stop the scene if the virtual button is off. If the virtual switch is on the scene will run.
To add aditional switches in UI5 see this forum therad
http://forum.micasaverde.com/index.php/topic,9219.msg60722.html#msg60722
No comments:
Post a Comment