Thanks a lot for your prompt answer!
It seems to me, that I understood the reason. I will try to describe the case.
Actuator1 controls light. Event is scheduled with Cayenne, it turns on and off every day.
Actuator2 turns on the relay for 5 seconds, but only in case when light is on. I made it with Cayenne_in function, where I check if the light is on. Trigger should run Actuator2.
t.pulse(Relay, 5000, LOW); }
After 5 seconds Relay turns off and virtual pin returns to LOW. Actually, this is the problem. Because trigger runs once and after virtualWrite lo LOW the trigger doesn’t work anymore.
I hope, I explain the situation good enough.
Thanks in advance for your help and time!