One thing about Wi-Fi is it's not like Z-Wave or Insteon or Zigbee. While the above three provide the full stack of OSI layer 1-7.
Wi-Fi is only OSI layers 1-2, basic connectivity only. It still needs TCP/IP to handle layers 3 and 4, as well as the rest of the application stack (5-7) to make it useful. Protocols like Matter look to fill that gap with something that's standards complaint for home automation devices, but right now on Wi-Fi, or TCP/IP generally, it's individual per vendor, requiring the use of a Polyglot plugin as @dbwarner5 describes.
To complicate matters further, many devices using Wi-Fi for their connectivity only communicate to a cloud server, and do not permit you, on your local LAN, to access the device directly. Others lock down the communication to only their smartphone app via cryptography, and still others allow you to access it locally without issue.
And one thing to keep in mind as you add Wi-Fi devices, is that they have a hidden node problem that leads to your network slowing down as you add more devices, with each associated device taking about 1% of your total Wi-Fi bandwidth even when it's doing nothing - and even with multiple APs to mitigate this, there are still only three clear Wi-Fi channels in the 2.4 GHz ISM band, leading to a practical maximum of about 300 devices connected in a standard home with normal business-grade equipment (note: this can be overcome, but as with most problems it's solved by throwing money at it). Unless your Wi-Fi network is already significantly overbuilt, you'll need to budget for a large expansion.