Scene calling Several Scenes

Is there a way to have a scene, call other scenes (more than one)

I have a Scene (#1) that turns off the lights in the basement.
I have a Scene (#2) that turns off all the lights on the Main Floor
I have a Scene (#3) that turns off all the lights upstairs.
I have a Scene (#4) that locks all the doors.

I’d like to make a scene that calls (#1, #2, #3, #4) rather than making a scene that does the exact same thing as all of them together.

There are valid reasons to have each individual scene, as well as, the one that does all the scenes. plus each time I add a device, I don’t have to update several scenes to get them all working correctly.

you can call a scene in Lua code

http://wiki.micasaverde.com/index.php/Luup_Scenes_Events#Run_Scene_.235

1 Like

thanks, works perfectly by stringing them together, like this

luup.call_action(“urn:micasaverde-com:serviceId:HomeAutomationGateway1”, “RunScene”, {SceneNum = “5”}, 0)
luup.call_action(“urn:micasaverde-com:serviceId:HomeAutomationGateway1”, “RunScene”, {SceneNum = “6”}, 0)
luup.call_action(“urn:micasaverde-com:serviceId:HomeAutomationGateway1”, “RunScene”, {SceneNum = “7”}, 0)

1 Like