20 ESP32 projects for smart home and power outages

Tested ESP32 projects with wiring, code and parts: mains voltage monitor, LiFePO4 monitor, boiler thermostat, leak sensor, CO2 monitor and more.

Mains voltage monitor (ZMPT101B)Measures the true RMS voltage of the 220–230 V mains with an isolated transformer sensor and shows it on a…Level: IntermediateLiFePO4 / lead-acid battery monitorReads the battery bank voltage through a divider, estimates charge and serves a web dashboard. Works for 12 V and…Level: IntermediateSmart load manager for inverter / power stationSwitches a heavy load (boiler, heater) only when mains is present or the battery is healthy, with hysteresis and a…Level: AdvancedBoiler thermostat with web controlKeeps the room temperature using a DS18B20 and a relay wired to the boiler thermostat input. Setpoint is stored and…Level: IntermediateBattery water-leak sensor with Telegram alertSleeps in deep sleep, wakes on water contact and sends a Telegram message. Also sends a heartbeat every 12 hours.Level: BeginnerTemperature, humidity and pressure stationBME280 plus OLED with a local web page and JSON API. A clean base for any climate monitoring.Level: BeginnerWireless door / window sensor (MQTT)A reed switch wakes the ESP32 from deep sleep on every open/close and publishes the state to MQTT for Home…Level: IntermediateSmart watering timer with soil sensorWaters on schedule only when the soil is dry, with a hard maximum run time. Time comes from NTP.Level: IntermediateCO2 monitor (MH-Z19B)Shows CO2 in ppm with a traffic-light status on a web page. Great for ventilation control.Level: IntermediateAir quality monitor (PMS5003 PM2.5)Reads PM1.0 / PM2.5 / PM10 particles and classifies air quality. Useful during smoke and dust seasons.Level: IntermediateGas / smoke detector with buzzer and TelegramAn MQ-2 sensor, a local buzzer and Telegram alerts with cooldown. A low-cost early-warning add-on.Level: IntermediateMQTT sensor node with Home Assistant auto-discoveryA BME280 node that publishes to MQTT and appears in Home Assistant automatically, without YAML.Level: IntermediateBLE temperature beacon (ESP32-C3)Broadcasts DS18B20 temperature through the standard Environmental Sensing service, readable from any phone app.Level: AdvancedLocal web relay controlControl a relay from a browser or phone, with a physical button and a serial console. No cloud.Level: BeginnerPower outage and “light is back” notifierAn ESP32 on a mains charger sends a Telegram message when power returns and keeps a heartbeat that alerts you…Level: IntermediateWater tank level sensor (ultrasonic)A JSN-SR04T waterproof sensor measures the distance to the water surface, converts it to percent and serves it on the…Level: IntermediateDC power monitor (INA219)Measures voltage, current and power of a 12–24 V line, ideal for a solar panel, power station or LED strip.…Level: BeginnerFreezer temperature alarmWarns you on Telegram when the freezer warms up, for example during a blackout. Sends a recovery message too.Level: BeginnerOLED clock with temperature and humidityShows time from NTP with European/Kyiv time zone and DHT22 readings on a compact OLED. Powered from USB.Level: IntermediateMains energy meter (PZEM-004T v3)Reads voltage, current, power, energy, frequency and power factor of a mains circuit and serves the data on a web…Level: IntermediateLocal smart home: ESP32 + Raspberry Pi (Home Assistant + MQTT)A complete offline stack: Raspberry Pi 4/5 runs Home Assistant and Mosquitto, ESP32 nodes report over MQTT. No cloud, no…Level: IntermediateOffline energy monitoring: ESP32 + Orange Pi + GrafanaESP32 nodes measure the battery bank, solar and mains; an Orange Pi stores everything in InfluxDB and shows Grafana dashboards…Level: AdvancedBlackout load control: mini-PC + Zigbee + ESP32A mini-PC with Home Assistant, a Zigbee USB stick and an ESP32 battery sensor switch heavy appliances off when the…Level: AdvancedJK BMS battery monitor over Bluetooth (ESPHome)Reads cell voltages, current, power, state of charge and temperatures from a JK BMS over BLE and shows them in…Level: AdvancedHybrid inverter monitor over RS485 Modbus (ESPHome)A Modbus RTU template that reads battery, grid and load data from a hybrid inverter. You fill in the registers…Level: AdvancedGenerator remote start, runtime counter and CO warningSends a start signal to a generator remote-start input, detects running by current, counts engine hours and warns about carbon…Level: AdvancedCarbon monoxide watcher with buzzer and Telegram (hobby)An MQ-7 reads relative CO level, a buzzer sounds and Telegram is notified when it rises above the clean-air baseline.Level: IntermediateRouter and Starlink watchdog with automatic rebootPings the internet; after two minutes of no answer it cuts the router DC power for 10 seconds and reports…Level: BeginnerSolid-fuel boiler controller: fan, pump and overheat guardHolds the water temperature with the blower, runs the pump above a threshold and cuts the blower on overheat or…Level: AdvancedWater pump dry-run and pressure guardActs as a pressure switch with dry-run, burst pipe and maximum run-time protection and sends alerts to Telegram.Level: AdvancedWater outage notifier with TelegramA pressure sensor on the inlet tells you when water is cut off and when it returns, with the duration…Level: IntermediateWater heater scheduler for the night tariffHeats only in the night tariff window or on demand, never above a safe limit, with a daytime top-up and…Level: AdvancedBattery cold-chain logger with displayLogs min/max temperature every 5 minutes in deep sleep, shows it on a small OLED and sends alerts through Telegram.Level: IntermediatePower-status lamp (green / red / amber)An LED ring shows the power state from a small JSON source: green on, red off, amber for a scheduled…Level: BeginnerBalcony solar monitor with PZEM (ESPHome)Reads power, voltage, frequency and energy of a plug-in solar kit and calculates the daily yield in Home Assistant.Level: IntermediateSmart meter reader for the P1 port (DSMR)Reads total import/export energy and the current power from the P1 port and publishes them as JSON.Level: IntermediateBeehive scale and hive temperature (MQTT)Weighs the hive with four load cells, measures the temperature and publishes to MQTT every 15 minutes, then sleeps.Level: IntermediateFrost alert for orchard and greenhouse (Telegram)A battery sensor wakes every 10 minutes, and sends a warning near freezing, an alert at 0 °C and a…Level: BeginnerElectric floor heating controllerHolds the room temperature with a solid-state relay while limiting the floor temperature, with a web set point.Level: AdvancedBattery voltage through a resistor divider (deep sleep)Measures a 12-15 V battery with a divider and an ESP32-C3 ADC, and warns in Telegram when it gets low.Level: BeginnerPower status panel with INA219 and OLEDShows voltage, current, power, energy and min/max voltage on an OLED, with a button to switch pages.Level: Intermediate

Comments

No comments yet. Share your experience or ask a question.

Comments are moderated.