Need info on Luup code inclusion within scene scripting

When creating a scene I notice that there are two areas where Luup code can be inserted. First, there is the ‘Luup’ tab under the main script creation window. That one I am familiar with. My understanding is that when an event (as delineated within the ‘Events’ tab) or a timer fires, the first thing that happens is the Luup code is run. If the code returns ‘true’ the commands (as delineated under the ‘commands’ tab) execute. If the code returns ‘false’ then the commands are not executed and the scene goes back to idling, waiting for another timer or event to fire.

The second area where Luup code can be placed is Under the ‘Events’ tab. Within that tab there is a button called “Luup event”, and upon selecting that, a window where Luup code can be placed. I have not been able to find any documentation on how this area is used / utilized and how the code ther affects the completion of the scene.

Can someone explain how this area is used and what effects the code in tht area has on execution of the scene?

Thanks,

~ John

Hi

Someone kindly linked me to this when I was asking similar questions

http://wiki.micasaverde.com/index.php/File:SceneFlowchart.png

Nick

There’s also information on this here:
[url=http://wiki.micasaverde.com/index.php/Luup_Scenes_Events#Adding_Lua_code_to_scenes_and_events]http://wiki.micasaverde.com/index.php/Luup_Scenes_Events#Adding_Lua_code_to_scenes_and_events[/url]

In UI5, does trigger luup code (used to be event luup code) exist? I don’t see anything under Automation; Triggers. If so, is there a way to know within the main luup code which trigger fired or which timer expired?

Yes, it’s still there.

Automation > [Edit Scene] > Triggers > Luup Event

Thanks for pointing out where trigger luups are.