Skip to content

korbelar/esphome-water-level

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESPHome Water Level Monitor

ESP32-based water level monitor using an ultrasonic distance sensor and an SSD1306 OLED display, designed for Home Assistant via ESPHome.

Hardware

  • ESP32 dev board
  • HC-SR04 ultrasonic distance sensor (trigger: GPIO27, echo: GPIO26)
  • SSD1306 128x32 I2C OLED display (SDA: GPIO21, SCL: GPIO22)

Features

  • Real-time distance measurement (updated every 2s)
  • OLED display showing WiFi signal strength and current distance
  • WiFi signal strength as both dB and percentage (diagnostic)
  • OTA update support
  • Fallback WiFi AP mode

Setup

  1. Copy secrets.yaml.example to secrets.yaml and fill in your credentials:

    cp secrets.yaml.example secrets.yaml
  2. Flash to your ESP32:

    esphome run water_level_monitor.yaml

Wiring

ESP32 Pin Component
GPIO27 HC-SR04 Trigger
GPIO26 HC-SR04 Echo
GPIO21 SSD1306 SDA
GPIO22 SSD1306 SCL

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors