You don’t have to change the SSID if you install a new router- just assign your current SSID to any new router. The clients won’t know any difference.
This works, and I have a few in my house, but they can be a pain in the arse installing them. Mostly from making it fit inside the switch box. (Sonoff makes a micro version of the Sonoff Switch which is even smaller than the Shelly). For someone like me who is comfortable working with line-power switches and outlets, (I was an electrician in a former life) installing a smart relay (Shelly, Sonoff) is pretty easy. But I like smart switches (and dumb bulbs). I can change a mechanical switch for a smart switch in 5 minutes. The Shelly would take a bit longer.
You never need a proprietary hub with Home Assistant and a dongle for the protocol. I have one for Z-Wave and one for Zigbee. They are both a few years old and no longer available, so you will have to research what’s available today. You don’t need them unless you want to install devices using their protocol.
With WiFi switches, you have more options. I am an early adopter and started with WiFi relays (because they were really cheap). To integrate them into my network I had two choices. 1) connect them through the manufacturers cloud, or 2) Flash the ESP processor inside with ESPHome. Since many manufacturers are moving to a cheaper processor, option 2 is becoming less optimal. For Sonoff devices, there is a custom component called SonoffLan. You still need their proprietary app to set the WiFi credentials, but after that, everything is local. I haven’t added any other WiFi new devices.
My preference now is Zigbee or Z-Wave. Just pair the device to Home Assistant, and you’re done.
FORGET connecting any smart switch directly to Alexa. This always requires you to use their proprietary cloud and could restrict your integration with Home Assistant. When you integrate any device to Home Assistant, it is known internally as an entity. (Or a group of entities). You can do practically anything in home assistant with that entity, including automations and control by Alexa. For example, when I tell Alexa to “turn on theater”, an automation in Home Assistant turns on my TV, tunes the cable STB to our favorite channel, turns on my family room lights at 25% and turns off other downstairs lights. You will never accomplish this kind of automation using proprietary cloud software. The main limitation to Home Assistant is your own imagination.
Matter.
Disclaimer- I have not installed any Matter devices.
(Yet)
I have mixed feelings about Matter. On paper it sounds nice: “Matter aims to improve interoperability, security, and reliability among smart home devices.” Home Assistant developers are adding Matter integration into Home Assistant. As such, it is still new to Home Assistant.
I am not convinced because the goals of Matter sound too good to be true. Particularly in the concept of interoperability. I would be willing to bet that every manufacturer who are working on integrating Matter to their products are also looking for opportunities to lock customers to their product line. Depending on the integration into Home Assistant this may well be mute.
Summary:
“Compatible with Alexa” is meaningless. This means that their proprietary app is compatible with Alexa. Not the device.
Matter is new. If you are a first adopter, then go for it. But don’t expect a lot of assistance from forum users.
BTW- Have you seen this list of Home Assistant integrations? And these are just the official (supported) integrations. There’s more Custom Integrations that are also available from individual contributors.
At any rate, using Home Assistant- you are not locked into any protocol, platform or hardware.
Hope this helps.