Automated turn ON light with checking status first

Tags: #<Tag:0x00007fc41028b578> #<Tag:0x00007fc41028b410>

Hi all,
How do I configure in Home Assistant to turn ON the light with checking the status then Home Assistant will turn ON.

Current:
I set in Home Assistant every 7:00pm to turn ON the light with Alexa inform that Light Turn ON. If the light already Turn ON before 7:00pm Home Assistant is still proceed to Turn ON the light and Alexa still inform the Light Turn ON.

Would like to do:
I would like include if the light has been turn ON earlier (turn on from physical switch) nothing to do but Alexa will inform the light has been Turn ON. Maybe like checking the status of the light first then Alexa inform the status, if the light in OFF will turn ON with Alexa inform the light ON.

Hope someone can help me.

Thanks.

Add a condition to your automation that does exactly that.