Automation triggered by detection of second wifi network

I have a primary network (NETWORK1) that Home assistant and everything else is on. I have a secondary network (NETWORK2) that is usually off and sometime on and I want to set up an automation that notifies me when NETWORK2 is on (and some other combination of devices is activated). I don’t want to connect to it or do anything with it, just get notified that it’s available.

Is there a way to set a trigger based on the detection of a specific network?