EventSystem: Script event triggered: lua_xxx

Moderator: leecollings

Post Reply
pvoj
Posts: 14
Joined: Saturday 03 October 2015 22:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5964
Location: Hungary
Contact:

EventSystem: Script event triggered: lua_xxx

Post 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
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: EventSystem: Script event triggered: lua_xxx

Post 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.
YcKe
Posts: 39
Joined: Sunday 03 July 2016 0:53
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: EventSystem: Script event triggered: lua_xxx

Post 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
pvoj
Posts: 14
Joined: Saturday 03 October 2015 22:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5964
Location: Hungary
Contact:

Re: EventSystem: Script event triggered: lua_xxx

Post 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
YcKe
Posts: 39
Joined: Sunday 03 July 2016 0:53
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: EventSystem: Script event triggered: lua_xxx

Post 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
pvoj
Posts: 14
Joined: Saturday 03 October 2015 22:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5964
Location: Hungary
Contact:

Re: EventSystem: Script event triggered: lua_xxx

Post by pvoj »

Hi YcKe,
Great news! Thanks for the info!
Waiting for the release!
Have a nice day,
P
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: EventSystem: Script event triggered: lua_xxx

Post 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.
YcKe
Posts: 39
Joined: Sunday 03 July 2016 0:53
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: EventSystem: Script event triggered: lua_xxx

Post 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
User avatar
remb0
Posts: 499
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: EventSystem: Script event triggered: lua_xxx

Post by remb0 »

please add it ot the wiki which parameter. great work!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests