The following mechanism works to allow any scene to be triggered from within any other scene.
When creating a scene that you want to be able to reuse, create a Combination Switch (plugin) to go along with it. Configure the Combination switch to “Switch is on when 0 or more watched items are true”. (You needn’t add any items.) This creates a Combination Switch that is always On. Now set your scene to be “Triggered while virtual switch is On” (referring the Combination Switch we just created.)
Now pressing the Trigger button of the Combination Switch will run your scene. The Trigger button can also be selected as part of any other scene.
I’ll answer my own question - this example turning a virtual switch off based on a condition (outside temp) and 129 being the Vswitch number
local t = os.date('*t')
outside = luup.variable_get("urn:upnp-org:serviceId:TemperatureSensor1", "CurrentTemperature", 103)
if (tonumber(outside) > 59) then
luup.call_action("urn:upnp-org:serviceId:VSwitch1", "SetTarget", {newTargetValue = "0"}, 129)
runScene = true
end
Best Home Automation shopping experience. Shop at Ezlo!