Solved
Since i've migrated Miui13 to Miui 14 my wifi profile always ask me permission to enable/disable wifi, so the profile is unuseless
Every time I leave or enter the house, the profile is activated but it shows me a message on the screen requesting permissions for "tasker settings" to enable and disable wifi. This application has always had all the permissions. So I don't know what else to do except disable the profile and do it manually.