Request: will any user successfully using ESPhome as a remote IR transmitter please post their yaml

I don’t know if it matters, try adding these other lines as well.

switch:
  - platform: template
    name: 'SOME NAME'
    optimistic: True
    assumed_state: True
    turn_on_action:
      - remote_transmitter.transmit_raw:
          code: [YOUR IR CODE]
          carrier_frequency: 38kHz

Thank you, but still not working.

switch:
  - platform: template
    name: "Cover Open"
    id: open_cover_switch
    optimistic: true
    assumed_state: True
    turn_on_action:
      - remote_transmitter.transmit_raw:
          code: [2121, -1714, 62, -54, 5684, -225, 78, -71, 51, -118, 4648, -68, 71, -561, 99, -113, 82, -189, 57, -125, 287, -70, 144, -74, 532, -136, 121, -9626, 1462, -364, 703, -869, 201, -1803, 337, -367, 700, -357, 711, -711, 357, -355, 714, -711, 358, -356, 712, -356, 347, -3209, 361, -706, 365, -350, 718, -707, 363, -706, 365, -350, 717, -707, 363, -511, 557, -602, 467, -376, 693, -711, 359, -351, 717, -352, 716, -354, 713, -355, 713, -356, 711, -2849, 141, -574, 712, -359, 712, -357, 711, -714, 356, -357, 710, -358, 710, -359, 709, -1495, 6914, -4762, 1477, -353, 715, -355, 714, -356, 710, -712, 359, -354, 713, -467, 604, -729, 340, -373, 696, -709, 361, -352, 716, -354, 714, -709, 361, -707, 362, -706, 362, -2845, 306, -762, 366, -348, 721, -705, 364, -349, 719, -351, 717, -354, 715, -1000, 71, -1007, 61, -369, 702, -365, 704, -352, 716, -353, 715, -709, 361, -352, 716, -709, 362, -353, 480, -3084, 356, -355, 716, -354, 713, -356, 712, -711, 7706, -4767, 198, -2695, 125, -942, 711, -713, 356, -356, 711, -358, 709, -713, 356, -357, 711, -790, 280, -917, 151, -360, 705, -709, 359, -704, 364, -704, 365, -702, 366, -348, 718, -703, 365, -701, 78, -2055, 84, -628, 188, -879, 718, -353, 714, -707, 362, -353, 714, -354, 713, -356, 711, -495, 572, -589, 479, -728, 342, -355, 712, -709, 361, -352, 715, -354, 712, -356, 711, -712, 357, -353, 85, -2052, 56, -1368, 7704, -4770, 1474, -353, 715, -355, 712, -355, 94, -2040, 56, -1012, 711, -711, 360, -355, 714, -711, 358, -356, 712, -356, 713, -2851, 359, -712, 357, -346, 721, -701, 368, -701, 369, -347, 721, -703, 366, -347, 706, -2857, 340, -375, 717, -353, 716, -353, 714, -356, 712, -356, 712, -712, 358, -780, 290, -955, 116, -365, 703, -361, 707, -353, 714, -708, 361, -353, 715, -354, 714, -355, 713, -709, 144, -3737, 3827, -4785, 1458, -355, 713, -356, 712, -357, 711, -712, 358, -356, 713, -357, 391, -3170, 359, -355, 716, -358, 711, -711, 359, -710, 359, -709, 362, -706, 364, -496, 574, -795, 276, -715, 356, -353, 716, -706, 364, -347, 721, -351, 717, -352, 715, -708, 363, -351, 150, -3059, 710, -361, 712, -713, 358, -356, 713, -712, 360, -355, 714, -357, 712, -473, 597, -732, 339, -378, 691, -360, 709, -356, 713, -714, 3638, -3930, 136, -4775, 1473, -456, 616, -500, 570, -376, 693, -713, 360, -353, 716, -354, 714, -711, 360, -355, 714, -711, 358, -2850, 279, -790, 364, -708, 364, -705, 365, -350, 719, -706, 364, -706, 365, -761, 309, -1018, 1124, -361, 707, -349, 720, -705, 366, -349, 719, -351, 718, -353, 717, -354, 472, -2738, 87, -71, 83, -1186, 364, -354, 716, -355, 715, -356, 714, -712, 359, -355, 715, -633, 438, -632, 438, -722, 7234, -5254, 1477, -356, 714, -358, 711, -358, 711, -804, 269, -717, 353, -370, 700, -712, 358, -353, 716, -709, 361, -353, 715, -355, 714, -711, 361, -708, 2253, -599, 271, -56, 67, -62, 106, -54, 53, -757, 365, -706, 366, -350, 718, -708, 366, -350, 718, -353, 717, -428, 642, -757, 315, -367, 704, -357, 713, -354, 715, -356, 714, -357, 713, -713, 359, -355, 712, -2498, 83, -988, 715, -714, 358, -711, 361, -710, 365, -705, 363, -351, 8065, -6606, 717, -357, 714, -356, 713, -713, 358, -356, 713, -357, 712, -988, 86, -1791, 353, -363, 706, -351, 718, -707, 363, -708, 364, -705, 366, -703, 368, -347, 480, -2730, 97, -1331, 365, -348, 720, -351, 719, -353, 717, -708, 364, -351, 717, -604, 467, -810, 262, -368, 702, -355, 715, -708, 363, -351, 718, -708, 364, -351, 717, -355, 714, -354, 172, -2322, 83, -987, 364, -706, 364, -349, 8069, -4769, 1474, -355, 172, -3389, 358, -358, 711, -358, 711, -713, 358, -357, 714, -713, 358, -356, 713, -470, 600, -798, 274, -723, 347, -707, 362, -704, 366, -350, 719, -706, 364, -703, 367, -350, 718, -2489, 94, -976, 715, -712, 362, -351, 716, -355, 714, -357, 712, -358, 712, -920, 151, -1463, 677, -713, 358, -352, 716, -354, 715, -355, 715, -709, 361, -708, 363, -705, 194, -3883, 157]
          carrier_frequency: 38kHz
  - platform: template
    name: "Cover Stop"
    id: stop_cover_switch
    optimistic: true
    assumed_state: True
    turn_on_action:
      - remote_transmitter.transmit_raw:
          code: [-66, 101, -448, 3425, -5895, 710, -367, 707, -363, 707, -722, 353, -364, 709, -362, 711, -940, 135, -682, 391, -752, 322, -361, 711, -357, 716, -712, 363, -710, 364, -708, 363, -709, 366, -349, 101, -2403, 175, -543, 722, -708, 368, -351, 718, -355, 720, -354, 718, -712, 364, -354, 719, -1529, 620, -374, 698, -357, 715, -711, 362, -355, 719, -711, 363, -354, 719, -710, 305, -2559, 127, -504, 1166, -353, 720, -709, 7739, -4790, 1329, -2656, 115, -74, 53, -1191, 361, -353, 718, -358, 716, -713, 362, -357, 716, -713, 362, -686, 390, -768, 305, -746, 331, -707, 366, -705, 370, -702, 371, -348, 725, -707, 368, -702, 371, -346, 186, -3036, 270, -81, 52, -289, 1106, -709, 365, -353, 719, -355, 718, -356, 718, -357, 717, -458, 613, -752, 324, -387, 687, -711, 365, -352, 719, -711, 365, -352, 721, -711, 363, -354, 719, -2856, 284, -824, 6637, -4788, 1485, -355, 717, -356, 716, -358, 709, -2505, 110, -1319, 360, -355, 719, -713, 361, -355, 716, -356, 716, -713, 361, -854, 219, -817, 257, -724, 349, -360, 713, -704, 369, -702, 369, -348, 724, -706, 366, -350, 722, -351, 356, -2145, 56, -662, 154, -919, 718, -357, 716, -357, 716, -358, 715, -714, 360, -357, 716, -857, 219, -600, 472, -730, 345, -353, 720, -708, 363, -351, 721, -709, 364, -352, 721, -710, 662, -3873, 3204, -4837, 1437, -355, 719, -352, 720, -354, 717, -714, 362, -354, 718, -356, 717, -2858, 212, -506, 720, -356, 718, -712, 362, -711, 364, -711, 365, -709, 367, -431, 644, -1794, 357, -352, 722, -702, 373, -346, 726, -348, 726, -350, 722, -709, 369, -350, 512, -2710, 110, -965, 719, -712, 363, -354, 720, -711, 363, -354, 718, -711, 365, -600, 474, -885, 193, -365, 709, -711, 363, -349, 723, -709, 4066, -8469, 1483, -577, 497, -821, 255, -374, 699, -714, 360, -351, 720, -354, 720, -711, 363, -354, 720, -710, 364, -351, 127, -2377, 140, -932, 366, -709, 366, -707, 366, -352, 722, -709, 367, -707, 368, -349, 724, -1610, 540, -364, 709, -351, 721, -708, 369, -348, 725, -351, 722, -353, 722, -356, 694, -2529, 119, -1313, 365, -355, 718, -713, 362, -355, 719, -711, 364, -355, 720, -812, 263, -1024, 8176, -5123, 1488, -356, 719, -356, 719, -354, 717, -864, 212, -947, 129, -362, 712, -711, 362, -351, 725, -705, 367, -351, 722, -353, 721, -709, 365, -706, 57, -2089, 59, -658, 238, -1194, 369, -707, 365, -349, 722, -709, 369, -348, 724, -351, 722, -420, 653, -755, 321, -368, 705, -354, 718, -353, 718, -355, 719, -356, 717, -714, 362, -354, 719, -2859, 290, -426, 721, -713, 362, -353, 719, -712, 364, -355, 717, -712]
          carrier_frequency: 38kHz
  - platform: template
    name: "Cover Close"
    id: close_cover_switch
    optimistic: true
    assumed_state: True
    turn_on_action:
      - remote_transmitter.transmit_raw:
          code: [-210, 507, -950, 4425, -3378, 54, -71, 58, -67, 61, -59, 9666, -378, 189, -222, 91, -195, 66, -7785, 51, -377, 54, -441, 706, -366, 705, -369, 701, -718, 354, -361, 709, -362, 708, -1537, 608, -747, 325, -372, 697, -359, 710, -712, 360, -710, 361, -707, 365, -705, 365, -349, 703, -2510, 122, -1304, 363, -352, 720, -353, 717, -353, 716, -708, 365, -350, 718, -809, 262, -1437, 701, -369, 700, -708, 363, -349, 720, -705, 365, -350, 718, -351, 718, -708, 122, -2729, 178, -380, 52, -68, 1109, -707, 7706, -4764, 1479, -351, 381, -3183, 360, -353, 715, -358, 713, -710, 360, -355, 716, -712, 358, -352, 717, -516, 554, -893, 179, -722, 350, -704, 365, -703, 367, -347, 723, -703, 370, -699, 370, -345, 722, -2484, 54, -1016, 714, -712, 362, -351, 718, -352, 716, -351, 715, -355, 714, -355, 713, -1695, 445, -720, 351, -353, 713, -354, 715, -706, 364, -703, 367, -347, 720, -349, 717, -3514, 52, -67, 58, -64, 5722, -4767, 1474, -352, 717, -352, 716, -356, 710, -709, 360, -2848, 298, -415, 714, -712, 359, -353, 716, -354, 714, -709, 361, -708, 361, -992, 80, -1458, 681, -703, 366, -701, 368, -345, 723, -699, 369, -345, 722, -349, 719, -350, 497, -2710, 119, -66, 52, -832, 715, -359, 709, -357, 712, -710, 359, -355, 713, -709, 361, -681, 388, -937, 134, -719, 350, -703, 365, -350, 716, -349, 720, -703, 366, -701, 1990, -3441, 54, -84, 62, -54, 54, -6837, 1368, -373, 693, -359, 711, -353, 713, -711, 361, -352, 717, -354, 714, -708, 361, -353, 216, -2993, 201, -242, 52, -87, 68, -774, 358, -709, 363, -705, 363, -705, 364, -349, 720, -919, 151, -1735, 403, -713, 356, -346, 721, -348, 718, -352, 716, -706, 366, -348, 719, -350, 718, -352, 68, -2070, 55, -72, 53, -1241, 362, -354, 715, -709, 362, -350, 717, -353, 716, -708, 362, -1552, 587, -448, 621, -717, 353, -703, 5627, -6851, 1476, -354, 713, -482, 587, -1799, 343, -382, 684, -354, 712, -709, 361, -353, 716, -708, 362, -351, 715, -354, 662, -2896, 362, -708, 362, -350, 719, -706, 363, -703, 365, -349, 718, -705, 364, -767, 301, -1437, 700, -706, 362, -348, 719, -349, 719, -350, 716, -350, 715, -354, 714, -708, 124, -2019, 53, -162, 54, -438, 166, -417, 58, -429, 714, -712, 358, -706, 362, -351, 715, -354, 713, -710, 360, -773, 7637, -4766, 1475, -355, 714, -354, 714, -356, 712, -709, 359, -354, 715, -563, 506, -775, 295, -381, 687, -709, 360, -351, 715, -354, 714, -708, 360, -707, 363, -704, 364, -705, 2243, -71, 53, -836, 365, -348, 718, -704, 363, -349, 720, -352, 714, -354, 715, -1509, 631, -558, 510, -374, 693, -353, 713, -356, 714, -707, 362, -352, 713, -711, 361, -351, 714, -2846, 276, -72, 1082, -353, 715, -708, 360, -707, 7711, -4768, 534, -2365, 104, -969, 708, -713, 357, -357, 712, -359, 711, -710, 358, -357, 711, -1012, 57, -1476, 665, -711, 357, -704, 364, -704, 367, -700, 368, -346, 722, -704, 365, -702, 192, -2660, 136, -78, 51, -804, 718, -353, 716, -708, 363, -351, 715, -355, 715, -354, 713, -747, 323, -1796, 342, -358, 708, -703, 365]
          carrier_frequency: 38kHz

This is the rest of my settings. Worth a try to mimic mine to see if it will work.

remote_receiver:
  pin: 
    number: GPIO15
    inverted: True
    mode: INPUT_PULLUP
  dump: raw

remote_transmitter:
  pin: GPIO2
  carrier_duty_percent: 50%

Still no luck for me …!
This is’t mai remote. Any ideeas?
WhatsApp Image 2020-11-17 at 15.08.35 (1)|375x500

Not sure what problem you are having, but your remote seems to be an RF remote (433MHz) while all the other posts in the thread are about Infra Red (IR) remotes.

This requires different configuration according to ESPHome docs, but I am not familiar with this type of remote so cannot really help there.

@cristianchiribes, at some post above glmnet was saying that the numbers in raw format represent time of the transmission (when positive) and the delay (no activity) when negative. Assuming this, the sequence of codes in raw format cannot start with negative number as the receiver cannot know when “pause” (no activity) starts…
This can indicate that your sequence is recorded “negative” and in order to fix it I would try to add inverted: false (opposite to what you have) to your pin definition for receiver. Then I would see how the raw codes looks and if the are starting with positive number. If so, then would try this code.

First major step in remote IR integration with HA is behind me with major success!
This topic helped me a Great Deal as after reading it I actually with very slight challenges made the concept working. I can now easily read any code from any of my remote (have more then 10) and play them successfully from ESP32 board!
Especially wanted to thank @DeeBeeKay @glmnet and @Holdestmade ! :slight_smile:

Next are the steps to integrate it more with HA and also consider to replace my Harmony universal remote (which is old and already some buttons do not work correctly) with some smartphone (or other device) based one the established platform.

Although ESPHome is really easy to set, can any of you try Tasmota IR for the similar purpose? Even if not all IR codes are recognized, it has the largest devices database of the DIY solutions.

@Rikels I like your idea very much. It helps to make the configuration clean and I do not have to compile&upload new code to esp32 each time i have new RC button to define.
Hoever I have trouble to call the service from your exmaple. I have defined the service as per your example:

 services:
   - service: pioneer
     variables:
       keycode: int[]
     then:
     - remote_transmitter.transmit_raw:
         code: !lambda 'return keycode;'
         carrier_frequency: 38kHz

It compiles OK but for some reason I cannot get right format of data to call the service.
Trying with developer tools:


and gettig the following error:

ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2730016120] Error handling message: expected dict for dictionary value @ data['service_data']. Got [8556, -4204, 585, -1539, 582, -514, 562, -1561, 559, -512, 565, -505, 560, -1563, 558, -513, 563, -1560, 561, -510, 566, -1557, 564, -507, 558, -1565, 566, -1532, 589, -507, 558, -1565, 567, -504, 561, -510, 558, -1539, 590, -507, 559, -511, 565, -1532, 589, -507, 558, -513, 564, -506, 559, -1539, 582, -514, 562, -1561, 560, -1538, 593, -503, 562, -1561, 560, -1539, 592, -1533, 587]

Was trying with different combination of brackets and apostrphes (’ " ) - no luck :frowning:
I hope I am doing some simple/stupid error here…

Can you share example how do you call the service from your script (or other “place”) ?

keycode: [8556, -4204, ...]

1 Like

Thank you. Yes, now it works fine and I am almost 100% happy.
The reason why is not 100% is that when I compile my script (with such entry):

rtv_tv_power_toggle:
  alias: 'TV Power'
  mode: single
  sequence:
  #   sequence: TV Samsung - power toggle
  - service: esphome.esp06_rc_tower_others
    data:
      keycode: [4559, -4505, 586, -1666, 583, -1669, 581, -1671, 578, -575, 555, -572, 559, -567, 552, -575, 555, -571, 559, -1693, 556, -1669, 581, -1671, 589, -538, 581, -572, 564, -562, 552, -575, 555, -571, 559, -568, 551, -1700, 561, -566, 553, -573, 557, -570, 560, -566, 554, -572, 558, -569, 561, -1664, 585, -568, 552, -1700, 560, -1665, 584, -1668, 582, -1670, 579, -1674, 587, -1664, 585]

Here is my configuration on ESP32:

api:
  services:
    - service: others
      variables:
        keycode: int[]
      then:
      - remote_transmitter.transmit_raw:
          code: !lambda 'return keycode;'
          carrier_frequency: 38kHz

And when I do Reload scripts I am getting the following error in log:

Logger: homeassistant.config
Source: config.py:415
First occurred: 7 December 2020, 11:02:46 (2 occurrences)
Last logged: 09:49:10
Invalid config for [script]: expected dict for dictionary value @ data['sequence'][0]['data']. Got None. (See /config/configuration.yaml, line 30). 

Despite the error it works fine. Any suggestion what I need to change to have it perfect (no errors in log) ?

Hi didn’t check here for quite a time… Glad to see that you figured it out, it was indeed also what I wanted, not having to flash the ESP every time you want to add a new code. My attempt was just a test, so had to set it all up again now.

I’m not sure why it triggers an error Got None instead of data. Have you perhaps added another piece of code around line 30?

This is 1 of the routines in my script:

stereo_volume_up:
  mode: parallel
  sequence:
    - service: esphome.temperaturemeter_remote_aiwa
      data:
        keycode: [ 4564, -4440, 630, -494, 627, -495, 626, -1618, 628, -1616, 627, -496, 628, -1616, 628, -495, 601, -521, 627, -495, 602, -520, 627, -1617, 628, -1617, 626, -496, 628, -1617, 600, -522, 602, -520, 627, -1617, 601, -1643, 627, -1617, 626, -497, 600, -1645, 600, -521, 626, -497, 601, -521, 600, -521, 628, -495, 600, -522, 627, -1618, 601, -520, 627, -1617, 628, -1617, 601, -1643, 626 ]

So that seems to be correct at your side, I think there’s another part of your scripts.yaml file that triggers that error.

Thank you.
All is working fine on my side now.

I am not sure either but after update either core or supervisor (do not remember which one) the error message (showed eat time I have reloaded scripts) is gone - no change from my side.
All in all I am happy and using this solution. I am actually amazed how easy it is to make such universal and powerful IR system integrated with HA. Can read ANY code from ANY remote and make ANY combination to control ALL my devices and integrate with any other automation… :smile:

1 Like

Haha, yes. It took me some time investing how ESPHome works and finding the service part. But after that it was easy to create it. It’s indeed awesome how versatile everything is and nicely integrates.

Good to hear that the error went away!

Only works with raw code ?
i am getting error while compiling with sony

esphome:
  name: ir_remote
  platform: ESP8266
  board: d1_mini

wifi:
  ssid: "ssid"
  password: "pass"

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:
  services:
    - service: others
      variables:
        keycode: int[]
      then:
      - remote_transmitter.transmit_sony:
          data: !lambda 'return keycode;'
          nbits: 12
          repeat:
            times: 3
            wait_time: 40ms

ota:

remote_transmitter:
  pin: GPIO5
  carrier_duty_percent: 50%

error -

src/main.cpp: In lambda function:
src/main.cpp:179:14: error: cannot convert 'std::vector<int>' to 'uint16_t {aka short unsigned int}' in return
       return keycode;
              ^
Compiling /data/ir_remote/.pioenvs/ir_remote/lib4d9/ESP8266WiFi/ESP8266WiFiGeneric.cpp.o
src/main.cpp:180:3: warning: control reaches end of non-void function [-Wreturn-type]
   });
   ^
Compiling /data/ir_remote/.pioenvs/ir_remote/lib4d9/ESP8266WiFi/ESP8266WiFiGratuitous.cpp.o
*** [/data/ir_remote/.pioenvs/ir_remote/src/main.cpp.o] Error 1
========================= [FAILED] Took 56.02 seconds =========================

edit - changing int[] to int fixed it

1 Like

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

Didn’t read through the whole thread but in my case I needed to repeat the signal multiple times and add an extra number to my rf code in order for it to work.

From the quick first look there should NOT be negative code at the beginning of the sequence as negative (like -5080) means PAUSE, so you cannot start your coeds sequence with pause. And this is what I see your logs.
Try configuring your remote-recevier with inverter: False so when you received codes, they start with positive numbers
And when pressed button on your remote you received several lines you need to copy all of them to your transmitter.
My config is the same as yours:

remote_receiver:
  pin:
    number: D5
    inverted: true
  dump: raw


remote_transmitter:
  pin: GPIO26
  carrier_duty_percent: 50%

As much as I can I will try to help.

1 Like

@ Holdestmade and @Maco65

Where did you get your Samsung codes? Have you seen any codes to go directly to “HDMI#” ?

I have a Samsung q70dt (2020 model) from Costco, I’m struggling with getting the “Power On Default HDMI2” (which is something I did with my previous Samsung Series 7 from 2008 in the Service menu). I’d like to create an IR blaster that will send just that code (maybe others too depending on success :slight_smile: )

Thanks!
~T

I get my codes from my original remote (scaning using IR receiver). I do not believe I have there direct code for switching to particular HDMI input…
Some time ago when I was searching for solution I have found link that can provide codes for specific device: https://irdb.globalcache.com/
Let us know if were lucky to get it from there…