This commit is contained in:
2024-07-05 09:10:53 +03:00
parent cebee7859e
commit dd255e6a29
6 changed files with 39 additions and 12 deletions

View File

@ -10,11 +10,12 @@ ESP-NOW based sensor for ESP32 ESP-IDF and ESP8266 RTOS SDK.
## Features
1. Supported 1-wire sensors:
1. DS18B20
2. DHT11/DHT22/AM2302/AM2320
1. [DS18B20](https://github.com/aZholtikov/zh_ds18b20)
2. [DHT11/DHT22/AM2302/AM2320](https://github.com/aZholtikov/zh_dht)
2. Supported I2C sensors:
1. AM2320
2. BH1750
1. [AM2320](https://github.com/aZholtikov/zh_dht)
2. [BH1750](https://github.com/aZholtikov/zh_bh1750)
3. [AHT20/AHT21](https://github.com/aZholtikov/zh_aht)
3. Optional support sensor power management (for 1-wire sensors only).
4. Automatically adds sensor configuration to Home Assistan via MQTT discovery as a sensor.
5. Update firmware from HTTPS server via ESP-NOW.
@ -33,7 +34,7 @@ ESP-NOW based sensor for ESP32 ESP-IDF and ESP8266 RTOS SDK.
MQTT configuration message should filled according to the template "X1,X2,X3,X4,X5,X6". Where:
1. X1 - Sensor type. 1 for DS18B20, 8 for DHT, 9 for BH1750.
1. X1 - Sensor type. 1 for DS18B20, 2 for AHT, 8 for DHT, 9 for BH1750.
2. X2 - Sensor GPIO number 1 (main pin for 1-wire sensors, SDA pin for I2C sensors). 0 - 48 (according to the module used), 255 if not used.
3. X3 - Sensor GPIO number 2 (SCL pin for I2C sensors). 0 - 48 (according to the module used), 255 if not used.
4. X4 - Power GPIO number (if using sensor power control). 0 - 48 (according to the module used), 255 if not used.