Having a problem to power-off the airco, I debugged the existing code for Samsung airco's to get it working with my specific airco model.
If you want, I can do a pull request.
But first, I want to know if this is the way to go when coding for a specific Samsung airco model.
In the SamsungHeatpumpIR.h file I created a new define
#define MODEL_AQV12_MSAN 1
I changed the methods
void SamsungAQVHeatpumpIR::send(IRSender& IR, uint8_t powerModeCmd, uint8_t operatingModeCmd, uint8_t fanSpeedCmd, uint8_t temperatureCmd, uint8_t swingVCmd, uint8_t swingHCmd)
and
void SamsungAQVHeatpumpIR::sendSamsung(IRSender& IR, uint8_t powerMode, uint8_t operatingMode, uint8_t fanSpeed, uint8_t temperature, uint8_t swingV)
to include the specific bytes commands from the reverse engineering.
I saw that you already included a specific change for an only cooling airco when powering off,
so I took the poweroff code to the end of the method to be able to overwrite the settings with specific bytes for my model.
I my case the operatingMode must be the same as the operatingMode when powered on, so the switch operatingModeCmd must be always executed.
The checksumbyte is also different when doing a powering off from heat and cool, but not from auto... strange things
For the other changes, please see the attached files.
I include also a reverse engineered IR file from my remote ARH-1362
If you want more reverse engineered IR codes, please don't hesitate to request them.
Having a problem to power-off the airco, I debugged the existing code for Samsung airco's to get it working with my specific airco model. If you want, I can do a pull request. But first, I want to know if this is the way to go when coding for a specific Samsung airco model.
In the SamsungHeatpumpIR.h file I created a new define
#define MODEL_AQV12_MSAN 1
and a new class
In the SamsungHeatpumpIR.cpp file, I added the missing specific code.
I changed the methods
void SamsungAQVHeatpumpIR::send(IRSender& IR, uint8_t powerModeCmd, uint8_t operatingModeCmd, uint8_t fanSpeedCmd, uint8_t temperatureCmd, uint8_t swingVCmd, uint8_t swingHCmd)
andvoid SamsungAQVHeatpumpIR::sendSamsung(IRSender& IR, uint8_t powerMode, uint8_t operatingMode, uint8_t fanSpeed, uint8_t temperature, uint8_t swingV)
to include the specific bytes commands from the reverse engineering.I saw that you already included a specific change for an only cooling airco when powering off, so I took the poweroff code to the end of the method to be able to overwrite the settings with specific bytes for my model. I my case the operatingMode must be the same as the operatingMode when powered on, so the switch operatingModeCmd must be always executed.
The checksumbyte is also different when doing a powering off from heat and cool, but not from auto... strange things
For the other changes, please see the attached files. I include also a reverse engineered IR file from my remote ARH-1362
If you want more reverse engineered IR codes, please don't hesitate to request them.
HeatPumpIR debug aqv12msan.zip