Log Messages  [SOLVED]

Moderator: leecollings

Post Reply
User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Log Messages

Post by DewGew »

After I updated to latest beta v3.9269. I recive update uservarable in my log when I update a uservarable thrue dzVents.
2018-04-19 14:26:00.520 Set UserVariable counter = 27
2018-04-19 14:27:00.320 Set UserVariable counter = 28
2018-04-19 14:28:00.431 Set UserVariable counter = 29
I have a counter updating every minute. is this a bug or Is it possible to disable those logmessages?
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: Log Messages  [SOLVED]

Post by dannybloe »

It's not something caused by dzVents. Clearly somewhere in Domoticz got changed. I guess they want to bring this more in line with the rest of the logging. If you change a device like switching a switch, you also see this in the logs.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Log Messages

Post by DewGew »

Its a status change, same color as script logs but I'm not getting it when using lua..
commandArray['Variable:MyVar']='Some value'
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
MikeF
Posts: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

Re: Log Messages

Post by MikeF »

dannybloe wrote: Wednesday 25 April 2018 11:32 It's not something caused by dzVents. Clearly somewhere in Domoticz got changed.
I'm still not convinced by this. I have been running a dzVents script regularly for months, and I have just added these lines:

Code: Select all

local d_setp_upd = dz.variables('setpoint')
local setpoint_updated = 0

-- do some code

d_setp_upd.set(setpoint_updated)
and I now get the following in the Domoticz log every minute:

Code: Select all

Status: Set UserVariable setpoint = 0
Is there any way to suppress this?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Log Messages

Post by waaren »

MikeF wrote: Sunday 11 October 2020 0:39 Is there any way to suppress this?
This statusmessage comes from deep down in domoticz.

Code: Select all

main/SQLHelper.cpp:3600:   _Log(LOG_STATUS, "Set UserVariable %s = %s", sd[0].c_str(), CURLEncode::URLDecode(itt->_sValue).c_str());
In dzVents you could check the value of the var and only set the value when it is different
You could also suppress the status messages to the log in your domoticz configurations settings. (/etc/init.d/domoticz.sh )
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
MikeF
Posts: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

Re: Log Messages

Post by MikeF »

waaren wrote: Sunday 11 October 2020 1:31 In dzVents you could check the value of the var and only set the value when it is different
Of course! Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest