Automation on iOS not triggering when connected to WiFi
According to https://support.apple.com/guide/shortcuts/enable-or-disable-a-personal-automation-apd602971e63/ios, an automation based on Wi Fi cannot run automatically. You will get a notification asking if you want to run the automation. You then have to press Run.