Page 1 of 1
[SOLVED] Error: There is no device with that name or id: false
Posted: Monday 24 September 2018 6:58
by stewdyne
I regulary get the following error:
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
Normaly a device name would be wrong. But I have no device called false in my scripts. I searched all my active scripts (no results when looking for 'false').
What could be going wrong?
Re: Error: There is no device with that name or id: false
Posted: Monday 24 September 2018 7:37
by waaren
Can you please turn logging level for dzVents to "Errors + minimal execution info + generic info" on the Settings -> Other tab and at the bottom -> dzVents) ?
If that does not identify where this error occurs then next step is to enable debug log in every script that starts on a time event ( as your error is likely coming from a script that starts at 6:00 )
Re: Error: There is no device with that name or id: false
Posted: Monday 24 September 2018 8:07
by stewdyne
Ah! I have a clue... This error occurs every 10 minutes. I have 1 script that executes every 10 minutes. Its the following script:
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
}
All the device names are correct in there...
Edit: work with Idx numbers and see if that solves the error?
Re: [SOLVED] Error: There is no device with that name or id: false
Posted: Tuesday 25 September 2018 13:46
by stewdyne
I've found the culprit.
Code: Select all
if (dz.devices(('Lampen_Gang_2').state == 'Off')
Double (( after devices gave the error.