Open agengr1293 opened 6 years ago
hi @agengr1293, Please can you reformat your question above so that it is easier to read? try wrapping the code with ```
It is difficult to see what issue you have at the moment
Can you also supply a bit more information about your setup, do you have MQTT configured?, do any of the controls show up in HASS? you dont seem to have any automation?
Ok everyone I really could use your help. I tested my entire rig for voltage 3.3v, 5v, and 12v. Everything has power and is hooked up correctly. Double checked my voltage for data and it too requires 5v, which it is feeding. The nodemcu is getting the data packets. There is 12v power at the end of the light strip, so it must be in my config with home assistant or Arduino. Here is RGB lights in RGB.yaml file: te_topic: "bar/shelves" command_topic: "bar/shelves/set" effect: true effect_list:
slider
input_number: animation_speed: name: Animation Speed initial: 150 min: 1 max: 150 step: 10 Here is the Arduino programming: /* .__ .__ _ .. __ . . _ .. ____ . . | \ | \ | | | | | | | | / \ | | | | | | / \ | / | / \ | || | / \ | \ | | | |) | | |) | | | | | | || | / ^ \ | | | | ---| |----| | | | | \ / | / ^ \ ---| |----| | | | | | | | | | _ < | / | | | | | | / /\ \ | | | | | | | | | | | |/| | / /\ \ | | | | | | | | | . | | |_) | | |\ -.|–’ | | | | | / ___ \ | --' | | | |–’ | | | | | / ___ \ | | | | | --' | | |\ | |__/ | |.| / || || // \ / || / || || // \ || || _/ || | Thanks much to @corbanmailloux for providing a great framework for implementing flash/fade with HomeAssistant https://github.com/corbanmailloux/esp-mqtt-rgb-led To use this code you will need the following dependancies: Support for the ESP8266 boards.
include
include
include
include “FastLED.h”
include
include
include
/**** WIFI and MQTT Information (CHANGE THESE FOR YOUR SETUP) *****/ const char ssid = “xxxx”; //type your WIFI information inside the quotes const char password = “xxxx”; const char mqtt_server = “xxxx”; const char mqtt_username = “xxxx”; const char mqtt_password = “xxxx”; const int mqtt_port = 1883; /**** FOR OTA **/
define SENSORNAME “barshelves” //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; /***** MQTT TOPICS (change these topics as you wish) ****/ const char light_state_topic = “bar/shelves”; const char light_set_topic = “bar/shelves/set”; const char on_cmd = “ON”; const char off_cmd = “OFF”; const char effect = “solid”; String effectString = “solid”; String oldeffectString = “solid”; /FOR JSON/ const int BUFFER_SIZE = JSON_OBJECT_SIZE(10);
define MQTT_MAX_PACKET_SIZE 512
/*** FastLED Defintions ****/
define NUM_LEDS 300
define DATA_PIN 5
//#define CLOCK_PIN 5
define CHIPSET WS2811
define COLOR_ORDER BRG
define MILLION 1000000
byte realRed = 0; byte realGreen = 0; byte realBlue = 0; byte red = 255; byte green = 255; byte blue = 255; byte brightness = 255; Any help would be great.