Wow! Wonderful code! Thank you very much.
I has some AEHA and MIDEA remotes to control through ESP IR remote transmitter.
I tried to modify your code but my lambda function knowledge is near to zero .
There are any possibility to include this two protocols?
The problem seems to be that booth protocols need commands “lists” instead “string”. https://esphome.io/components/remote_transmitter.html#remote-transmitter-transmit-aeha-action
Sorry for the late replay but I was away for several months.
But sorry again, i can’t help you with that. Just look at all the other protocols and try to figure it out by just trying.
How to record unknown remotes?
Open the log of the blaster in EspHome. Point your remote at the attached IR receiver and press the button you want to record. The details will come up in the log after each button press.
Thanks.
I tried that, but there are too many codes to record. To use as climate component, I have to record each temperature in every mode (heat, cool, dry and fan, with every fan speed and oscilation, adding turbo, sleep and quiet modes!), because my remote gives all the info while pressing the button.
I solved this using tasmota instead of esphome, with the tasmota daikin protocol it just works!
Thank you for the prompt reply. I am looking for LG aircons. Yes please share regardless as I’m new in ESPHome DIY IR blaster stuff and trying to learn everything.
Hi Fred,
I would like the ir receiver to receive command from remote controller and then forward it to the remote transmitter.
I use the following and it created a loop as the transmitter just send data and remote receiver receive and send back again.
remote_receiver:
id: ir_receiver
pin:
number: D5 # GPIO14
allow_other_uses: True
inverted: True
mode: OUTPUT_OPEN_DRAIN
dump:
- lg
- raw
tolerance: 45%
on_lg:
then:
- remote_transmitter.transmit_lg:
data: !lambda |-
id(is_forwarded)=1;
uint32_t data = 0;
if (x.containsKey("data"))
data = x["data"];
return data;
nbits: !lambda |-
id(is_forwarded)=1;
uint8_t nbits = 32;
if (x.containsKey("nbits"))
nbits = x["nbits"];
return nbits;
- logger.log: "Forward the LG code to IR transmitter."
remote_transmitter:
carrier_duty_percent: 100%
id: ir_transmitter
pin:
number: D5
allow_other_uses: True
inverted: true
mode: OUTPUT_OPEN_DRAIN
How can I solve this problem. My case is: I want the climate entity to update the temperature shown on HA in both case: (1) using HA to control and (2) using remote controller to control the LG AC. I could controll the AC from HA already but it does not update the value on climate entity shown on dashboard if command is send from the remote controller. I planned to use a global variable (is_forwarded) to check then stop sending if is_forwarded is true! But I could not manage to do so!
Thanks for your attention
Best,
Hello, trying to solve the same issue (but with AUX climate), have you succeeded finally? My case is even worse as AUX is not supported natively and i used heatpumpir platform to send signals to climate:
climate:
- platform: heatpumpir
name: "AUX"
id: birusa_climate
protocol: aux
min_temperature: 16
max_temperature: 32
vertical_default: down
horizontal_default: auto
visual:
min_temperature: 16 °C
max_temperature: 32 °C
temperature_step: 1.0 °C
But in order to forward information from traditional remote, I’m afraid I need to parse RAW data from receiver
I know this post is a bit old, but I hope the air conditioners are still around. Now, there’s a way to replace the Broadlink with an ESP, which is written using ESP Home. Here, I’ve described my approach with an ESP32 NodeMCU: