esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 34 forks source link

BRC4M150W remote not working as daikin_brc receiver #5902

Open shamasis opened 3 months ago

shamasis commented 3 months ago

The problem

Hello amazing people 🙂

I have a Cassette AC model “FDMF125…” with a remote “BRC4m150W”. By setting the climate platform to daikin_brc, I was able to get the ESP to control the AC. However using the remote (BRC4m150W) the state changes were not reflected back in HA.

I can report that the hardware setup works. I tested that by replacing daikin_brc with simple daikin and used it on one of my other ACs.

If I put dump: all on the receiver, I do see it sending data. But, nothing happens on HA.

[20:35:54][I][remote.jvc:049]: Received JVC: data=0x885B
[20:35:54][I][remote.lg:054]: Received LG: data=0x885BE812, nbits=32
[20:35:54][I][remote.pronto:234]: Received Pronto: data=
[20:35:54][I][remote.pronto:236]: 0000 006D 003A 0000 00C1 0052 000F 0044 000E 001B 000E 001B 000E 001B 000E 0045 000E 001B 000E 001B 000E 001B 000E 001B 000E 0045 000E 001B 000E 0045 000E 0045 000E 001B 000E 0045 000E 0045 000E 0045 000E 0045 000E 0045 000E 001B 
[20:35:54][I][remote.pronto:236]: 000E 0045 000E 001B 000E 001B 000E 001B 000E 001B 000E 001B 000E 001B 000E 0045 000E 001B 000E 001B 000E 0044 000E 001B 000E 001B 000E 001B 000E 0045 000E 001B 000E 001B 000E 001B 000E 001B 000E 001B 000E 001B 000E 001B 000E 001B 
[20:35:54][I][remote.pronto:236]: 000E 001B 000E 001B 000E 001B 000E 001B 000E 001B 000E 001B 000E 0045 000E 0045 000E 0045 000E 001B 000E 001B 000E 0045 000E 001B 000E 03C2 06C3
[20:35:54][I][remote.samsung:061]: Received Samsung: data=0x885BE812200072, nbits=56
[20:35:54][I][remote.panasonic:070]: Received Panasonic: address=0xFFFF, command=0xFFFFFFFF
[20:35:54][I][remote.aeha:099]: Received AEHA: address=0xFFFF, data=[0xFF,0xFF,0xFF,0xFF,0xFF]
[20:35:54][I][remote.jvc:049]: Received JVC: data=0x885B
[20:35:54][I][remote.lg:054]: Received LG: data=0x8D5BE95B, nbits=32
[20:35:54][I][remote.pronto:234]: Received Pronto: data=
[20:35:54][I][remote.pronto:236]: 0000 006D 0092 0000 00C1 0052 000D 0045 000E 001C 000E 001C 000E 001C 000E 0045 000E 001D 000D 001C 000D 001D 000D 001C 000D 0045 000E 001C 000E 0045 000E 0045 000D 001C 000D 0046 000D 0045 000D 0045 000D 0045 000D 0045 000D 001C 
[20:35:54][I][remote.pronto:236]: 000D 0046 000D 001C 000E 001C 000D 001D 000D 001C 000D 001D 000D 001C 000E 0045 000D 001D 000C 001C 000D 0045 000D 001D 000D 001D 000D 001D 000D 001D 000D 001D 000D 001D 000D 001E 000C 001D 000D 001E 000C 0046 000D 0047 000C 001E 
[20:35:54][I][remote.pronto:236]: 000C 001E 000C 0047 000C 0047 000C 0047 000C 001D 000D 001D 000D 001E 000C 001E 000C 001E 000C 001D 000D 001D 000D 001D 000D 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 0047 000C 001E 000C 001E 000C 001E 000C 001D 
[20:35:54][I][remote.pronto:236]: 000D 001E 000C 001E 000C 001D 000D 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 0047 000C 001E 000C 001E 000C 0047 
[20:35:54][I][remote.pronto:236]: 000C 0047 000C 0047 000C 001E 000C 0047 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 0047 000C 001E 000C 001E 
[20:35:54][I][remote.pronto:236]: 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 
[20:35:54][I][remote.pronto:236]: 000C 001E 000C 001E 000C 001E 000C 0047 000C 001E 000C 0047 000C 0047 000C 001E 000C 001E 000C 03C2 06C3
[20:35:54][I][remote.samsung:061]: Received Samsung: data=0x885BE81200CE0004, nbits=64
[20:35:54][I][remote.panasonic:070]: Received Panasonic: address=0xFFFF, command=0xFFFFFFFF
[20:35:54][I][remote.aeha:099]: Received AEHA: address=0xFFFF, data=[0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF]

I do not have a test setup of HA+ESPHome and neither am I familiar with the codebase yet. I was still trying to trace the logic and came up till https://github.com/esphome/esphome/blob/1a242f94db4923b099496497ba6e98b5f72e745d/esphome/components/daikin_brc/daikin_brc.cpp#L234

Is there any way I can send some data of the remote to help?

Which version of ESPHome has the issue?

2024.5.5

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2024.6.2

What platform are you using?

ESP32

Board

esp32dev

Component causing the issue

daikin_brc

Example YAML snippet

substitutions:
  name: climate-control-esph-1337
  friendly_name: Climate Control ESPH-1337
  pin_status_led: GPIO2
  pin_transmitter: GPIO4
  pin_receiver: GPIO12
  pin_dht: GPIO14

esphome:
  name: ${name}
  friendly_name: ${friendly_name}
  name_add_mac_suffix: false
  project:
    name: esphome.web
    version: '1.0'

esp32:
  board: esp32dev
  framework:
    type: arduino

logger: # Enable logging
api: # Enable Home Assistant API
ota: # Allow Over-The-Air updates
improv_serial: # Allow provisioning Wi-Fi via serial
wifi: # Enable WiFi

# -----------------------------------------------------------------

light:
  - platform: status_led
    id: builtin_led
    # name: "Status Light"
    pin: ${pin_status_led}

remote_transmitter:
  id: heatpump_remote_transmitter
  # name: "IR Transmitter"
  pin: ${pin_transmitter}
  carrier_duty_percent: 50%

remote_receiver:
  id: heatpump_remote_receiver
  # name: "IR Receiver"
  pin:
    number: ${pin_receiver}
    inverted: true
    mode:
      input: true
      pullup: true
  # high 55% tolerance is recommended for some remote control units
  tolerance: 55%
  filter: 10us
  idle: 25ms

sensor:
  - platform: dht
    pin: ${pin_dht}
    model: DHT22
    temperature:
      # name: "Temperature"
      id: heatpump_room_temperature
    humidity:
      # name: "Humidity"
      id: heatpump_room_humidity

# Refer the following for other platforms of ACs
# https://esphome.io/components/climate/climate_ir.html
climate:
  - platform: daikin_brc
    name: "Daikin Cassette AC"
    id: my_daikin_ac
    transmitter_id: heatpump_remote_transmitter
    receiver_id: heatpump_remote_receiver
    sensor: heatpump_room_temperature
    visual:
      min_temperature: 16
      max_temperature: 32
      temperature_step:
        target_temperature: 1
        current_temperature: 0.1

Anything in the logs that might be useful for us?

[20:35:54][I][remote.jvc:049]: Received JVC: data=0x885B
[20:35:54][I][remote.lg:054]: Received LG: data=0x885BE812, nbits=32
[20:35:54][I][remote.pronto:234]: Received Pronto: data=
[20:35:54][I][remote.pronto:236]: 0000 006D 003A 0000 00C1 0052 000F 0044 000E 001B 000E 001B 000E 001B 000E 0045 000E 001B 000E 001B 000E 001B 000E 001B 000E 0045 000E 001B 000E 0045 000E 0045 000E 001B 000E 0045 000E 0045 000E 0045 000E 0045 000E 0045 000E 001B 
[20:35:54][I][remote.pronto:236]: 000E 0045 000E 001B 000E 001B 000E 001B 000E 001B 000E 001B 000E 001B 000E 0045 000E 001B 000E 001B 000E 0044 000E 001B 000E 001B 000E 001B 000E 0045 000E 001B 000E 001B 000E 001B 000E 001B 000E 001B 000E 001B 000E 001B 000E 001B 
[20:35:54][I][remote.pronto:236]: 000E 001B 000E 001B 000E 001B 000E 001B 000E 001B 000E 001B 000E 0045 000E 0045 000E 0045 000E 001B 000E 001B 000E 0045 000E 001B 000E 03C2 06C3
[20:35:54][I][remote.samsung:061]: Received Samsung: data=0x885BE812200072, nbits=56
[20:35:54][I][remote.panasonic:070]: Received Panasonic: address=0xFFFF, command=0xFFFFFFFF
[20:35:54][I][remote.aeha:099]: Received AEHA: address=0xFFFF, data=[0xFF,0xFF,0xFF,0xFF,0xFF]
[20:35:54][I][remote.jvc:049]: Received JVC: data=0x885B
[20:35:54][I][remote.lg:054]: Received LG: data=0x8D5BE95B, nbits=32
[20:35:54][I][remote.pronto:234]: Received Pronto: data=
[20:35:54][I][remote.pronto:236]: 0000 006D 0092 0000 00C1 0052 000D 0045 000E 001C 000E 001C 000E 001C 000E 0045 000E 001D 000D 001C 000D 001D 000D 001C 000D 0045 000E 001C 000E 0045 000E 0045 000D 001C 000D 0046 000D 0045 000D 0045 000D 0045 000D 0045 000D 001C 
[20:35:54][I][remote.pronto:236]: 000D 0046 000D 001C 000E 001C 000D 001D 000D 001C 000D 001D 000D 001C 000E 0045 000D 001D 000C 001C 000D 0045 000D 001D 000D 001D 000D 001D 000D 001D 000D 001D 000D 001D 000D 001E 000C 001D 000D 001E 000C 0046 000D 0047 000C 001E 
[20:35:54][I][remote.pronto:236]: 000C 001E 000C 0047 000C 0047 000C 0047 000C 001D 000D 001D 000D 001E 000C 001E 000C 001E 000C 001D 000D 001D 000D 001D 000D 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 0047 000C 001E 000C 001E 000C 001E 000C 001D 
[20:35:54][I][remote.pronto:236]: 000D 001E 000C 001E 000C 001D 000D 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 0047 000C 001E 000C 001E 000C 0047 
[20:35:54][I][remote.pronto:236]: 000C 0047 000C 0047 000C 001E 000C 0047 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 0047 000C 001E 000C 001E 
[20:35:54][I][remote.pronto:236]: 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 000C 001E 
[20:35:54][I][remote.pronto:236]: 000C 001E 000C 001E 000C 001E 000C 0047 000C 001E 000C 0047 000C 0047 000C 001E 000C 001E 000C 03C2 06C3
[20:35:54][I][remote.samsung:061]: Received Samsung: data=0x885BE81200CE0004, nbits=64
[20:35:54][I][remote.panasonic:070]: Received Panasonic: address=0xFFFF, command=0xFFFFFFFF
[20:35:54][I][remote.aeha:099]: Received AEHA: address=0xFFFF, data=[0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF]

Additional information

No response

shamasis commented 3 months ago

Hello. Any help or even thoughts out loud would help me finish the project I started. ❤️

shamasis commented 2 months ago

Wondering if I posted too niche of a problem or am I doing something so obviously wrong? 😊