ElectraSmart Integration

hi
I am looking on how to create an automation for the ElectraSmart where i can control the set temperature based on external temperature and room temperature

Looking forward to your responses

Regards
mrrcomp