My automation stops after 1 minute