Help turn on/off light with automation

This Blueprint will probably be a solution for what you are looking for:

2 Likes