From 572878259c1b728339f286de20a8ddb0882c9dc3 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Wed, 13 Sep 2023 12:03:35 +0700 Subject: [PATCH] edit fan mode name --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index f6c5de3..efd3f90 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -609,7 +609,7 @@ void publish_ac_state() temp = "cool"; break; case 2: - temp = "fan"; + temp = "fan_only"; default: break; } @@ -653,7 +653,7 @@ void ac_state_callback(String topic, String message) { ac_set_state(1, ac_temperature, ac_fan_speed); } - else if (message.compareTo("fan") == 0) + else if (message.compareTo("fan_only") == 0) { ac_set_state(2, ac_temperature, ac_fan_speed); }