Automate light based on wifi connection

Hello,

I would like to turn on a light whenever my phone connects to a specific wifi network.
My workshop is located on a basement level and has its specific wifi network.
I would like to light on the workshop as soon as my phone connects to that particular wifi network.
Hope it’s not that complicated.
Thank you for your reply.

Joe