I have a group of lights in Easy trigger. When one of the lights in the group it´s turned on, I want to turn that light off after some time. Is it possible to create a delayed event for the device 'etdeviceref' to turn off the light ?
Announcement
Collapse
No announcement yet.
Delayed event with etdeviceref
Collapse
X
-
I don't think so.
I assume what you are doing is that you have an event that triggers and sets etdeviceref, then in your event actions you have an event body with a sequence along the following lines:
(1) An action / script which relies on the etdeviceref variable to turn on a light;
(2) a delay; and
(3) and another action / script which relies on the etdeviceref variable to turn off the light
What could happen is that if another ET trigger occurs during the delay, step 3 will turn off the newly triggered device, not the original one.
-
Originally posted by jvm View PostI don't think so.
I assume what you are doing is that you have an event that triggers and sets etdeviceref, then in your event actions you have an event body with a sequence along the following lines:
(1) An action / script which relies on the etdeviceref variable to turn on a light;
(2) a delay; and
(3) and another action / script which relies on the etdeviceref variable to turn off the light
What could happen is that if another ET trigger occurs during the delay, step 3 will turn off the newly triggered device, not the original one.
From my testing, the list of device actions is generated at the moment the event tirggers, and this list it´s then executed after the delay time, so it doesn´t suffer from the problem of a change in etdeviceref. Thanks for the reply anyway.
Comment
Comment