ESP-MQTT-JSON-Digital-LEDs icon indicating copy to clipboard operation
ESP-MQTT-JSON-Digital-LEDs copied to clipboard

Add some Lighteffects :)

Open thundergreen opened this issue 7 years ago • 20 comments

Hi Mate I finally got it running. Yeah awesome!! My wife wow effect was just amazing! Thanks mate!

after googleling a bit i found that the author of some lighteffects u used also made some oter effects

https://github.com/atuline/FastLED-Demos

Would u mind to integrate them? I didn't really understand the code.

Would be awesome !!!

THanks for this more than awesome work!!!

Greeting from a happy happy man and also a happy woman from France :) 👍

thundergreen avatar Jun 17 '17 21:06 thundergreen

i am working on it will post my code as soon as i finish probably this week :)

encor50 avatar Oct 10 '17 17:10 encor50

Great news! Thanks! In the meanwhile. Did u already see this project:

https://github.com/doctormord/Responsive_LED_Control

thundergreen avatar Oct 11 '17 09:10 thundergreen

here is the code for the esp https://pastebin.com/RMPasRAU and here is the added effects https://pastebin.com/ZLmpYK87 im still working on the rest :) 💯

encor50 avatar Oct 11 '17 14:10 encor50

ok so where is the code WITH new added effects??

KodiMkd avatar Oct 12 '17 00:10 KodiMkd

There is 2 links you have to add these effects to the brug code and the esp code just upload jt to your esp ..

encor50 avatar Oct 12 '17 09:10 encor50

PLease,please lead the blind man. Which code goes where

KodiMkd avatar Oct 12 '17 14:10 KodiMkd

HERE IS THE CODE FOR THE ESP https://pastebin.com/RMPasRAU AND ADD THESE TO YOUR HOME ASSISTANT CONFIG FILE IN ODDITION TO THE ONES FROM BRUH AUTOMATION https://pastebin.com/ZLmpYK87

encor50 avatar Oct 12 '17 14:10 encor50

So I just remove the whole old code and add the new one from your file or I'm just adding stuff from the new code into the old one

KodiMkd avatar Oct 12 '17 15:10 KodiMkd

On your ha config file you have the some effects add the missing ones the your old code and the esp code just use arduino ide and upload it ofc fill your wifi settings in it

encor50 avatar Oct 12 '17 15:10 encor50

Not that i understood your last comment... I just add the "new effects" in my HA config.yaml and esp file just tree place the whole code with your code. Is this corect?

KodiMkd avatar Oct 12 '17 15:10 KodiMkd

yes add the extra effect to your config.yaml and on your esp8266 (nodemcu) upload this https://pastebin.com/RMPasRAU and dont forget to fill your wifi settings :

const char* ssid = "YourSSID"; //type your WIFI information inside the quotes const char* password = "YourWIFIpassword"; const char* mqtt_server = "your.MQTT.server.ip"; const char* mqtt_username = "yourMQTTusername"; const char* mqtt_password = "yourMQTTpassword"; const int mqtt_port = 1883;

/**************************** FOR OTA **************************************************/ #define SENSORNAME "porch" //change this to whatever you want to call your device #define OTApassword "yourOTApassword" //the password you will need to enter to upload remotely via the ArduinoIDE int OTAport = 8266;

encor50 avatar Oct 12 '17 16:10 encor50

i got 1 strip (planing to add 2 more) so thats 300 LEDs so far i discovered : inoise8mover-only one side lights easing-doesn't go even half a strip dotbeat-light on both sides but nothing in the middle blur -only one side lights most of effects kinda slugish.. animations speed is fastest

can you come up with solution?

KodiMkd avatar Oct 12 '17 23:10 KodiMkd

update ! i added 9 more effects codes are on the same links https://pastebin.com/RMPasRAU https://pastebin.com/ZLmpYK87

encor50 avatar Oct 15 '17 18:10 encor50

Man this stuff makes sense to me one minute and loses me the next! I thought Hey it should be simple to change the candy cane to blue (matching my Christmas tree)... ive spent the last 30 minutes reading and getting more lost!

sisensee avatar Oct 16 '17 01:10 sisensee

Guys im not a programmer i also dont know what i am doing :) i get lost all the time but adding these codes was easy its just add lines to this code from other codes some codes didnt work meany of them has lines in commen and meany i still did not yet because its not easy :)

encor50 avatar Oct 16 '17 09:10 encor50

That's fine and we don't complain or critique. We are grateful for what you are doing and just letting you know that some of the effects don't work. When/if you can ,check them out,if not -no problem. Not rush or obligation. Thank you so far i appreciate.

KodiMkd avatar Oct 16 '17 11:10 KodiMkd

@sisensee to change the colors search this line: setupStripedPalette( CRGB::Red, CRGB::Red, CRGB::White, CRGB::White); then change it to your needs like: setupStripedPalette( CRGB::Blue, CRGB::Blue, CRGB::White, CRGB::White);

1337hium avatar Oct 20 '17 20:10 1337hium

Hi everyone Thanks for this code. Need somme help, I’m really really novice, I’ve done this project all things run proprelly but, I wouldlike to made an automation witch

BABYFACEPI avatar Dec 04 '17 07:12 BABYFACEPI

Hi everyone Thanks for this code. Need somme help, I’m really really novice, I’ve done this project all things run proprelly but, I wouldlike to made an automation witch Will change the light effect every minute for exemple. Can someone help me with this please...

BABYFACEPI avatar Dec 04 '17 07:12 BABYFACEPI

the code from @encor50 works. i believe it even has what @BABYFACEPI is looking for (loop between effects)

lance36 avatar Jan 02 '18 17:01 lance36