I read all the replies and it seems like you are an expert now. I’m struggling for a couple day to capture an ac remote control signal through the receiver and copy it to transmitter to send it back
I’m using esp32 and I think my problem is something on the capture process
Can you see what’s the problem or can you guide me what to do
esphome:
name: multiclass
platform: ESP32
board: nodemcu-32s
wifi:
ssid: ""
password: ""
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Multiclass Fallback Hotspot"
password: "tujj7PNE3G2R"
captive_portal:
# Enable logging
logger:
level: DEBUG
# Enable Home Assistant API
api:
ota:
sensor:
- platform: dht
model: dht11
pin: GPIO2
temperature:
name: "class_Temperature"
humidity:
name: "clas_Humidity"
update_interval: 60s
binary_sensor:
- platform: gpio
pin: GPIO4
name: "class_Motion"
device_class: motion
remote_receiver:
pin:
number: GPIO25
mode: INPUT_PULLUP
inverted: True
dump: raw
remote_transmitter:
pin: GPIO26
# Infrared remotes use a 50% carrier signal
carrier_duty_percent: 50%
#switch:
# - platform: template
# name: RawCode Button
# turn_on_action:
# - remote_transmitter.transmit_raw:
# code: [4088, -1542, 1019, -510, 513, -1019, 510, -509, 511, -510, 1020,
# -1020, 1022, -1019, 510, -509, 511, -510, 511, -509, 511, -510,
# 1020, -1019, 510, -511, 1020, -510, 512, -508, 510, -1020, 1022]
# carrier_frequency: 38kHz
# repeat:
# times: 3
# wait_time: 20ms
switch:
- platform: template
name: "Light - Fan Light On"
id: fan_light_on
turn_on_action:
- remote_transmitter.transmit_raw:
code: [ -562, 693, -562, 692, -562, 693, -562, 693, -562, 692, -562, 692, -563, 692, -562, 693,
-562, 692, -562, 693, -562, 692, -562, 692, -563, 692, -562, 693, -562, 692, -562, 692,
-563, 692, -562, 693, -562, 692, -562, 692, -563, 692, -562, 692, -562, 693, -562, 692,
-1849, 624, -628, 693, -1848, 624, -629, 692, -563, 692, -562, 693, -562, 692, -563, 691,
-563, 692, -562, 693, -561, 693, -1848, 625, -628, 692, -1848, 624, -630, 692, -1848, 624]
carrier_frequency: 38kHz
- platform: template
name: " RawCode Button "
id: fan_light_off
turn_on_action:
- remote_transmitter.transmit_raw:
code: [4088, -1542, 1019, -510, 513, -1019, 510, -509, 511, -510, 1020,
-1020, 1022, -1019, 510, -509, 511, -510, 511, -509, 511, -510,
1020, -1019, 510, -511, 1020, -510, 512, -508, 510, -1020, 1022]
carrier_frequency: 38kHz
repeat:
times: 3
wait_time: 20ms
and this is what iget on the log
[17:58:26][D][sensor:092]: 'class_Temperature': Sending state nan °C with 1 decimals of accuracy
[17:58:26][D][sensor:092]: 'clas_Humidity': Sending state nan % with 0 decimals of accuracy
[17:58:27][D][remote.raw:041]: Received Raw: 80
[17:58:29][D][remote.raw:028]: Received Raw: -5080, 625, -1914, 625, -1914, 626, -628, 694, -561, 694, -561, 693, -562, 694, -1845, 626, -1912, 627, -628, 694, -561, 694, -561, 693, -562, 693, -561, 694, -561, 694, -560, 695, -1845, 625, -629, 694, -561, 694, -561, 694, -561, 694,
[17:58:29][D][remote.raw:028]: -560, 694, -1846, 626, -1912, 627, -1915, 624, -629, 694, -561, 693, -561, 694, -561, 694, -560, 694, -561, 694, -561, 694, -561, 694, -561, 693, -562, 693, -561, 694, -561, 694, -560, 695, -1845, 626, -1914, 625, -628, 695, -561, 693, -562, 693, -561,
[17:58:29][D][remote.raw:028]: 694, -561, 693, -562, 693, -561, 694, -561, 694, -561, 694, -560, 695, -560, 694, -561, 694, -561, 694, -561, 693, -1847, 625, -628, 695, -561, 693, -562, 693, -561, 694, -561, 694, -561, 694, -561, 693, -561, 694, -561, 694, -561, 694, -561, 693,
[17:58:29][D][remote.raw:028]: -561, 695, -560, 694, -561, 694, -561, 694, -560, 694, -561, 694, -561, 694, -561, 694, -561, 693, -561, 694, -561, 694, -561, 694, -561, 694, -561, 694, -561, 693, -562, 693, -561, 694, -561, 693, -562, 694, -561, 694, -560, 694, -561, 694, -561, 693,
[17:58:29][D][remote.raw:041]: -1847, 625, -629, 693, -1846, 626, -629, 694, -560, 694, -561, 694, -561, 694, -561, 694, -561, 693, -561, 694, -561, 693, -1847, 625, -629, 694, -1845, 626, -629, 694, -1845, 626