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
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
Can someone help me with this? Any suggestion is welcome.
Thanks!