Controlling my wired lights with relay board

Good day all,

Im very new to HA. I have wired my Pi to a relay board and connected it to my lights. I am using a konnected alarm panel for my triggers. My wiring is as follows

My problem is that in automations
My trigger is konnected zone 1
And my action is the relay i named back yard but it won’t work when i trigger it.

From what i have read the problem is that HA thus not know the state of the light. In my case this thus not matter as the light will only be for the alarm.

Any help will be appreciated

Hello Michael, welcome to the forums. Please post the yaml configuration of your automation so we can assist you. It should be correctly formatted. See point 11 here.