Fujitsu AC with ESPHome

Hello,

I’m trying to accomplish something new with ESPHome and my airco’s. We have 1 single unit and 1 split-unit i would like to remote control.

I’ve started building with an Wemos D1 Mini (v4), and IR sender and an IR receiver. At first it looks fine. When i press the on or off i see the red LED on the sender blinking.

But, it is not always working. Sometimes the LED blinks but the unit doesn’t do anything. After a certain time it looks like to stop responding completely.

My code:

esphome:
  name: masterbedroomairco
  platform: ESP8266
  board: d1_mini

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  manual_ip:
    static_ip: 192.168.1.*
    gateway: 192.168.1.1
    subnet: 255.255.255.0

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Master Bedroom AC"
    password: "*"

# Enable logging
logger:

api:
  password: !secret api_password

ota:
  password: !secret ota_password

captive_portal:

sensor:
  - platform: homeassistant
    name: "Current temperature"
    entity_id: sensor.verwarming_slaapkamer_temperature
    id: mbtemp
    internal: true

remote_transmitter:
  pin: 0
  id: ir_transmitter
  carrier_duty_percent: 50%

remote_receiver:
  pin:
    number: 2
    inverted: True
    mode:
      input: True
      pullup: True
  id: ir_receiver
  tolerance: 55%

climate:
  - platform: fujitsu_general
    sensor: mbtemp
    name: "Master Bedroom AC"
    transmitter_id: ir_transmitter
    receiver_id: ir_receiver

Board: