I have started using the option to push data to Influxdb but if a dummy sensor is updated by the function "updateCustomSensor", the data is not send to influxdb. I have read the wiki and this seems to be by design. Now I am using the json call to domoticz to update the dummy sensor using the following helper function in the "global_data.lua" and this works fine, Influxdb is updated perfectly.
Code: Select all
pushInfluxdb = function (domoticz, device, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6)
local tempUrl = "http://xxx.xxx.xxx.xxx:8080/json.htm?type=command¶m=udevice&idx=" .. device .. "&nvalue=0&svalue=" .. Arg1..";" ..Arg2..";" ..Arg3..";" ..Arg4..";" ..Arg5..";" ..Arg6
domoticz.openURL({
url = tempUrl,
method = 'GET',
})
endIt would be nice however if the "updateCustomSensor" has the same effect on the pushdata function, is this possible to realize in one of the next dzvents version?
regards