Are LUUP functions global (newbie question)

We have some LUUP code which is broken into functions that is copied and pasted into different scenes so we end up with the same named function in more than one scene. However, when use call_delay from one scene I am fairly sure we are picking up the same named function from the other scene. Do we need to make sure all functions used from call_delay are unique on the Vera to prevent this?

All scenes appear to use the same Lua context. So yes, you need to make each function name unique.

(Plugins each get their own context.)

All scenes share the same namespace as the Startup LUA option.

All of the callbacks from luup (I.e. luup.call_delay, luup.call_timer, … Use the name of a global function in that namespace.

Plugins have their own namespace.

Thanks Richard and futzle. We’ll make sure it like this from now on.