diff --git a/src/mitsubishi2mqtt/config.h b/src/mitsubishi2mqtt/config.h index b3ed0f1..9ab1282 100644 --- a/src/mitsubishi2mqtt/config.h +++ b/src/mitsubishi2mqtt/config.h @@ -16,7 +16,7 @@ //#define MY_LANGUAGE fr-FR // define your language -const PROGMEM char* m2mqtt_version = "2022.11"; +const PROGMEM char* m2mqtt_version = "2022.11.1"; //Define global variables for files #ifdef ESP32 diff --git a/src/mitsubishi2mqtt/mitsubishi2mqtt.ino b/src/mitsubishi2mqtt/mitsubishi2mqtt.ino index 644d615..026a8db 100644 --- a/src/mitsubishi2mqtt/mitsubishi2mqtt.ino +++ b/src/mitsubishi2mqtt/mitsubishi2mqtt.ino @@ -1329,10 +1329,9 @@ void hpPacketDebug(byte* packet, unsigned int length, const char* packetDirectio root[packetDirection] = message; String mqttOutput; serializeJson(root, mqttOutput); - // TODO REMOVE to get packet cpature on debug - /*if (!mqtt_client.publish(ha_debug_topic.c_str(), mqttOutput.c_str())) { + if (!mqtt_client.publish(ha_debug_topic.c_str(), mqttOutput.c_str())) { mqtt_client.publish(ha_debug_topic.c_str(), (char*)("Failed to publish to heatpump/debug topic")); - }*/ + } } } @@ -1363,7 +1362,6 @@ void mqttCallback(char* topic, byte* payload, unsigned int length) { // HA topics // Receive power topic if (strcmp(topic, ha_power_set_topic.c_str()) == 0) { - mqtt_client.publish(ha_debug_topic.c_str(), (char*)("Get Power message")); String modeUpper = message; modeUpper.toUpperCase(); if (modeUpper == "OFF") { @@ -1374,7 +1372,6 @@ void mqttCallback(char* topic, byte* payload, unsigned int length) { } else if (strcmp(topic, ha_mode_set_topic.c_str()) == 0) { - mqtt_client.publish(ha_debug_topic.c_str(), (char*)("Get Mode message")); String modeUpper = message; modeUpper.toUpperCase(); if (modeUpper == "OFF") {