Home alarm help

Hi all can anyone help me I can’t get my alarm to work when the door opens.

post the automation in a yaml code block instead of the trace in a picture.