Using an ESP32, IR receiver and transmitter to control Fujitsu heatpump from home assistant

Hello! just got into ESP32 and I’m going slightly mad trying to figure this out. I have a Fujitsu heatpump in a rental that I can’t open up and would like to control it using an ESP32, IR receiver and transmitter through home assistant. Is this possible?

I know the arduino IR library exists, including the IR Remote Climate on ESPhome, but I’m not sure how it works with home assistant, including how to wire it and which diodes to get.

Hope this makes sense and I can find a solution. I really don’t want to spend that much on it, and would rather just use LED’s and resitors with the ESP32 I already have instead of getting a $30 IR device.

Thanks!

For the wiring you can’t use a IR led on the gpio of ESP, it won’t work ! You’ll need either an extra board like that https://www.aliexpress.com/item/32861772061.html?spm=a2g0o.order_list.order_list_main.31.21ef1802YxEu14 or an all integrated one (ESP + IR circuitry) like that: https://www.aliexpress.com/item/4001009926262.html?spm=a2g0o.order_list.order_list_main.36.21ef1802YxEu14
For ESPHome once flashed with proper code and paired with HA you’ll get straight a thermostat control for your heatpump :wink:

Don’t buy those boards, hey have weak diodes and will work only in close proximity. You can absolutely hook up an IR LED to an ESP32 board: Home · crankyoldgit/IRremoteESP8266 Wiki · GitHub

This is what I did: