bruhautomation / ESP-MQTT-JSON-Digital-LEDs

(OBSOLETE) ESP8266 MQTT JSON Digital LEDs for Home Assistant
https://youtu.be/9KI36GTgwuQ
Apache License 2.0
512 stars 268 forks source link

Adding ranges and XMas colors #64

Open giddyhup opened 6 years ago

giddyhup commented 6 years ago

A range of LEDs can now be controlled. XMas light effect added (based on Police All).

Example MQTT payloads: { "effect" : "range" , "rangestart" : "5", "rangecount" : "130" } [ LEDs will be turned off, them LEDs 5 though 135 will be turned on (full white)] { "effect" : "addrange" , "rangestart" : "5", "rangecount" : "130" } [ LEDs 5 though 135 will be turned on (full white), other LEDs remain in previous state ] { "effect" : "addrange" , "rangestart" : "5", "rangecount" : "130" } [ LEDs 5 though 135 will be turned off, other LEDs remain in previous state ] { "effect" : "xmas" } [ red chases green ]

Possible future additions: colors/effects apply to range only. End ranges are given in pixel index number.

cooljimy84 commented 6 years ago

I was gonna see if i could do an Christmas light effect like this ! Your awesome !