Hi,
I am tying to control my Midea MSR-09HRDN1-QRC8GW air conditioner using WeMos D1 Mini as IR remote.
I configure HW for IR transmitter and receiver and connect it to D1 Mini.
For the firmware part I started with ESP Home.
I try following approach as I noticed some examples on the internet:
sensor:
- platform: homeassistant
name: "Current temperature"
entity_id: sensor.living_room_temperature
id: living_room_temperature
internal: true
remote_transmitter:
pin: GPIO5
carrier_duty_percent: 50%
remote_receiver:
id: ir_receiver
pin:
number: GPIO4
inverted: true
dump: all
climate:
- platform: heatpumpir
protocol: midea
max_temperature: 28.0
min_temperature: 19.0
horizontal_default: auto
vertical_default: auto
name: "Air Condition Controller"
receiver_id: ir_receiver
sensor: living_room_temperature
However, this doesn’t work quite well.
The D1 Mini IR device is able to turn on (i.e. set cooling mode) Midea air conditioner and it is able to turn it off as well.
But it sets temperature to 28 Celsius and this can’t be controlled at all.
If I change temperature in Home Assistant the device still transfers same block of data towards AC and it is not able to change temperature.
Here is example to clarify what exactly I mean.
Here are the traces once I use my custom D1 Mini IR transmitter:
COOL MODE && Target Temperature: 24.00°C
[23:05:21][D][climate:009]: 'Air Condition Controller' - Setting
[23:05:21][D][climate:013]: Mode: COOL
[23:05:21][D][remote_transmitter:074]: Sending remote code...
[23:05:21][D][climate:381]: 'Air Condition Controller' - Sending state:
[23:05:21][D][climate:384]: Mode: COOL
[23:05:21][D][climate:389]: Fan Mode: AUTO
[23:05:21][D][climate:401]: Swing Mode: OFF
[23:05:21][D][climate:404]: Current Temperature: 23.40°C
[23:05:21][D][climate:410]: Target Temperature: 24.00°C
[23:05:21][D][remote.samsung:060]: Received Samsung: data=0xB24DBF40807F, nbits=48
Transferred data (data=0xB24DBF40807F) actually represents COOL mode with temperature set to 28 Celsius, not 24 as it should.
I know that because I check transferred data from original IR controller for AC:
IR controller set to COOL && Target Temperature: 28.00°C
[23:25:04][D][remote.samsung:060]: Received Samsung: data=0xB24DBF40807F, nbits=48
So I concluded that my D1 mini IR remote controller always uses 0xB24DBF40807F no matter which temperature I set as a target temperature in Home Assistant.
I would appreciate help very much.
Should I continue this way (using ESP Home)? Is it possible to configure this properly, did I miss something?
/Marko