Start with the network, then add the smart stuff
Every smart device in the house rides on your WiFi. When automation is flaky, it's almost always the network underneath it. So the first thing I look at is whether your network can hold 50-plus devices without dropping them, and I fix that before I add a single smart switch.