How to send a notification to IPhone when state changes or Automation is triggered

I have a simple automation, that when I leave home all lights are turn off. I created a script with all the lights) and that script is in a automation. What I want to figure out is how do I received a notification when that automation has been triggered!!