Page 1 of 1

Unable to set virtual devices with Wunderground data

Posted: Wednesday 28 June 2017 21:20
by WiskeHumo
Hi all,

While trying to get the outside temperature to use in some lua script, I requested an api key from Wunderground and managed to get data from Wunderground in domoticz (so far so good). Now I created some virtual devices to split the data from Wunderground (which contains Temp + Humidity + Barometer in one device called "THB") into separate values for Temp, Humidity and Barometer.

Now the problem:
Although I see the values of my "THB" device change, I don't get an event in my lua script that the "THB" device has changed.

In other words, when I run the following device triggered LUA script ...

Code: Select all

for deviceName,deviceValue in pairs(devicechanged) do
    print('Changed device = ' .. deviceName)
end
... I expect to see "Changed device = THB" in my log, but I don't.

Also when I run the following time triggered LUA script ...

Code: Select all

for deviceName,deviceValue in pairs(otherdevices) do
    print('Name:' .. deviceName .. '      Value:' .. deviceValue);
end
... I don't see the THB device in the log.

Can someone help me with this? Any suggestion is welcome.

Thanks!