Code: Select all
2017-07-04 22:15:00.664 dzVents: Info: ------ Start internal script: Tapparelle:, trigger: at 22:15
2017-07-04 22:15:00.664 Error: dzVents: Error: There is no device with that name or id: *_Tapparella
2017-07-04 22:15:00.664 Error: dzVents: Error: An error occured when calling event handler Tapparelle
2017-07-04 22:15:00.664 Error: dzVents: Error: ...omoticz/scripts/dzVents/generated_scripts/Tapparelle.lua:12: attempt to index a nil valueCode: Select all
return {
active = true,
on = {
timer = {
'at 22:15'
}
},
execute = function(domoticz, dummy)
if domoticz.devices('*_Tapparella').state ~= 'Closed' then
if domoticz.devices('Sala_Tapparella').state ~= 'Closed' then
domoticz.devices('Sala_Tapparella').close()
end
if domoticz.devices('Camera_Tapparella').state ~= 'Closed' then
domoticz.devices('Camera_Tapparella').close()
end
if domoticz.devices('Bagno_Tapparella').state ~= 'Closed' then
domoticz.devices('Bagno_Tapparella').close()
end
if domoticz.devices('Stanzina_Tapparella').state ~= 'Closed' then
domoticz.devices('Stanzina_Tapparella').close()
end
if domoticz.devices('Cucina_Tapparella').state ~= 'Closed' then
domoticz.devices('Cucina_Tapparella').close()
end
end
end