Homekit temperature sensor and outlet automation

My daughter wants to shut off a heat lamp over a snake tank if the temperature inside the tank goes over a certain value. Is there a Homekit-based solution that would work? She has an AppleTV which could serve as a hub but does not have an always-on Mac that could run scripts.

I’m looking at the Switchbot temperature sensor and hygrometer along with the Hub Mini and smart outlet but it looks like it might need Homebridge to be running somewhere.

TIA