Page 1 of 1

Domoticz API and Log lines

Posted: Tuesday 06 May 2025 18:25
by jacobh
I'm using the Domoticz API by means of curl "https://<address>:<port>/json.htm?type=command&... etc.

Works just fine, but I would like to surpress the messages that come with that in the Log (Status).
Funny things is, I only see messages posted there when param=switchlight. Any other param sofar (udevice, updateuservariable and others)? No log line (which is what I want).

Examples that don't produce a status line in the log:
type=command&param=udevice&idx=4514&nvalue=0&svalue=51.0
type=command&param=updateuservariable&vname=locatiei&vtype=String&vvalue=53.1327383,6.1459101

Example that does produce a status line in the log:
type=command&param=switchlight&idx=214&switchcmd=On

Can anybody explain why it doesn't work for this particular type of parameter or better: is there (another) way to surpress these log messages?

I read something about adding the phrase &loglevel=0 to surpress, but that doesn't seem to do anything.

Re: Domoticz API and Log lines

Posted: Tuesday 06 May 2025 19:01
by jvdz
They look to me like old API usage issue. A quote of what I posted yesterday:
Have a look here: https://wiki.domoticz.com/Domoticz_API/ ... and_newer)
This change has been implemented since the previous stable version showing a warning in the log when using the old format.
Support for the old format has been removed in this latest version.