Hi guys,
I've got a macro which turns the outside lights on when a car comes down the drive. The macro starts when one inductive loop is trigged and then waits for a second loop to trigger before turning on the rest of the lights. It works well, however... Occasionally a car will trigger the first loop, but then not carry on down the drive meaning the macro waits forever for the second loop to be triggered. I'm trying to find an elegant way of achieving "wait for 2 minutes then reset the macro". I've currently got another macro which is triggered at the same time which waits for a couple of minutes and then enables and disables the macro if it is still running - this has downsides as there are a few scenarios when the original macro might still be running for a valid reason.
Any better ideas?
Peter.
I've got a macro which turns the outside lights on when a car comes down the drive. The macro starts when one inductive loop is trigged and then waits for a second loop to trigger before turning on the rest of the lights. It works well, however... Occasionally a car will trigger the first loop, but then not carry on down the drive meaning the macro waits forever for the second loop to be triggered. I'm trying to find an elegant way of achieving "wait for 2 minutes then reset the macro". I've currently got another macro which is triggered at the same time which waits for a couple of minutes and then enables and disables the macro if it is still running - this has downsides as there are a few scenarios when the original macro might still be running for a valid reason.
Any better ideas?
Peter.
Comment