Trigger automation on WOL

Hi, I use the Wake on Lan switch to start and shutdown my NAS, works nice. I created and automation that send an message if Switch goes to ON so the NAS is available. But now I am looking for a solution to trigger an automation so send a message as soon as someone starts the NAS.

I can not trigger the automation on switch going to on because that only happens after Wake on lan sees the device online. Maybe there is another easy solution.

If not I would need to create an extra switch to handle the message and send the wake on switch to on.