Put a Zigbee probe thermometer in your fridge and freezer and let Home Assistant warn your phone when they warm up past a safe limit, whether it is load shedding, a door left open or a compressor that has quietly given up.
Load shedding has taught most South Africans to keep the fridge door shut when the power is off. The trouble is the outages you do not see coming: a long stage at night, a tripped circuit breaker, a plug knocked out behind the fridge, or a freezer in the garage that stopped cooling while you were away for the weekend. You find out when you open it and smell it, and by then a full freezer of meat is a loss.
A small Zigbee temperature sensor fixes the "nobody noticed" part. Home Assistant watches the temperature inside the fridge and the freezer and sends a loud alert to your phone when either one stays warm for too long. It is a one-evening project, with no mains wiring and nothing to drill.
What temperature is safe?
The US Food and Drug Administration (FDA) says to keep the fridge at or below 4 °C and the freezer at -18 °C, and to check with a thermometer because the dial on the fridge does not tell you the real temperature. FoodSafety.gov adds the numbers that matter in an outage: a closed fridge keeps food safe for about 4 hours without power, and a full freezer holds a safe temperature for about 48 hours (about 24 hours if it is half full and the door stays shut). Perishable food that has been at 4 °C or above for more than 2 hours should be thrown out, and frozen food can be refrozen if it still has ice crystals or is at 4 °C or below.
That gives us clear targets. The alert should reach you well before the fridge has been warm for 2 hours, and long before the freezer gets anywhere near 4 °C.
What you need
- A Zigbee coordinator already working with Home Assistant, through Zigbee2MQTT or ZHA. If you do not have one yet, start with our Zigbee2MQTT guide (https://meshnest.co.za/blog/diy-zigbee2mqtt-usb-coordinator-home-assistant).
- A probe thermometer for the freezer. This post uses the SONOFF SNZB-02LD as the example. It has an LCD unit that stays outside the freezer and a stainless steel probe on a 1.5 m cable that goes inside. According to SONOFF, the probe works from -40 °C to 115 °C, but the unit with the battery and screen is only rated from -10 °C to 60 °C. That is why the unit must stay outside: a freezer at -18 °C is below its rating. SONOFF lists the fridge as one of its intended uses, and says it works with Home Assistant through both ZHA and Zigbee2MQTT. The Zigbee2MQTT device page shows temperature, battery and a temperature calibration setting.
- A sensor for the fridge. You can use a second SNZB-02LD, or the SONOFF SNZB-02WD, which sits inside the fridge. It has an IP65 case with a breathable membrane for humid places, is rated from -20 °C to 60 °C and 0 to 100% humidity, and also measures humidity. It is supported by Zigbee2MQTT.
- The Home Assistant Companion app on your phone for the alerts.
Be careful with small indoor sensors such as the Aqara WSDCGQ11LM. They are good room sensors, but they are sold for indoor rooms, list humidity as non-condensing, and the Aqara forum has reports of the CR2032 cell giving up in the cold. Check the operating range in the manual before you put any sensor in a fridge. Do not put one in a freezer unless it is clearly rated for that temperature.

Step 1: Pair the sensors
In Zigbee2MQTT, click Permit join. In ZHA, open the Zigbee integration and choose Add device. On the SNZB-02LD, twist the battery cover off with a coin and pull out the insulation tab. Then hold the button for 5 seconds until the signal icon flashes slowly. SONOFF says pairing mode times out after 3 minutes, so if it does not join, just hold the button again.
Rename the devices to Fridge temp and Freezer temp. Home Assistant builds the entity names from these, so with Zigbee2MQTT you should get sensor.fridge_temp_temperature, sensor.freezer_temp_temperature and matching _battery sensors. Check the real names on each device page and use those in the examples below.
Step 2: Fit the probe and the sensor
- Freezer: run the thin probe cable in through the door seal, and stick it to a shelf or the side wall with the Velcro pad SONOFF supplies. Keep it in the middle of the freezer, not against the cold back wall or right next to the door. Stick the LCD unit on the outside of the door with its magnet.
- Fridge: do the same with a probe, or put the SNZB-02WD on a middle shelf. Avoid the door shelves, which the FDA notes are the warmest part of the fridge.
- Check the seal. After you close the door, look for a gap or frost building up where the cable passes. If the door does not seal properly, move the cable or use a flatter route. A leaking seal will make the freezer work harder and ice up.
Fridges and chest freezers are metal boxes, so they block radio signals. With a probe sensor, the radio sits outside, which helps a lot. If readings are patchy, put a mains-powered Zigbee device, such as a smart plug, nearby. It acts as a router and strengthens the signal. Do not plug the fridge itself into a smart plug you might switch off by accident.
Step 3: Choose your thresholds
Every time you open the door, the air inside warms up for a minute or two. That is why the automation waits before it alerts. Here are sensible starting points that you can change:
- Fridge: above 4 °C for 20 minutes. That warns you long before the 2-hour mark.
- Freezer: above -12 °C for 30 minutes. This is our own choice, not an official number. It is warm enough to ignore normal door openings and defrost cycles, but it still gives you many hours before the food starts to thaw.
Watch the history graph for a few days first. If your freezer normally runs at -20 °C and climbs to -14 °C when you unpack the shopping, move the limit a little.
Step 4: Send the alert to your phone
A normal notification is easy to miss at 2 am. The Companion app supports critical notifications, which on iPhone play a sound even when the phone is on silent or Do Not Disturb. On Android, the docs say priority: high and ttl: 0 make the alert arrive straight away. This automation uses Home Assistant's numeric state trigger with a for delay, so it fires only when the temperature has stayed above the limit:
alias: "Fridge or freezer too warm"
mode: single
triggers:
- trigger: numeric_state
entity_id: sensor.fridge_temp_temperature
above: 4
for: "00:20:00"
- trigger: numeric_state
entity_id: sensor.freezer_temp_temperature
above: -12
for: "00:30:00"
actions:
- action: notify.mobile_app_your_phone
data:
title: "{{ trigger.to_state.name }} is warming up"
message: "Now {{ trigger.to_state.state }} °C. Check the door and the power."
data:
push:
interruption-level: critical
ttl: 0
priority: high
Replace notify.mobile_app_your_phone with your own phone's notify action. Add a second notify action for anyone else who should know. An "all clear" message is also useful, so you know the freezer has recovered after the power comes back:
alias: "Freezer back to normal"
triggers:
- trigger: numeric_state
entity_id: sensor.freezer_temp_temperature
below: -15
for: "00:15:00"
conditions:
- condition: template
value_template: "{{ trigger.from_state.state | float(0) > -12 }}"
actions:
- action: notify.mobile_app_your_phone
data:
message: "Freezer is cold again: {{ trigger.to_state.state }} °C."
Step 5: Test it for real
Do not wait for load shedding to find out if it works. For the test, change the fridge delay to 1 minute. Then take the fridge probe out and hold it in your hand, or put it in a glass of tap water. The temperature on the LCD should climb within a minute. Check that Home Assistant shows the same reading, and that the alert arrives on your phone. Put the probe back, change the delay back to 20 minutes, and watch the reading drop again.
For the freezer, do the same test with the probe in a glass of water at room temperature, then put it back in the freezer. The reading in Home Assistant can lag behind the screen, because SONOFF says the sensor reports when the temperature changes by more than a set amount, and at least once an hour otherwise. That is fine for a slow thaw, but it is why the test is worth doing.
Step 6: Do not let a flat battery switch it off
A dead sensor is worse than none, because you think you are covered. Both SONOFF sensors use a CR2477 coin cell, and SONOFF warns that battery capacity drops sharply near -20 °C. That is one more reason to keep the battery outside the freezer. This automation tells you when it is time for a new cell:
alias: "Fridge sensor battery low"
triggers:
- trigger: numeric_state
entity_id:
- sensor.fridge_temp_battery
- sensor.freezer_temp_battery
below: 20
actions:
- action: notify.mobile_app_your_phone
data:
message: "{{ trigger.to_state.name }} is at {{ trigger.to_state.state }}%. Order a CR2477."
If you use Zigbee2MQTT, you can also turn on device availability, so a sensor that stops reporting shows as unavailable. Then add a dashboard card so you can see at a glance that both readings are live.
Load shedding and inverter homes
- Know when it is coming. Our EskomSePush guide (https://meshnest.co.za/blog/diy-eskomsepush-load-shedding-home-assistant) shows how to get the schedule into Home Assistant. A "keep the fridge shut" reminder before a long stage costs nothing.
- Keep Home Assistant running. The alert only works if Home Assistant, the coordinator and your internet stay up during the outage. Our UPS and NUT guide (https://meshnest.co.za/blog/diy-ups-nut-home-assistant-load-shedding) covers keeping them powered.
- Inverter on the fridge circuit? You still want this. An inverter does nothing for a door left open, a tripped plug or a failed compressor. If you followed our SolarAssistant guide (https://meshnest.co.za/blog/diy-solarassistant-inverter-battery-home-assistant), you can add the battery level to the alert message, so you know how long the fridge can keep running.
Troubleshooting
- Reading jumps every time the door opens. Move the probe away from the door and the cold air outlet, or make the for delay longer.
- Reading is off by a degree. Compare it with a fridge thermometer and use the temperature calibration setting in Zigbee2MQTT or ZHA.
- Sensor keeps going unavailable. This is usually a weak signal from inside a metal box. Add a Zigbee router nearby, and pair the sensor where it will actually live.
Sources
- FDA, Are You Storing Food Safely?: https://www.fda.gov/consumers/consumer-updates/are-you-storing-food-safely
- FoodSafety.gov, Food safety during a power outage: https://www.foodsafety.gov/food-safety-charts/food-safety-during-power-outage
- SONOFF SNZB-02LD: https://help.sonoff.tech/docs/snzb-02ld
- SONOFF SNZB-02WD: https://help.sonoff.tech/docs/snzb-02wd
- Zigbee2MQTT SNZB-02LD: https://www.zigbee2mqtt.io/devices/SNZB-02LD.html
- Zigbee2MQTT SNZB-02WD: https://www.zigbee2mqtt.io/devices/SNZB-02WD.html
- Zigbee2MQTT device availability: https://www.zigbee2mqtt.io/guide/configuration/device-availability.html
- Home Assistant ZHA: https://www.home-assistant.io/integrations/zha/
- Home Assistant triggers: https://www.home-assistant.io/docs/automation/trigger/
- Companion app critical notifications: https://companion.home-assistant.io/docs/notifications/critical-notifications/