Hi Everyone,
Christmas is getting near so have a Merry one. My question actually relates to my Christmas lights, I have scenes running Ir codes to turn things on and they make up a scene. How do I run them from a scene? Any ideas?.
Thanks in advance.
T
kev_b
December 3, 2017, 10:03pm
2
You could make a virtual switch as a trigger for SceneA, then have SceneB turn the virtual switch on.
akbooer
December 3, 2017, 10:19pm
3
There is an action, called RunScene, that you can call to run a scene (from within another scene’s Lua.)
See: http://wiki.micasaverde.com/index.php/Luup_UPnP_Variables_and_Actions#HomeAutomationGateway1
Essentially you add lua code to your scene to call the other scene.
If you didn’t find it in the above link here is an example:
luup.call_action(“urn:micasaverde-com:serviceId:HomeAutomationGateway1”, “RunScene”, {SceneNum = “5”}, 0)
Where 5 is the number of the scene you are calling from within your scene.
Hi Everyone,
Thanks very much I used the multiswitch and figured we may have developed a new way. I appreciate everyone responding it was more than helpful.