I am new to Vera and LUUP so any help would be greatly appreciated!
I have created a scene using LUUP that turns off one light if another is turned on:
local circuit = luup.variable_get("urn:upnp-org:serviceId:Dimming1", "LoadLevelStatus", 5)
if (circuit == "100") then
luup.call_action("urn:upnp-org:serviceId:Dimming1", "SetLoadLevelTarget", {newLoadlevelTarget = "0"}, 3)
end
The problem I am having is that the scene only works when I manually press “run” on the dashboard or use the GUI to make triggers. How can I write these triggers within the LUUP code itself?
Thanks!
Thanks!