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
Lua script_time executed on status changes
Moderator: leecollings
-
- Posts: 19
- Joined: Friday 31 July 2015 0:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
- jvdz
- Posts: 2333
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: Lua script_time executed on status changes
Just change the script from "All" to "Time"in the dropdown box in the internal editor!
Jos
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 19
- Joined: Friday 31 July 2015 0:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
Re: Lua script_time executed on status changes
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.
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.
- jvdz
- Posts: 2333
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: Lua script_time executed on status changes
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
That is how I have set it up as at the time there was no internal editor.
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Who is online
Users browsing this forum: No registered users and 1 guest