dzVents 2.0 problem updating forecast in THB device
Posted: Saturday 01 July 2017 15:49
Trying to start developing my own scripts with this great piece of software.
At this moment I'm facing the following issue with dzVents. Running domoticz 3.8024.
I'm using the following script to update a THB virtual device by merging pieces from other 2 other THB devices.
However the forecast of the virtual device always comes up as "Unknown" (as of now the forecast in the originating device WU THB LEBL) is Sunny).
Any ideas on where the problem might be? Thanks!
At this moment I'm facing the following issue with dzVents. Running domoticz 3.8024.
I'm using the following script to update a THB virtual device by merging pieces from other 2 other THB devices.
Code: Select all
return {
active = true,
on = {
devices = {'Meteo terraza'},
},
execute = function(domoticz, device)
local t = device.temperature
local h = device.humidity
local hs = device.humidityStatus
local p = domoticz.devices('WU THB LEBL').barometer
local fcst = domoticz.devices('WU THB LEBL').forecast
domoticz.devices('Meteo terraza corregido').updateTempHumBaro(t, h, hs, p, fcst)
end
}
Any ideas on where the problem might be? Thanks!
