Hey guys,
A while ago I started playing with Arilux RGB LED controllers for use with Home Assistant and an IR remote. The product is relatively cheap and it’s CE compliant.
I’ve got a similar one without IR.
I never opened it up, but maybe I’m able to add an IR diode to gain the same functionality?
Maybe we could use this to forward other/custom IR codes to hass as an universal receiver…
You didn’t include flash, strobe, fade, smooth functions yet, did you?
I like the ones (smooth strobe green etc.) you find in the MagicHome app…
I think it’s possible to add an IR receiver to the controller, but it will not be well integrated. You probably have the AL-LC01 and it has a free pin (Arilux AL-LC01). To work with this firmware, you need to buy the same IR remote.
Flash, strobe, fade and smooth functions are not yet implemented. I don’t use them, but if I have time these days, I’ll take a look at it.
It’s possible to restore the default firmware only if you possess it. I haven’t found a link to download the original one.
As explained in the README file, it’s a little bit complicated.
Open the module with a cutter and solder wires to RX, TX, VCC, GND and GPIO (or use crocodile clips).
Connect GND, RX to TX (FTDI), TX to RX (FTDI), GPIO0 to a pushbutton, connected to GND.
Connect GND and VCC to a stabilised powering source (if you use the same FTDI as before, the computer could crash). The two GND are connected together.
Download the Arduino IDE, install the support for ESP8266 modules and select Tools, Board, Generic ESP8266 Module.
Download the sketch form the GitHub and upload it.
@vehsen Do have a AL-LC03 with the Flux LED component running? I have some troubles with the Flux LED component regarding Brithness Slider and changeing Colors. Details here:
Good news! I didn’t think about an existing HA component. It’s definitely the easiest and the fastest way to use the Arilux LED controller. Thank you! I waste 1-2 days for nothing […].
I think you should continue your development. Their protocol is crappy to say the least. mqtt is a far better way to control these little devices. I have one and have experienced issues with HA. Without delving into it any deeper I’m not sure where the issue is but you’re half way there. Keep going.
It seems I have a different handheld controller supplied with my unit.
When I pulled the Arilux apart to add your firmware I realized there was only 1 wire connecting the iR receiver to the Airlux and thought how can this possibly work. Then I quickly discovered that it wasn’t an iR receiver but rather an antenna.
A quick sniff around using my RF Gateway and it’s using the Chinese Protocol 1 to send commands. They must of thought what if the Arilux is mounted in a position where iR cannot get to it and made improvements.
Anyway, just an observation. Obviously your software can still work but would have to be re-written for an RF version of the remote if people still want to use the little controller. I may do that. I have never checked if libraries like RCSwitch work on ESP’s. Was so close to implementing but I want control from the handheld as well cause sometimes it’s a pain to get to HA just to change a colour.
EDIT: The remote sends both iR and RF but only RF is received on my controller.
Who would have thought there are so many models of something that essentially looks the same. I just checked with Bang Good. Mine is a AL-LC09. When I ordered it, I just saw a picture and it looked the same so I bought it hahaha. Anyway, do you think you will support RF version with your firmware as well? I can give you all the codes from the controller to save you some time. Let me know.
I can try to support RF before the end of December. I would appreciate if you can give me the codes (following if possible the schematic used below) and the name of the library you’re using. Thx.
Codes all come in as Protocol 1, which seems to be the default Chinese standard that a lot of manufacturers use. I have PIR’s, Door Switches, Door Bells etc that all use Protocol 1. Now whether that’s the name for it officially I dont know, but the library that I have attached calls it Protocol 1.
Also the TOGGLE key just seems to rotate through all the colours. The other keys are self explanatory.