I can very warmly recommend these guys for switching and power/energy monitoring of all your appliances and devices. They support all the standard open protocols, work offline and even support custom firmware and scripting. At 23€ per plug they are pretty decent for what they can do. You can often get them in 3-5x packs for ~15€ per piece from other stores.
https://www.shelly.com/de/products/shelly-plug-s-gen3
The company has plenty of other products all using the same open and hackable design.
Personally i have a couple of these connected to keyboard shortcuts on my PC to turn certain things on and off easily.
I also use on of them to log daily energy production and power throughout the day of my balcony mounted solar installation.