Read the automations documentation and give it a go. If you get stuck with a specific issue then ask a specific question.
Like this…
Pete.