@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.
Thank you. I updated the sketch on the dev branch. I assumed that the RF receiver is connected at the same pin as the IR receiver (#define ARILUX_RF_PIN 4 ). When you’ve time, can you try it? Thx.
RX pin is 4 for sure. RF receives OK but only ON & OFF is working. No other buttons do anything. Obviously mqtt is working fine. So positive from a RF receive point of view.
EDIT: Checked my codes again. Typo from my behalf. Will change them now and confirm
Also I notice when power is cut to the unit and it turns on for the first time, it actually comes on. This is good for some people but for places like mine where we get power interruptions daily it seems it’s an issue because you come home to lights on
Edit again. I did notice it reset. Was on Telnet monitoring and telnet stopped, unit came back on full bright default color. I will leave it on and just keep checking. Wasn’t power issue.
My pleasure Also Sam there is a clearly defined model range for these units. After further investigation I now understand the model lineup. It is based on whether it is an IR or RF based controller, and secondly how many leds it supports. RGB, RGBW, or RGBWW. Maybe what you can do in your Github is tell people clearly what models you support because it caught me off guard basically because they all look almost identical.
AL-LC01 - No Controller, RGB, 5-28V
AL-LC02 - No Controller, RGBW, 9-12V
AL-LC03 - iR Controller, RGB, 5-28V
AL-LC04 - iR Controller, RGBW, 9-12V
AL-LC08 - No Controller, RGBWW, 5-28V
AL-LC09 - RF Controller, RGB, 5-28V
AL-LC10 - RF Controller, RGBW, 9-28V
AL-LC11 - RF Controller, RGBWW, 9-28V
EDIT: BTW the link you provided to AliExpress further up was great. When I clicked it the AL-LC03 was on special for $8USD so I bought 2 more. Great value.
I’m getting a lot of random resets with the 1 Arilux I have. Have you seen this problem with yours. Of course it comes back straight away but because I default the unit to OFF when I turn it on, I need to go back into HA and turn it back on again. It comes back at full brightness, but hasn’t updated HA with it’s brightness and HA thinks it’s the value before it crashed.
Just my observations.
EDIT: Looking at my comment above it was resetting even back a while ago.
Thank you for your feedback. It’s strange, I didn’t have problems when I was using it. I’m for 3 months in Australia and I didn’t take my stuffs with; I will look at it when I’ll be back.