Vera - Smarter Home Control Forum

Advanced => Programming => Scene Scripting => Topic started by: rotman253 on July 08, 2017, 02:55:56 pm

Title: scene interval trigger AND conditional
Post by: rotman253 on July 08, 2017, 02:55:56 pm
Hey there ,
want to create a simple interval scene that will be running as long as some virtual switch is turned on.
but there's no option for Luup event code with interval trigger...

How can I accomplish this?
Thanks very much
Title: Re: scene interval trigger AND conditional
Post by: akbooer on July 08, 2017, 03:50:55 pm
Take a look at Conditional Scene Execution: Some Examples (http://forum.micasaverde.com/index.php/topic,18679.msg141954.html#msg141954)
Title: Re: scene interval trigger AND conditional
Post by: rotman253 on July 10, 2017, 05:14:19 pm
Take a look at Conditional Scene Execution: Some Examples (http://forum.micasaverde.com/index.php/topic,18679.msg141954.html#msg141954)

Thank you for the answer.
I've looked in this thread and couldn't find anything related to conditional interval triggered scene execution.
Title: Re: scene interval trigger AND conditional
Post by: akbooer on July 10, 2017, 06:51:08 pm
but there's no option for Luup event code with interval trigger...

The techniques in the referenced thread can be used with scheduled scenes.  All scenes have the option of  Lua code which may choose to abort the remaining scene execution.  Simply return false if the scene should not be run.