letscontrolit / ESPEasy

Easy MultiSensor device based on ESP8266/ESP32
http://www.espeasy.com
Other
3.23k stars 2.2k forks source link

Converting alternative FW for Arilux led controller to plugin #469

Open Grovkillen opened 6 years ago

Grovkillen commented 6 years ago

I've talked to the developer behind the great FW for Arilux to join the ESP Easy community but he has no more time to give. His suggestion (also implied by myself) is that we try to merge his code into a plugin.

What do you all think?

The project page: https://github.com/mertenats/Arilux_AL-LC0X

My short request: https://github.com/mertenats/Arilux_AL-LC0X/issues/29#issuecomment-321041597

MatzeJoerling commented 6 years ago

+1 I would like to see more "Light" stuff in ESPEasy. Clock, Candle and Basic Neopixel is not really much. Arilux looks really hard to merge, what about https://github.com/toblum/McLighting for a starting point, I asked the author of McLighting - he aslo has no time to merge his project into ESPeasy.

Someone has to volunteer...

regards Matze

papperone commented 6 years ago

McLightining is heavily based on WS2812FX library, I'll take directly that library to a new plugin but it will be for 2.1 milestone... (does not seems too complex to implement!) About Arilux I wish I could help but I need to have one controller for testing which I don't have right now...

nigelbe commented 6 years ago

I would like to see a "user note" field where the user can put a short note about the particular node maybe up to 20 or 30 characters.

Grovkillen commented 6 years ago

@papperone I have a controller and they are pretty nicely built. I wish I had two, to send you one :)

papperone commented 6 years ago

thanks @Grovkillen but the issue is not only the controller but the fact that there are at least 7 or 8 versions and as well I would need proper LED Strip to test all functions (5ch up to "RGB+WW" I guess)... for simple controllers/sensors I don't mind to order one from China and wait but in this case I think the Arilux are quite complex in terms of possible combinations of controllers and led strips... let's tackle first the WS2812FX wuich already has lots of possibilities!

PS: the Arilux is a standard RGB+WW similar to H801, so can't same plugin be used for both?

@nigelbe I think you wrote in the wrong thread or I can't understand your comment :)

Grovkillen commented 6 years ago

Yeah I hear you @papperone , I got the simple RGB one (found here). But they have multiple versions. Maybe just focusing on one would do it but the WS2812FX is a good candidate too I guess.

papperone commented 6 years ago

still I think AriluX devices can be controlled by the H801 plugin, as they do the same job just maybe using different GPIOs... what do you think? talking about hardware, while AriluX/H801 are LED drivers for non-addressable RGB/WW strips, WS2812FX library is meant to manage WS2812 addressable strips which requires no extra driver/hardware; so conceptually they are not similar at all.

Grovkillen commented 6 years ago

I will try the H801 plugin as soon as possible. Will investigate it more in detail.

tablatronix commented 6 years ago

Why does this need a special library its just an esp with gpio out to 4 mosfets for rgbw pwm control. Are there different models being proposed?

Grovkillen commented 6 years ago

The deal is that we want (I want) to use the possibility to control it using fairly extensive JSON messages as it is used with the FW I linked to in my first post. I might try to tinker with the board I have (the simplest RGB controller) and see what I find.

tablatronix commented 6 years ago

I just ordered one,

Looking at the lib, this should not be to hard to convert into a plugin, the arilux stuff is abstracted out from the library stuff in the ino, obviously you would not use any of the mqtt, telnet, json stuff from it, but use the espeasy way of doing that stuff, syslog, routing frontend, json will have to be rewritten to use the native methods, and hook into espeasy subscriptions or however you intend to control this.

You might even be able to keep the rf, ir control , but I think those would be better off hooked into espeasy as seperate devices.

Although you be better off approaching this as a platform for espeasy also since it needs to be its own board, since it has hardwired gpios to stuff.

Grovkillen commented 6 years ago

Yes that was my thought as well (when I first posted it). Thanks for making me aware of this again! :+1: