Doh, the bracketswaaren wrote: ↑Tuesday 18 September 2018 0:46 You are close...
But would it not be less complicated to use timer = { "every minute" }, and a helper function in the execute = section as described here ?Code: Select all
return { on = { timer = { function(domoticz) return domoticz.devices('Texttest').text == os.date("%H") end }}, execute = function(domoticz) print ( "Executing!!!") end }


It would be less complicated, for sure

Therefore, I tried to stop the script as soon as possible. Calling a helper function (which seems to be a method call according to C++, available from all scripts?) seemed to need "a lot" more running time. Alone putting my time comparison into an if-statement feeled like not to be a good way - the script starts and has to be handled "completely", every minute.
On the other hand, you seem to have a lot of experience with Domoticz and DzVents - do I overstep the mark? Is it unproblematic to have a lot of stuff running "simultaniously", calling helper functions for a handful of time-based scripts every minute and so on?