I used a $50 Raspberry Pi 5 to automate my whole home network with Pi-hole, Unbound, WireGuard, and monitoring tools.
There are lots of switches that you can use with your smarthome. Some might not be compatible with the wiring in your house, ...