Author Topic: scene interval trigger AND conditional  (Read 261 times)

Offline rotman253

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
scene interval trigger AND conditional
« 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

Offline akbooer

  • Master Member
  • *******
  • Posts: 5291
  • Karma: +229/-67
  • "Less is more"
Re: scene interval trigger AND conditional
« Reply #1 on: July 08, 2017, 03:50:55 pm »
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P.
Razberry, MySensors Arduino, HomeWave, AltUI, DataYours, openLuup, ZWay, ZeroBrane Studio.

Offline rotman253

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
Re: scene interval trigger AND conditional
« Reply #2 on: July 10, 2017, 05:14:19 pm »
Take a look at Conditional Scene Execution: Some Examples

Thank you for the answer.
I've looked in this thread and couldn't find anything related to conditional interval triggered scene execution.

Offline akbooer

  • Master Member
  • *******
  • Posts: 5291
  • Karma: +229/-67
  • "Less is more"
Re: scene interval trigger AND conditional
« Reply #3 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.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P.
Razberry, MySensors Arduino, HomeWave, AltUI, DataYours, openLuup, ZWay, ZeroBrane Studio.