AfterSec(10) gives error
Posted: Monday 05 December 2022 23:05
Hi, I am getting this error when using AfterSec(10) in a dzVents scripts execute section
Error: attempt to call a nil value
The script works perfectly fine when I remove the option 'AfterSec(10)'
The device here is a coolcam siren, which I would like to silence 10 seconds later.
Tried to search for the answer in the dzVents documentation and on the forum, without luck so far.
Would appreciate if anybody can point me in the right direction.
Using:
Version: 2022.2
Build Hash: eea9db734
Compile Date: 2022-11-05 13:05:35
dzVents Version: 3.1.8
Python Version: 3.7.3 (default, Oct 31 2022, 14:04:00) [GCC 8.3.0]
Code: Select all
dz.devices('Siren Alarm').switchOff().AfterSec(10)
The script works perfectly fine when I remove the option 'AfterSec(10)'
The device here is a coolcam siren, which I would like to silence 10 seconds later.
Tried to search for the answer in the dzVents documentation and on the forum, without luck so far.
Would appreciate if anybody can point me in the right direction.
Using:
Version: 2022.2
Build Hash: eea9db734
Compile Date: 2022-11-05 13:05:35
dzVents Version: 3.1.8
Python Version: 3.7.3 (default, Oct 31 2022, 14:04:00) [GCC 8.3.0]