Page 1 of 1

dzVents: Updating uservariable generate bug in log file

Posted: Thursday 28 September 2017 22:47
by jake
I update an Uservariable through dzVents LUA script:

Code: Select all

local kodivariable_status = domoticz.variables('KodiStatus')
local kodidevice = domoticz.devices('Kodi Woonkamer - Status')
kodivariable_status.set(kodidevice.state)
However, the logfile isn't updated (as it did before, I updated in August to a newer beta and the uservariable never updated since). This is the log line with the error

Code: Select all

2017-09-28 22:39:01.812 Error: Error opening url: http://127.0.0.1:8080/json.htm?type=command¶m=updateuservariable&vname=KodiStatus&vtype=2&vvalue=Off&idx=12
As can be seen, the 'command¶m' should have been 'command&param'. When I copy this fixed url to the brower it fires alright!
I now updated to the latest beta 8450 and the problem is still there.

I checked the file "\domoticz\scripts\dzVents\runtime\Variable.lua" and there the json command is described correctly.

Re: dzVents: Updating uservariable generate bug in log file

Posted: Friday 29 September 2017 14:22
by dannybloe
This is fixed in the upcoming dzVents update as it doesn’t rely on using http calls anymore to update user variables. Hopefully after the weekend.