Joolee / nl.joolee.homey.espeasy

ESP Easy is a firmware for ESP8266 boards like the WeMos D1 and NodeMCU. It allows you to quickly make custom devices with switches, sensors and other hardware. This app adds support to Homey for connecting with ESP Easy units.
GNU General Public License v3.0
6 stars 5 forks source link

[Request] Neopixel support #24

Open MrBlue90 opened 3 years ago

MrBlue90 commented 3 years ago

Hi,

I would like to see support for the NeoPixel LEDs. https://www.letscontrolit.com/forum/viewtopic.php?t=3221 https://www.adafruit.com/category/168

Thanks

Joolee commented 3 years ago

I can probably add support. Can you send me your /json output and a few examples of working http commands?

I use wled myself for my led strips but there's no app for that as well (yet).

MrBlue90 commented 3 years ago

Thanks @Joolee.

JSON Output (assume this is sufficient):

{ "DataAcquisition": [ {"Controller":1, "IDX":0, "Enabled":"false" }, {"Controller":2, "IDX":0, "Enabled":"false" }, {"Controller":3, "IDX":0, "Enabled":"false" }], "TaskInterval":60, "Type":"Output - NeoPixel (Basic)", "TaskName":"Neopixel", "TaskDeviceNumber":38, "TaskEnabled":"true", "TaskNumber":11 },

HTTP commands:

http://[IP]/control?cmd= NeoPixel,,<red 0-255>,<green 0-255>,<blue 0-255> NeoPixelAll,<red 0-255>,<green 0-255>,<blue 0-255> NeoPixelLine,,,<red 0-255>,<green 0-255>,<blue 0-255> NeoPixelHSV,,<Hue 0-360>,<Saturation 0-100>,<Brightness 0-100> NeoPixelAllHSV,<Hue 0-360>,<Saturation 0-100>,<Brightness 0-100> NeoPixelLineHSV,,,<Hue 0-360>,<Saturation 0-100>,<Brightness 0-100>

The HSV commands is something I'm not 100% sure about, but this is how I got my setup working with Homey since virtual device color picker only provides HSV data.

Haven't found specific commands for RGBW, but since you can config RGBW in the Neopixel device settings, I assume this should be working as well.

Thanks!

Joolee commented 3 years ago

That should be enough to get me started, thanks :)