Hi Brett,
I've been wondering about the scripts and have a couple of questions for you, hope you don't mind, I've just chucked em into a list:
1. Why lots of scripts (per function), is this necessary?
I suspect this is down to efficiency, having observed the plugboard, it only has to run a small script if an event is triggered....am I close? How many function would you suggest to run in one script?
2. Is it possible to pass variables accross scripts
i.e. set a global variable of presence=true -- someone is at home
or dusk=true -- it's dark out
and then be able to work with these variables from any script?
3. Why use "local" in front of a variable, does that just limit the variable to that function or that script file?
4. Do I need to be careful about variable names accross my scripts, so as not to have same variables names?
5. What is a class used for as opposed to a target or a source?
i.e can you explain laymans terms why I would register a class as opposed to a source? as in your alias examples.
The whole LUA thing is just alien to me and I think the answers to some of the questions above, may just help me step forward a little.
Cheers
Gary