It is usable! The plug I shared is identical to the one from the WiFi module. 4 pins having modbus a/b and 12v/gnd. The connecter goes in the heatpump and the 4 wires to your ESP.
And the plug goes into the wifi connector like this. Controlling a Fairland Pool Heatpump eliminating Tuya - #65 by Elwell
I do recommend plugging in the loose connector first and measuring the wires to find which cable is what.
