I am out of things to try, I would appreciate some clarification here.
First I had a D1-Mini setup with Arduino IRSend to control an AC/Heat pump and that was working well but after getting into ESPhome I am trying to migrate everything into the same environment.
I am following the documentation from ESPhome, I added a IR receiver to my D1mini and using the remote from my heat pump I press the LED button (to toggle on/off the LED display on the heat pump) and from the ESPhome log I get this:
[14:25:16][D][remote.raw:028]: Received Raw: -4412, 4313, -583, 1552, -532, 538, -530, 1606, -582, 485, -583, 485, -530, 537, -582, 1553, -534, 533, -532, 536, -531, 536, -584, 485, -530, 537, -584, 1551, -531, 537, -552, 514, -532, 537, -530, 1606, -582, 1554, -530, 1605, -532, 1604,
[14:25:16][D][remote.raw:028]: -532, 1605, -535, 1601, -531, 1605, -531, 1605, -584, 1553, -584, 1552, -532, 1604, -532, 1604, -532, 1604, -532, 1607, -529, 1605, -532, 1604, -532, 1606, -531, 1604, -585, 1552, -531, 1604, -532, 1605, -584, 1553, -531, 1605, -584, 1553, -530, 537,
[14:25:16][D][remote.raw:028]: -585, 1552, -531, 1606, -530, 1604, -532, 538, -583, 1551, -532, 537, -583, 1552, -585, 5125, -4356, 4368, -583, 486, -583, 1552, -584, 486, -528, 1606, -530, 1607, -584, 1551, -584, 485, -583, 1554, -583, 1553, -529, 1605, -532, 1605, -531, 1607,
[14:25:16][D][remote.raw:028]: -570, 496, -532, 1606, -530, 1605, -585, 1552, -585, 482, -584, 485, -583, 484, -530, 537, -585, 483, -585, 484, -530, 537, -583, 483, -584, 484, -585, 484, -583, 484, -583, 485, -582, 487, -580, 487, -583, 484, -530, 538, -529, 538, -530, 537, -531,
[14:25:16][D][remote.raw:041]: 537, -585, 481, -532, 537, -530, 538, -583, 484, -531, 537, -530, 1605, -583, 485, -584, 484, -584, 485, -529, 1606, -584, 485, -529, 1605, -584, 485, -585
Then I set up my code like this:
remote_receiver:
pin: D4
dump: all
remote_transmitter:
pin: D2
# Infrared remotes use a 50% carrier signal
carrier_duty_percent: 50%
switch:
- platform: template
name: Toggle LED
turn_on_action:
- remote_transmitter.transmit_raw:
carrier_frequency: 38kHz
code: [-4412, 4313, -583, 1552, -532, 538, -530, 1606, -582, 485, -583, 485, -530, 537, -582, 1553, -534, 533, -532, 536, -531,
536, -584, 485, -530, 537, -584, 1551, -531, 537, -552, 514, -532, 537, -530, 1606, -582, 1554, -530, 1605, -532, 1604,
-532, 1605, -535, 1601, -531, 1605, -531, 1605, -584, 1553, -584, 1552, -532, 1604, -532, 1604, -532, 1604, -532, 1607,
-529, 1605, -532, 1604, -532, 1606, -531, 1604, -585, 1552, -531, 1604, -532, 1605, -584, 1553, -531, 1605, -584, 1553,
-530, 537, -585, 1552, -531, 1606, -530, 1604, -532, 538, -583, 1551, -532, 537, -583, 1552, -585, 5125, -4356, 4368, -583,
486, -583, 1552, -584, 486, -528, 1606, -530, 1607, -584, 1551, -584, 485, -583, 1554, -583, 1553, -529, 1605, -532, 1605,
-531, 1607, -570, 496, -532, 1606, -530, 1605, -585, 1552, -585, 482, -584, 485, -583, 484, -530, 537, -585, 483, -585, 484,
-530, 537, -583, 483, -584, 484, -585, 484, -583, 484, -583, 485, -582, 487, -580, 487, -583, 484, -530, 538, -529, 538, -530,
537, -531, 537, -585, 481, -532, 537, -530, 538, -583, 484, -531, 537, -530, 1605, -583, 485, -584, 484, -584, 485, -529, 1606,
-584, 485, -529, 1605, -584, 485, -585]
When I activate the button from HA, looking at the log I can see this:
[15:18:19][D][switch:021]: 'Toggle LED' Turning ON.
[15:18:19][D][remote_transmitter:066]: Sending remote code...
Looking at the IRled from my phone cam I can also see the activity but nothing is received at the heat pump which is about 9 feet in front of the D1mini.
Any suggestion I can try?