Control Heatpump via Serial
-
Hi Folks,
just trying to figure out how to get started with controlling a heatpump via a serial connection. I've found this blog entry which is my starting point. At the moment I'm unsure if I can connect the hardware serial of a pro mini to the heat pump and be able to debug it. Or would this require the use of a software serial port, or even springing for a board with more than one serial
Any pointers in the correct direction appreciated
sfozz
https://nicegear.nz/blog/hacking-a-mitsubishi-heat-pump-air-conditioner/
-
I use this setup:
https://www.domoticz.com/wiki/ESPEasy_Aircondition_Inverter_IR_controlcheck if your heatpumps protocol is supported:
https://github.com/ToniA/arduino-heatpumpir -
Hi,
So as I see it I would need to use the hardware serial for the connection to the heatpump and then create a software serial for debug messages. So something like this:
#include <SoftwareSerial.h> SoftwareSerial mySerial(10, 11); // RX, TX // Enable debug prints #define MY_DEBUG #define MY_DEBUGDEVICE mySerial #define MY_BAUD_RATE 9600So the next question is how to present the heatpump to the gateway. Would you create one child id and then define each type of sensor/metric or is there a one-to-one mapping:
#define CHILD_HVAC 0 MyMessage msgHvacStatu(CHILD_HVAC, V_STATUS); // Status: ON, OFF MyMessage msgHvacSTemp(CHILD_HVAC, V_TEMP); // Set Temp MyMessage msgHvacRTemp(CHILD_HVAC, V_TEMP); // Room Temp MyMessage msgHvacFanSp(CHILD_HVAC, V_HVAC_SPEED); // Fan Speedor
#define CHILD_HVAC_STATUS 0 #define CHILD_HVAC_STEMP 1 #define CHILD_HVAC_RTEMP 2 #define CHILD_HVAC_FANSP 3 MyMessage msgHvacStatu(CHILD_HVAC_STATUS, V_STATUS); // Status: ON, OFF MyMessage msgHvacSTemp(CHILD_HVAC_STEMP, V_TEMP); // Set Temp MyMessage msgHvacRTemp(CHILD_HVAC_RTEMP, V_TEMP); // Room Temp MyMessage msgHvacFanSp(CHILD_HVAC_FANSP, V_HVAC_SPEED); // Fan Speed
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login