Panasonic A/C IR codes capture not working as expected

Hi has anyone got a Panasonic A/C remote working all i’m getting from my remote is " Received Panasonic: address=0x4004, command=0x07200000" on every button while trying to capture codes.
I have tried Raw capture and transmit but not working.
I have got a Samsung TV working and some IR LED’s working.

esphome:
  name: master_bedroom_sensor
  platform: ESP32
  board: esp-wrover-kit

wifi:
  ssid: "####"
  password: "####"
  power_save_mode: none 
  manual_ip:
#    # Set this to the IP of the ESP
    static_ip: ####
#    # Set this to the IP address of the router. Often ends with .1
    gateway: ####
#    # The subnet of the network. 255.255.255.0 works for most home networks.
    subnet: ####
    dns1: ####

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: "####"

ota:
  password: "####"
  
esp32_ble_beacon:
  type: iBeacon
  uuid: '####'  
  
web_server:
  port: 80 
text_sensor:
  - platform: wifi_info
    ip_address:
      name: "Master Bedroom Sensor IP address"
    ssid:
      name: "Master Bedroom Sensor SSID"
  - platform: version
    name: "Master Bedroom Sensor ESPHome Version"
    
remote_receiver:
  pin: 
    number: 35
    inverted: True
    mode: INPUT_PULLUP
  dump: all
 
  
remote_transmitter:
  pin: 32
  carrier_duty_percent: 50%     
    
switch:
  - platform: restart
    name: "Master Bedroom Sensor Restart"

  - platform: shutdown
    name: "Master Bedroom Sensor Shutdown" 

  - platform: template
    name: "LED-ON"
    turn_on_action:
      - remote_transmitter.transmit_nec:
            address: 0x00F7
            command: 0xC03F
            
  - platform: template
    name: "Samsung TV Power"
    turn_on_action:
      - remote_transmitter.transmit_samsung:
           data: 0xE0E040BF
        

binary_sensor:
  - platform: status
    name: "Master Bedroom Sensor Status"   

  - platform: gpio
    pin: 34
    name: "Master Bedroom Motion"
    device_class: motion
    
  - platform: gpio
    pin: 33
    name: "Sound level"
    filters:
      - delayed_off: 1s  
    
sensor:
  - platform: wifi_signal
    name: "Master Bedroom Sensor WiFi Signal"
    update_interval: 60s 
  - platform: bmp085
    temperature:
      name: "Master Bedroom Temperature"
    pressure:
      name: "Master Bedroom Pressure"
    update_interval: 45s  
  - platform: uptime
    name: Master Bedroom Uptime 
    
# BELOW WILL READ OUT THE ANALOG SIGNAL
# sensor:
#  - platform: adc
#    pin: 33
#    name: "Sound level"
#    update_interval: 1s
#    attenuation: 11db
#    filters:
#      - multiply: 6

i2c:
  sda: 21
  scl: 22
  scan: True
  id: bus_a 

It’s not gonna work. common remote like tv etc are very different than ac remotes.

You might be able to capture a long raw code and re send it though.

Best will be adding support for that in a climate device like the coolix or tcl112.

Please fill in a feature request at github.

It is unlikely that there is anything wrong with your hardware or software configuration as you have the TV codes working.

There are difficulties learning AC IR codes. They are not at all like your TV remote.

The fact that all data is sent for all variables makes it difficult to learn AC codes. So for example pressing the “turn on” button with the temperature set to 20°C will send a different code then when you press the “turn on” button with the temperature set to 22°C. So you are not going to be able to capture individual button codes with the standard ESPhome library. Not without a lot of Lambda work anyway.

Also some AC units have odd IR carrier frequencies and some have long gaps in the middle of the code (that falsely ends the capture).

Have a read of this for a better explanation: https://www.instructables.com/id/Reverse-engineering-of-an-Air-Conditioning-control/

The way I worked around not being able to record individual buttons (with a Global Cache IP2IR bridge) was to record some pre-set modes, e.g.

  1. Off: Off, Heat mode, Fan Auto, Temp 22°C
  2. Powerful Heat: On, Heat mode, Fan High, Temp 22°C
  3. Normal Heat: On, Heat mode, Fan Auto, Temp 21°C
  4. Silent Heat: On, Heat mode, Fan low, Temp 19°C
  5. Powerful Cool: On, Cool mode, Fan High, Temp 18°C
  6. Normal Cool: On, Cool mode, Fan Auto, Temp 21°C
  7. Silent Cool: On, Cool mode, Fan low, Temp 21°C

Even capturing these codes with the IP2IR was difficult and required a trick outside the normal Global Cache learning mode. And not only that - it only worked for one of my two AC units. The other one I was fortunate enough to find a different solution for that actually allowed JSON control of individual functions.

There are better alternatives for AC control than ESPhome (and Global Cache), for example https://sensibo.com/ which has a home assistant integration though it does rely on cloud connectivity.

OK thought that might be the case I will try hacking and cheap universal remote and get the ESP32 to switch the buttons