Code Monkey home page Code Monkey logo

esp-now-water-leakage-sensor's Introduction

ESP-NOW water leakage sensor for ESP8266

ESP-NOW based water leakage sensor for ESP8266. Alternate firmware for Tuya/SmartLife WiFi water leakage sensors.

Features

  1. 2 possiility operating modes - NORMAL and LITE.
  2. Average response time of 1.8 second (NORMAL), 0.4 second (LITE) (depends on the MCU of the sensor).
  3. Triggered in 2 cases: contact closure, contact drying (only if the contacts were previously closed).
  4. When triggered transmits system information and sensor status (ALARM/DRY) at NORMAL mode and always ALARM at LITE mode.
  5. In setup/update mode creates an access point named "ESP-NOW Water XXXXXXXXXXXX" with password "12345678" (IP 192.168.4.1) at NORMAL mode only.
  6. Automatically adds sensor configuration to Home Assistan via MQTT discovery as a binary_sensor.
  7. Possibility firmware update over OTA (if is allows the size of the flash memory) at NORMAL mode only.
  8. Web interface for settings at NORMAL mode only.

Notes

  1. ESP-NOW mesh network based on the library ZHNetwork.
  2. For enter to setup/update mode press the button for > 2 seconds. The LED blinks fast. Access point will be available during 120 seconds before the module is powered off.

Tested on

See here.

Attention

  1. A gateway is required. For details see ESP-NOW Gateway.
  2. ESP-NOW network name must be set same of all another ESP-NOW devices in network.
  3. Upload the "data" folder (with web interface) into the filesystem before flashing for NORMAL mode only.
  4. For using this firmware on Tuya/SmartLife WiFi water leakage sensors, the WiFi module must be replaced with an ESP8266 compatible module (if necessary).
  5. Highly recommended connect an external power supply during setup/upgrade.
  6. Because this sensor is battery operated, it has an additional controller (MCU) that controls the power of the WiFi module (Module) and transmits data to it for transmission to the network. The communication is done via UART at 9600 speed. Make sure that the protocol is correct before flashing. Details here for NORMAL mode only.

esp-now-water-leakage-sensor's People

Contributors

azholtikov avatar

Stargazers

 avatar

Watchers

 avatar  avatar

esp-now-water-leakage-sensor's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.