{"id":15176998,"url":"https://github.com/trix899/esp_home","last_synced_at":"2026-02-26T23:33:15.692Z","repository":{"id":244317808,"uuid":"814887175","full_name":"trix899/esp_home","owner":"trix899","description":"ESP home configs for home assistant projects. Including hardware used and pin outs.","archived":false,"fork":false,"pushed_at":"2024-06-14T19:10:32.000Z","size":362,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T04:28:34.307Z","etag":null,"topics":["esp","esp32","esp8266","home-assistant","sensors","yaml-configuration","yaml-files"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trix899.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-13T23:27:39.000Z","updated_at":"2024-06-14T19:10:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"4c58b2d4-01db-47da-a0d0-b95196205ae2","html_url":"https://github.com/trix899/esp_home","commit_stats":null,"previous_names":["trix899/eps_home"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trix899/esp_home","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trix899%2Fesp_home","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trix899%2Fesp_home/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trix899%2Fesp_home/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trix899%2Fesp_home/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trix899","download_url":"https://codeload.github.com/trix899/esp_home/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trix899%2Fesp_home/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29876984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T22:37:10.609Z","status":"ssl_error","status_checked_at":"2026-02-26T22:37:09.019Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["esp","esp32","esp8266","home-assistant","sensors","yaml-configuration","yaml-files"],"created_at":"2024-09-27T14:01:18.786Z","updated_at":"2026-02-26T23:33:15.633Z","avatar_url":"https://github.com/trix899.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"#  Esp Home Configs And Projects \n![Wemos D1](pics/trixban.png)\n\nAll yaml files and hardware details from projects with ESP home.\n- ESPHome Ultrasonic Water Level Sensor\n- ESPhome Light Sensor\n- ESPhome Tag Reader\n\n## ⬇️ ESPHome Ultrasonic Water Level Sensor\n\n## Project Overview\nThis ESPHome configuration monitors water levels using an ultrasonic sensor connected to an ESP8266 microcontroller. \nIt includes setting up Wi-Fi, configuring a static IP, and processing sensor data.\n\n## Requirements\n- ESP8266 microcontroller board (e.g., Wemos D1 Mini)\n- Ultrasonic sensor compatible with ESPHome (HC-SR04 Ultrasonic Range Sensor Used For This project see below)\n- Access to Home Assistant (optional)\n\n  ![Wemos D1](hardware_pics/ultrasonic.jpg)\n## Hardware Connections\n- Trigger Pin to Pin 0 (D3)     (May differ if another board is used)\n- Echo Pin to Pin 2 (D4)        (May differ if another board is used)\n- 5V + Gnd Connections\n\n  ![Wemos D1](hardware_pics/wemos.png)\n\n## Setup Instructions\n\n### 1. Install ESPHome\nIf not installed, follow the [ESPHome installation guide](https://esphome.io/guides/getting_started_command_line.html).\n\n### 2. Create Configuration File\nCreate a new YAML file (e.g., `ro_tank.yaml`) and paste the following configuration:\n\n```yaml\nesphome:\n  name: #Any name here \n  friendly_name: #Any name here\n\nesp8266:\n  board: esp01_1m #check your board change as needed.\n\nlogger:\n\n# Home Assistant API (optional but recommended).\napi:\n  # Encryption key for secure communication with Home Assistant.\n  encryption:\n    key: \"your_encryption_key_here\"\n\nota:\n  # OTA password for over-the-air updates.\n  password: \"your_ota_password_here\"\n\nwifi:\n  # Replace with your Wi-Fi credentials.\n  ssid: \"your_wifi_ssid\"\n  password: \"your_wifi_password\"\n\n  manual_ip:\n    # Replace with your static IP configuration.\n    static_ip: 192.168.x.x\n    gateway: 192.168.x.x\n    subnet: 255.255.255.0\n    dns1: 8.8.8.8\n\n  ap:\n    # Fallback hotspot settings in case Wi-Fi connection fails. Can be removed if needed !\n    ssid: \"Ro-Tank Fallback Hotspot\"\n    password: \"fallback_hotspot_password\"\n\nsensor:\n  - platform: ultrasonic\n    name: Water Level Sensor\n    id: water_level_sensor\n    unit_of_measurement: '%' # Will show water level as a percentage. \n    icon: mdi:water\n    trigger_pin: 0  #Check your board  \n    echo_pin: 2\n    update_interval: 10s  \n    filters:\n      # Lambda filter to adjust sensor output\n      # Replace values 65 with the actual height of your tank or max water level in centimeters.\n      # Do not change anything else if you dont have to.\n      - lambda: return ((((x*100)-10)-(65-10))/(65-10))*-100; \n      # Filter out NaN (not-a-number) values\n      - filter_out: nan\n   ```\n## Adapting for Tank Height:\n\nTo adjust the configuration for your specific tank height:\n\n **Replace `65` with the actual height of your tank in centimeters**:\n   Update `(65 - 10)` with `(actual_height_cm - base_measurement_cm)`.\n\n   For example, if your tank's height is 100 cm and the base measurement (lowest point where the sensor starts to detect) is 10 cm:\n   ```yaml\n   lambda: return ((((x * 100) - 10) - (100 - 10)) / (100 - 10)) * -100;\n   ```\nThe `lambda` has been set with this sensor and tested for accuracy so only chnage the height values in order for it to work correctly.\n## Notes\n- Header pins on the board may need to be soldered if sensor is not found and error messages are found in the log.\n- Customize yaml as per your specific requirements and environment.\n- Contributions and improvements are welcome.\n\n## ⬇️ ESPhome Light Sensor\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrix899%2Fesp_home","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrix899%2Fesp_home","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrix899%2Fesp_home/lists"}