gysmo38 / mitsubishi2MQTT

Mitsubishi to MQTT with ESP8266 module
GNU Lesser General Public License v2.1
396 stars 141 forks source link

Latest update doesn't log debug messages #186

Closed mayankst closed 1 year ago

mayankst commented 1 year ago

Hi, latest updated seems to have broken packetRecv debug messages. I don't see any packetRecv messages in mqtt client anymore. Also, now the sent packets are shown in parsed values and not in hex.

{ "roomTemperature": 79, "temperature": 78, "fan": "4", "vane": "AUTO", "wideVane": "SWING", "mode": "heat", "action": "heating", "compressorFrequency": 0 }

VS

{"packetSent":"fc 42 01 30 10 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 77 "}

I see following was commented in latest release.

// TODO REMOVE to get packet cpature on debug
/*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"));
}*/
gysmo38 commented 1 year ago

Thank you for creating new issue ;) I remove comment, it work again. If I found time, I would like to have to debug topics, one for packet and one for message.