From a18d4366acda1bf9222fac9c8339db425f2b358e Mon Sep 17 00:00:00 2001 From: Alexey Zholtikov Date: Sat, 7 Jan 2023 10:20:33 +0300 Subject: [PATCH] Minor changes --- README.md | 2 +- doc/README.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3d90fa3..ce03a42 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ESP-NOW based window/door sensor for ESP8266. Alternate firmware for Tuya/SmartL ## Features -1. When triggered transmits system information, battery status and sensor status. +1. When triggered transmits system information, battery status (HIGH/MID/LOW) and sensor status (OPEN/CLOSED). 2. Average response time of 1 second (depends on the MCU of the sensor). 3. In setup/update mode creates an access point named "ESP-NOW Window XXXXXXXXXXXX" with password "12345678" (IP 192.168.4.1). 4. Automatically adds sensor and battery configuration to Home Assistan via MQTT discovery as a binary_sensors (2 different binary_sensor). diff --git a/doc/README.md b/doc/README.md index 0d37a72..6f82a44 100644 --- a/doc/README.md +++ b/doc/README.md @@ -12,9 +12,9 @@ Communication protocol used in the firmware (only necessary "cuts" from the orig MCU returns 55 AA 00 01 00 ............ (MCU system information) Module sends 55 AA 00 02 00 01 04 06 (Network connection established) MCU returns 55 AA 00 02 00 00 01 (Confirmation message) - The MCU sends 55 AA 00 08 00 0C 00 01 01 01 01 01 03 04 00 01 02 23 (Battery status. 02 23 - high, 01 22 - medium, 00 21 - low) + MCU sends 55 AA 00 08 00 0C 00 01 01 01 01 01 03 04 00 01 02 23 (Battery status. 02 23 - high, 01 22 - medium, 00 21 - low) Module returns 55 AA 00 08 00 01 00 08 (Confirmation message) - The MCU sends 55 AA 00 08 00 0C 00 02 02 02 02 02 01 01 01 00 22 (Sensor position. 01 23 - open, 00 22 - closed) + MCU sends 55 AA 00 08 00 0C 00 02 02 02 02 02 01 01 01 00 22 (Sensor position. 01 23 - open, 00 22 - closed) Module returns 55 AA 00 08 00 01 00 08 (Confirmation message) Module power off @@ -25,7 +25,7 @@ Communication protocol used in the firmware (only necessary "cuts" from the orig MCU returns 55 AA 00 01 00 00 ............ (MCU system information) Module sends 55 AA 00 02 00 01 04 06 (Network connection established) MCU returns 55 AA 00 02 00 00 01 (Confirmation message) - The MCU sends 55 AA 00 08 00 0C 00 01 01 01 01 01 03 04 00 01 02 23 (Battery status. 02 23 - high, 01 22 - medium, 00 21 - low) + MCU sends 55 AA 00 08 00 0C 00 01 01 01 01 01 03 04 00 01 02 23 (Battery status. 02 23 - high, 01 22 - medium, 00 21 - low) Module returns 55 AA 00 08 00 01 00 08 (Confirmation message) Module power off @@ -36,7 +36,7 @@ Communication protocol used in the firmware (only necessary "cuts" from the orig MCU returns 55 AA 00 01 00 00 ............ (MCU system information) Module sends 55 AA 00 02 00 01 04 06 (Network connection established) MCU returns 55 AA 00 02 00 00 01 (Confirmation message) - The MCU sends 55 AA 00 03 00 00 02 (Message for switching to setting mode) + MCU sends 55 AA 00 03 00 00 02 (Message for switching to setting mode) Module returns 55 AA 00 03 00 00 02 (Confirmation message) Update mode has started. Will be available during 120 seconds until the module is powered off.