Anyone out there that have working JavaScript examples of how to use/create timers in rules? I am trying to translate my old DSL timers (that can be restarted) to OH 3 JavaScript rules. I have found short code snippets here and there but there are always some important part missing to get it running.
-
OH 3 Examples: Writing and using JavaScript Libraries in MainUI created Rules. timerMgr creates Timers and discusses timers quite a bit
-
openHAB 3.0 my getting started notes: Rules The first block of code has a createTimer example
-
Experimental Next-Gen Rules Engine Documentation 5 of : Actions is old but still valid and shows how to create a timer.
-
Switch Light on/off on OH3 using ECMA script and HUE Dimmer Switch - #13 by msty shows a good example
-
Global vars for OH3 Rules? - #2 by tsmit has another example
Thanks
Without starting a new post for a simple question,
There is no way to pass timers from one rule to the next at the moment is there?
Ive resorted to using a text.rules file for my garage which cancels the timers for lights to turn off if i switch the light off and on again myself.
Theoretically there might be a way using Script Extensions. But I don’t know how to use them yet.