We have always used surge protecting strips and UPSes on our electronics, but as we built out our smart home we started having problems with the smart switches fritzing out. We installed a whole house surge protector in the main electrical meter. We haven’t had a fritz since.
We have an Intermatic IG1240RC3 but there are others available for under $100. In addition to the device, you’ll need two dedicated circuit breakers that match your breaker panel. Although we could have installed it ourselves, we do not recommend you try unless you really really know what you’re doing. We had an electrician install ours, it took less than 1/2 hour.
For what we spent on our smart home, like power strips, smart washing machines, LED bulbs and smart wall switches (and the time programming them) we have probably paid for this thing 20 or 30 times over.