I am able to get CB3S working with IR commands successfully. I am new to esphome and home assistant, I am learning a lot from this community. I have 5 x Tuya based IR blasters for controlling my Ceiling Fans which works with IR remotes (2 different models from 2 different vendors), LG TV and STB. I wanted to make the IR blasters cloud free, checking about any possible solution for long time but I could not do it since they are not using esp82xx. I was skeptical about chip replacement since I am still trying to master the skill of good soldering myself. Finally got to know about Libretiny and its integrations with esphome/home assistant. After knowing about it, I was able to flash the IR blasters successfully. Below given are my chip model and Firmware version before flashing. Sharing here which may be useful to someone else.
In those IR blasters 2 of them running with WE3S which required some soldering to connect the headers. This helped me to put the chips in flashing mode to push esphome in them. This chip model runs good with esp01_1m as the board post flashing.
Model: WB3S - SW Version 1.0.4 (No chip replacement or soldering required). We don’t even have to open the factory case that it comes with.
@cikaybe Assuming your IR Blaster works and you flashed the YAML, I believe all you need to do is to start the log and then point your remote and press the button you want to replicate. The codes received will appear in the log. Without trying it again I can’t recall the exact details but I believe it gives you several different code options. If I recall correctly I picked NEC or Pronto, but I am not sure. I can look into it if you can’t figure it out.
That’s cool, I like that! I forget where I saw it or read it not long ago but, it was the same topic IR range and needing a clear line of sight and the shortcomings of IR. Now this probably wouldn’t be practical for everywhere but this person made a similar device as yours but instead of IR transmitters they used an RF transmitter. So, IR signals would come in and then they’d be converted, then transmitted long range, through walls, up/down different story’s of a house, etc. and then whichever RF receiver that code went to and triggered a sensor state change, it would then be converted back to the original IR code (from upstairs) and then transmitted via IR to the desired device in the house. I thought that was pretty clever. I get that you could do that through HA automations or other possibilities but, I like keeping automations on the esp’s whenever possible and therefore very reliable.
Interesting about the RF relay, I was actually thinking about adding that to this unit but I already have a bunch of RF boards sitting around and just used those in the end.
Definitely easy for me to add in a future version though
I dont know how to put this nicely but, if i was an IR remote, id hit it! I meant to ask about the case in my initial rambling post and forgot… Im curios though. It looks like its meant to sit flat like in the photos. Does pointing all the led’s vertical effect the range at all? As much as I do like it, I think if there were only minimal negative effects from the leds on the sides instead, i personally would like that more. Not that my opinion matters here, i’m just saying for the sake of feedback.
Something else im curious about. What kind of testing did you do when planning this? Did you find a meaningful difference between the final number of leds and say half as many? I guess im just wondering how you landed on that number.
I actually went for vertical because it’s the same way I had my RM4 mounted/pointing… But so far in testing I’ve pointed it in all directions without missing a signal.
I was initially planning to bend the LEDs over and point them at different angles until it didn’t seem necessary in the tests
Planning is over-rated I picked 9 LEDs half at random and half based on current/voltage drop calculations
It still looks good though. I havnt spent much time looking into it, but why does it seem like the IR leds that come in something like an Arduino/esp transmitter/receiver kit are nowhere near as good as your common TV remotes?
Having done a little bit of looking into it, they basically all use very cheap LEDs. Common TV remotes always have at least one (sometimes 2) decent IR LEDs as well as some sort of cone or lens to focus the signal more
Just got this one working… Code’s there in case it might help at all.
Anyone got any good ideas for improving it?
Theres a button that I havent used, and the LEDs only showing status in case of error…
Thanks.
Light’s flashing with each command sent now. Probably the best use there is for the LED tbh
Added a bunch more buttons and icons for them too.
I like the idea of tracking if the TVs on or off, but the TVs own remote is used as well. I guess that’d mean it’d often end up wrong?
I like the idea of using a multidimensional array to hold the button details and their remote codes, rather than a long list of mixed code/data, but I’m still getting that working. It’d mean adding more buttons/codes would just be adding them to a ‘table’ rather than copy/pasting and then changing chunks of code for each.
It might just be complicating it unneccessarily though.
Some way to automate capturing codes would be good, but I’m not sure how to start with that yet. At least for me, capturing them is still hit-and-miss enough that it might have to stay a manual process.
I’ve settled on capturing a buttons codes maybe 5-10 times, then creating buttons for each and trying them out multiple times. The one that performs most reliably and/or fastest is kept.
There might be a way to automate that, but it’s beyond me at the moment… Learning a lot right now though, so maybe
I haven’t been able to find any existing examples of doing something like that, anyone aware of anything similar pls?
I haven’t done this myself but it might work out well to use yaml anchors for duplicating command sections actually… My templates are quite long so I should play with that
Here’s what I do as far as a better way to learn commands - needs more customisation for the various protocols though, I just use pronto and sony here.
You switch the learn command switch on, fire an IR command, then the switch will turn off and you get the data in the sensor.