Unable to set virtual devices with Wunderground data

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
WiskeHumo
Posts: 1
Joined: Wednesday 28 June 2017 20:49
Target OS: NAS (Synology & others)
Domoticz version: 3.8005
Location: Netherlands
Contact:

Unable to set virtual devices with Wunderground data

Post 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!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest