I have a scene that has LUA code within it that will prevent the scene from running if a virtual switch is enabled. I’m working on moving my virtual switches into a multi switch to try and reduce the number of vSwitches I have. Until I can get this scene moved into Reactor, I’m in need of some assistance to tweak it. Or is it even possible?
The current LUA code is:
local dID = 56 – Device ID of your VirtualSwitch
local allow = false – true runs scene if switch is on, false blocks it
local status = luup.variable_get(“urn:upnp-org:serviceId:VSwitch1”,“Status”,dID)
return ((status == “1”) == allow)
The ID of the multiSwitch is 357. But I think I need help with the local status line. The new multi switch service is
Event type parameter from the Advanced settings of the device is:
But how do I include which button it is? SetStatus8.
Or does each button by chance have its own ID, which I don’t see.