Unless you post your automation, nobody knows exactly what you are doing right or wrong.
FAQ - Format it properly