Herschell heater with Home Assistant

I have a Herschell heater that after a power cut reverts to maximum temperature +37deg! I have been supplied some code that will prevent the heater from restarting after a power cut.

What would I need in addition to the Home Assitant device for this to work? Some sort of connected plug maybe?

Total beginener to this device, sorry.