Nice project. For those interested in automation like this, without extensive coding/software development knowledge required, you should look into Node RED (https://nodered.org/).
Node RED running on a Raspberry Pi, combined with a capable temp/hum sensor and a few smart plugs, can achieve...