The best single thing I've done for my #smarthome is to buy a bunch of cheap wifi power sockets ("Gosund") and flash them with the Tasmota open source firmware (https://tasmota.github.io/).
This allows me to monitor power consumption and toggle the sockets remotely. No cloud, no app, no privacy nightmare. And of course neat Grafana dashboards.