Hi and welcome!
If your smart sockets can be controlled via Google Home, then as far as I understand, openHAB should be able to switch them on/off.
Once you’ve sussed that bit out, you can then use a process similar to My Central Heating Solution using Thermal Actuators for controlling the switches based on temperature.