Code: Select all
2018-09-24 06:00:00.231 Status: dzVents: Error (2.4.6): There is no device with that name or id: false
What could be going wrong?
Moderator: leecollings
Code: Select all
2018-09-24 06:00:00.231 Status: dzVents: Error (2.4.6): There is no device with that name or id: false
Code: Select all
return {
on = {
timer = { 'every 10 minutes' }
},
execute = function(dz, switch)
-- Living
if ((dz.devices('Lampen_Woon_1').state == 'Off') and (dz.devices('Beweging_Woonkamer').state == 'Off')) then
dz.devices('Lampen_Woon_1').switchOff()
end
-- Kitchen
if ((dz.devices('Lampen_Keuken_1').state == 'Off') and (dz.devices('Beweging_keuken').state == 'Off')) then
dz.devices('Lampen_Keuken_1').switchOff().afterSec(10)
end
-- Bedroom
if ((dz.devices('Lampen_Slaap_1').state == 'Off') and (dz.devices('Beweging_Slaapkamer').state == 'Off')) then
dz.devices('Lampen_Slaap_1').switchOff().afterSec(20)
end
-- Toilet
if ((dz.devices('Lampen_Toilet_2').state == 'Off') and (dz.devices('Beweging_Toilet').state == 'Off')) then
dz.devices('Lampen_Toilet_2').switchOff().afterSec(30)
end
-- Hallway One
if ((dz.devices('Lampen_Gang_1').state == 'Off') and (dz.devices('Beweging_Woonkamer').state == 'Off') and (dz.devices('Beweging_keuken').state == 'Off')) then
dz.devices('Lampen_Gang_1').switchOff().afterSec(40)
end
-- Hallway Two
if (dz.devices(('Lampen_Gang_2').state == 'Off') and (dz.devices('Beweging_Woonkamer').state == 'Off') and (dz.devices('Beweging_keuken').state == 'Off')) then
dz.devices('Lampen_Gang_2').switchOff().afterSec(50)
end
end
}
Code: Select all
if (dz.devices(('Lampen_Gang_2').state == 'Off')
Users browsing this forum: No registered users and 1 guest