Page 1 of 1

Lua script_time executed on status changes

Posted: Friday 24 February 2017 20:20
by getSurreal
I have a script_time script that executes every minute as expected, but it also executes every time there is a status change. I'm adding more and more mysensors nodes so now my script is executing every few seconds which I don't want/need. If I disable mysensors it goes back to every minute. But it's not just mysensors though, it also updates when my zwave devices have a status change.

From what I've read a script_device scripts should execute on status changes but script_time scripts should just be every minute.

Is this a bug? Expected behavior? Or is there something I can do to change it?

Version: 3.6765
Build Hash: 0dfc58d
Compile Date: 2017-02-21 08:07:51

Re: Lua script_time executed on status changes

Posted: Friday 24 February 2017 20:27
by jvdz
Just change the script from "All" to "Time"in the dropdown box in the internal editor!

Jos

Re: Lua script_time executed on status changes

Posted: Friday 24 February 2017 20:59
by getSurreal
Oh man! So simple. Thanks!

Does that mean it doesn't matter what the script is named, you just select what you want to trigger it? From piecing together everything I've read from the wiki and forum, I thought it had to have a specific name. Maybe that's the way it used to be and the drop down was an improvement.

Re: Lua script_time executed on status changes

Posted: Friday 24 February 2017 21:07
by jvdz
The specific file naming convention is when you used files store in domoticz\scripts\lua.
That is how I have set it up as at the time there was no internal editor.

Jos