Page 1 of 1
2 UpdateDevice commands in 1 script
Posted: Thursday 13 April 2017 22:42
by manjh
I want to issue two consecutive updatedevice commands (for two different devices) in one single LUA script, and can't get it to work.
It seems that only the last issued command runs.
Is there a way to do this?
Re: 2 UpdateDevice commands in 1 script
Posted: Thursday 13 April 2017 22:51
by G3rard
Check
viewtopic.php?t=17058.
It's explained in the wiki.
Re: 2 UpdateDevice commands in 1 script
Posted: Thursday 13 April 2017 23:44
by manjh
Thanks, that solved it.
Before asking this question I had already searched the Wiki, but could not find any result.
But with the examples in this topic I was able to understand the method and have applied it to my script.
Learning every day!!!

Re: 2 UpdateDevice commands in 1 script
Posted: Monday 01 May 2017 17:42
by qwerk
I had the same problem.
Just wrote my first little function.
thanks