Grafana and Virtual Device Stats not working?
Posted: Sunday 08 January 2017 1:21
Hello,
I'm new to the forum and also Domoticz. I need a bit of help if possible, I've managed to setup a test dummy device and i've created the following event:
commandArray = {}
local varidx = 115
if devicechanged['PowerUsage_ZW'] then
varPowerMain = otherdevices_svalues['PowerMain']
varSolarPower = otherdevices_svalues['PowerUsage_ZW']
varPowerDiff = varSolarPower + varPowerMain
print('varPowerMain : '..varPowerMain)
print('varSolarPower : '..varSolarPower)
print('varPowerDiff : '..varPowerDiff)
commandArray['UpdateDevice'] = varidx .. "|0|" .. varPowerDiff
end
return commandArray
The event is working fine, but for some reason I cannot get it to fire off a HTTP request, which in turn then fires an event to Grafana. No events appear in Grafana or in the influxdb. The HTTP event appears not to be firing for a Virtual Custom Device?
Any suggestions.
Many thanks,
I'm new to the forum and also Domoticz. I need a bit of help if possible, I've managed to setup a test dummy device and i've created the following event:
commandArray = {}
local varidx = 115
if devicechanged['PowerUsage_ZW'] then
varPowerMain = otherdevices_svalues['PowerMain']
varSolarPower = otherdevices_svalues['PowerUsage_ZW']
varPowerDiff = varSolarPower + varPowerMain
print('varPowerMain : '..varPowerMain)
print('varSolarPower : '..varSolarPower)
print('varPowerDiff : '..varPowerDiff)
commandArray['UpdateDevice'] = varidx .. "|0|" .. varPowerDiff
end
return commandArray
The event is working fine, but for some reason I cannot get it to fire off a HTTP request, which in turn then fires an event to Grafana. No events appear in Grafana or in the influxdb. The HTTP event appears not to be firing for a Virtual Custom Device?
Any suggestions.
Many thanks,