dzVents: Updating uservariable generate bug in log file

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
jake
Posts: 751
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

dzVents: Updating uservariable generate bug in log file

Post 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.
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: dzVents: Updating uservariable generate bug in log file

Post 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.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest