After I changed my device and import the tasker's profiles from the old Samsung to the new one (Huawei), the "Wifi connected" state can't recognize the SSID any longer.
I can confirm it's related to the SSID, I've created a simple profile detecting WIFI state only, and if I don't put any name in "SSID" field, the profile get green when the wifi is connected, and the profile with SSID still gray.
And it's also strange that, some times, while a turn on the wifi, the profile turned green, and maybe one second or two, it turns to gray again.