Use alexa routine as trigger in HA

I have a simple Alexa routine, when triggered I would like to do certain things.

Is there a way to send a signal to HA via Alexa routine ?
Or is there a way to check if a Alexa routine was triggered ?

Create a template switch that does nothing
Use the switch on/off as trigger
Alexa can turn switch on/off

Or you can use an input_boolean, they show up in Alexa too.