From f762c5b586fc8ced36e18e9c6e80df67a7050035 Mon Sep 17 00:00:00 2001 From: dtoro Date: Sun, 29 Mar 2026 22:20:23 +0200 Subject: [PATCH] fix: topic update --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index db8e877..018a4d5 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ An automatic server fan controller built on the ESP32-C3, featuring temperature- | `GND` | DHT22 GND, OLED GND, Relay GND | Relay wiring: + - **COM** → USB 5V - **NO** → Fan + (red wire) - Fan − (black wire) → GND @@ -61,9 +62,9 @@ Edit these defines in `fan_controller.ino`: | Topic | Direction | Payload | |---|---|---| -| `esp32c3/temperature` | Publish | `23.5` (°C) | -| `esp32c3/humidity` | Publish | `41` (%) | -| `esp32c3/fan/state` | Publish | `ON` / `OFF` | +| `esp32c3_fan/temperature` | Publish | `23.5` (°C) | +| `esp32c3_fan/humidity` | Publish | `41` (%) | +| `esp32c3_fan/fan/state` | Publish | `ON` / `OFF` | ## Home Assistant Setup @@ -74,20 +75,20 @@ mqtt: sensor: - name: "Room Temperature" unique_id: "esp32c3_temperature" - state_topic: "esp32c3/temperature" + state_topic: "esp32c3_fan/temperature" unit_of_measurement: "°C" device_class: temperature - name: "Room Humidity" unique_id: "esp32c3_humidity" - state_topic: "esp32c3/humidity" + state_topic: "esp32c3_fan/humidity" unit_of_measurement: "%" device_class: humidity binary_sensor: - name: "Server Fan" unique_id: "esp32c3_fan" - state_topic: "esp32c3/fan/state" + state_topic: "esp32c3_fan/fan/state" payload_on: "ON" payload_off: "OFF" device_class: running