Solution is straightforward, although often not plug and play - only use IoT devices that you can control, based on ESP8266 or ESP32, that can be flashed to Tasmota, ESPhome, etc and controlled with Home Assistant.
I built it, so if it breaks I know how to fix it. No chance of the cloud shutting down bricking my devices.