geoffdavis / esphome-mitsubishiheatpump

ESPHome Climate Component for Mitsubishi Heatpumps using direct serial connection
BSD 2-Clause "Simplified" License
498 stars 143 forks source link

feat: Add callback to log raw packets #116

Closed KazWolfe closed 8 months ago

KazWolfe commented 8 months ago

Quick and dirty PR made by someone who doesn't really write C++, apologies in advance! I wrote this while trying to diagnose the problem in #71 and thought it might be useful to others.

This pull request aims to add a verbose log line for raw packet data going over the wire. This is useful for debugging and reverse engineering of the protocol and ensuring that serial communication to the heat pump actually is working.

geoffdavis commented 8 months ago

Go ahead and roll back to ESP_LOGV

Now I have to figure out how to get faulty reviews to go away.

KazWolfe commented 8 months ago

Alright, yanked the newer commit, we should be back to VERBOSE now.

geoffdavis commented 8 months ago

Merged into develop, thanks.