It is often said that a root cellar is frost-proof. That is more of a rule of thumb than a reality – for seasonal variation in the soil itself to become minimal, you need to go down several metres. At 1 metre depth, the temperature still fluctuates with the seasons, just more slowly than at the surface. In a harsh winter it can drop below 2 °C.
In my root cellar the floor is 1 m below ground level and the superstructure is insulated with 15 cm of insulation material. That is probably not deep enough and sufficiently insulated to eliminate the risk of frost.
The solution I have chosen is a frost guard controlled by Home Assistant, which switches on automatically when needed and switches off again when the risk of frost in the cellar has passed. The reason it is necessary to control it with Home Assistant at all is that a frost guard is difficult to set and test precisely. If it runs for too long at a time and too frequently, energy consumption can become quite significant over the course of a winter.
Hardware
The solution uses two Shelly devices. A Shelly H&T Gen3 measures temperature and humidity in the cellar and reports continuously to Home Assistant. A Shelly Plug S Gen3 sits in the wall socket and controls the frost guard.
The smart plug referenced in this article are Schuko/EU versions, which is the standard in Denmark and most of continental Europe. Readers outside this region should verify that they order the correct plug variant for their market.
The frost guard is a dedicated device designed specifically for this purpose. It has its own built-in thermostat, set to a level slightly above the temperatures HA controls to. It is worth noting that the thermostat on a frost guard is typically coarse and difficult to set precisely, so some trial and error should be expected to find the right level.
The Plug S Gen3 also measures power consumption, so you can monitor how much electricity the frost guard actually draws.
Humidity is not part of the frost control logic itself, but is valuable information in its own right. A well-functioning root cellar should have a relative humidity of between 90–95% so that root vegetables and greens can be stored without drying out. With the H&T sensor that data is readily available to act on.
Automations
The system is built on two automations and an input_boolean that acts as a manual override. When it is active, HA controls the frost guard. Turning it off allows manual intervention without the automation interfering.
The on-automation triggers when the H&T sensor has been reading below 2 °C for at least two minutes. The delay is intentional – brief sensor fluctuations should not trigger unnecessary heating. The automation also runs at HA startup, so the correct state is restored automatically after a power outage.
The off-automation waits to switch off until the temperature has risen to 3.5 °C. The one-and-a-half degree interval is hysteresis – without it the system would switch on and off constantly around a single threshold value. With the buffer, the frost guard keeps running until the cellar has warmed up again.


