X-10 devices [0] that do this have been around for a long time. I've even seen elaborate setups that can be controlled via a landline.
[0]: https://thex10shop.com/products/x10-powerhouse-th2807-thermo...
[0]: https://thex10shop.com/products/x10-powerhouse-th2807-thermo...