2017-12-14 05:08:20.092 Error: dzVents: Error: There is no last update info for
with no device mentioned
2 scripts seem to cause it which are quite similar:
Code: Select all
return {
active = true,
on = {
devices = { 'HS *' }
},
execute = function(domoticz)
local message
local someone_home = 'Off'
-- first filter on name staring with HS
local homestatus = domoticz.devices().filter(function(device)
local name = device.name
return (string.sub(name,1,3) == 'HS ')
end)
-- then loop over the results
homestatus.forEach(function(sensor)
if (sensor.state == 'On') then
someone_home = 'On'
end
end)
if (someone_home == 'On') then
domoticz.devices('SomeoneIsHome').switchOn()
else
domoticz.devices('SomeoneIsHome').switchOff()
end
end
} H