Page 1 of 1

EventSystem: Script event triggered: lua_xxx

Posted: Thursday 15 December 2016 9:45
by pvoj
Hi,
I use domoticz to control my entire house for 2 years now. This software is awesome. Thanks for the developers! :-)
I use lua scripts created on the on-line gui. The scripts are monitoring temperature sensors. Since there are several sensors updating quite often, the scripts execute 5-10 times a minute.
Each execution generates a status log entry which messes up the entire log. Is there a way to ban this log entries to be generated?
Thanks further!
Peter

Re: EventSystem: Script event triggered: lua_xxx

Posted: Thursday 15 December 2016 10:19
by Egregius
I only use one device.lua script and it doens't give that line in the logfile.
I think it's triggered when you return a commandarray wich I don't do.

Re: EventSystem: Script event triggered: lua_xxx

Posted: Thursday 15 December 2016 12:16
by YcKe
Hi pvoj,

I'm currently working on implementing a change for this which allows enable and disable the logging for the trigger.
Hope to get it released in a future beta in a few days.

Greetz YcKe

Re: EventSystem: Script event triggered: lua_xxx

Posted: Thursday 15 December 2016 20:35
by pvoj
Hi YcKe,
Thank you for the great news! You always figure out what I need in Domoticz! ;-)
I think your solution would be great!
What will happen if I write log messages from lua script with print? Will they be appeared or not?
P

Re: EventSystem: Script event triggered: lua_xxx

Posted: Friday 16 December 2016 9:43
by YcKe
Hi Pvoj,

Yes, messages logged in the LUA script will still appear, only the triggers will not be logged anymore in case the parameter is disabled.

Greetz YcKe

Re: EventSystem: Script event triggered: lua_xxx

Posted: Friday 16 December 2016 11:22
by pvoj
Hi YcKe,
Great news! Thanks for the info!
Waiting for the release!
Have a nice day,
P

Re: EventSystem: Script event triggered: lua_xxx

Posted: Friday 16 December 2016 11:27
by Egregius
I would love such a parameter for each device :)
Now my log is flooded with all the Danfoss thermostats that connect every 3 minutes...
There are lot's of devices I don't care about if they appear in the logfile. Personnaly I would even prefer no logging at all, except for the messages I create.

Re: EventSystem: Script event triggered: lua_xxx

Posted: Sunday 18 December 2016 10:11
by YcKe
A small update on this topic, my pull request has been merged and will be available in the next beta.
By default, the logging will still be enabled so you will have to disable it first in the "others" settings tab page.

Edit: it's available since beta 3.6185.

Greetz YcKe

Re: EventSystem: Script event triggered: lua_xxx

Posted: Sunday 18 December 2016 10:58
by remb0
please add it ot the wiki which parameter. great work!