Control MaxxAir Fan with ESPHome and IR Transmitter

ok. but what i do notunderstand is…
if its working its working. that means i can send commands and the maxxair receives them every time. next day (or few hours later) nothing works. even if i send the same command 100 times. there is not one time that it will work.
i installed the esp with the transmitter directly in front of the ir light into the frame of the maxxair, and i put the ir light from outside of the case of the maxxair into the frame of the maxxair (where i also put the esp). so there is no sunlight and its really really close to each other. maybe there are some other LEDs, i dont know. i have to try to put them outside where i can see whats gonna happen. but no time for that now. even if it really sucks to stand up to control the maxxair at the moment :smiley:

@Karosm what transistor or what transmitter should i use to get good results?

Difficult to debug, too many odds… At least control with your phone camera that you really are transmitting something.
For transmitter, there are modules with transistor circuit, but 95% you find “on amazon” are just led and resistor.
To build one you just need common npn transistor(like bc337 or bc547) and two resistors.

@Tidle could you share this button code too please?

Just tried these codes with the “Mini Infrared Emitter & Receiver Unit” from M5Stack. Seems to work reliably from a few meters.

But I have a problem capturing codes - “my” esphome outputs hex capture codes that don’t look like the ones in the post and do not work, even after converting to decimal or prefixing with 0x.

[21:50:56][I][remote.pronto:231]: Received Pronto: data=
[21:50:56][I][remote.pronto:233]: 0000 006D 0025 0000 003D 0021 001F 0041 001E 0021 001F 0041 001D 0022 001E 0022 003D 0022 001D 0061 00FD 0061 001D 00E0 001F 0041 00DC 0022 001E 0041 001D 00C1 001E 0062 00BC 0022 003D 0041 001E 00A2 001D 0081 009C 0022 005C 0041 
[21:50:56][I][remote.pronto:233]: 005D 0041 003D 0081 011C 0041 003D 0022 001D 0022 007D 0042 003E 0022 007C 0022 001D 0042 001E 013F 001D 0043 005D 0022 003D 0042 005C 0022 001E 0022 003D 0181 

Can you tell me how you captured your codes? My remote has a few more that would be nice to capture also. Anyway, this post got me 90% to what I need. Thanks!

I always start with raw capture, usually using arduino sketch.
From raw code you can analyze quality of signal .
dump: raw

Very nice project, it’s going very well for me :+1:t4:

Would it be possible to add a button for Lucke Open/Close without the fan running like the original? Greetings