feat: Adiciona suporte para sensor de temperatura e umidade DHT11 com integração Zigbee

This commit is contained in:
2026-01-15 23:56:47 +00:00
parent 95ebb660a2
commit fcecd9d273
9 changed files with 833 additions and 22 deletions
+4 -5
View File
@@ -9,8 +9,8 @@ extern "C" {
/* ========================= SELEÇÃO DO TIPO DE DISPOSITIVO ========================= */
/* Descomente APENAS UMA das opções abaixo para definir o tipo de dispositivo */
#define DEVICE_TYPE_RELAY /* Relé controlável (on/off light) */
// #define DEVICE_TYPE_TEMP_SENSOR /* Sensor de temperatura */
// #define DEVICE_TYPE_RELAY /* Relé controlável (on/off light) */
#define DEVICE_TYPE_TEMP_SENSOR /* Sensor de temperatura */
// #define DEVICE_TYPE_DOOR_SENSOR /* Sensor de porta/janela */
// #define DEVICE_TYPE_MOTION_SENSOR /* Sensor de movimento */
@@ -27,9 +27,8 @@ extern "C" {
#endif
#ifdef DEVICE_TYPE_TEMP_SENSOR
#define GPIO_SENSOR_I2C_SDA 6 /* I2C SDA para sensor de temperatura */
#define GPIO_SENSOR_I2C_SCL 7 /* I2C SCL para sensor de temperatura */
#define SENSOR_UPDATE_INTERVAL 30000 /* Intervalo de atualização em ms */
#define GPIO_SENSOR_DHT11 5 /* GPIO para DHT11 (DATA pin) */
#define SENSOR_UPDATE_INTERVAL 10000 /* Intervalo de atualização em ms (mín. 1s para DHT11) */
#endif
#ifdef DEVICE_TYPE_DOOR_SENSOR