Put an ESP32[0] in the space heater. Detect temperature, humidity, barometric pressure. Detect human presents, identify if it is human versus dog. Provide Zigbee communication to Home Assistant. Send alert if dangerously excessive electricity is used, and shut down power to device. Check external weather to make sure water pipes do not freeze when away, and keep heat sufficiently high to prevent freezing but optimize for lowest power usage. Check every 15 seconds. Write automation that knows when away, on vacation, or price of electricity is too high turning it off, on, or throttling to reduce consumption. Reduce grid usage, by heating during best solar panel power generation.
And, then you just began. This is how Home Assistant used. :)