At first glance that looks to be 300 leds with one chip per three leds. So on the sketch you’d put 100 not 300. Each three leds is only seen as one led by the nodemcu. Make sense? I actually used one of the effects (forget which one, but the one that “scans” back and forth, on a fairly slow speed) to verify it was the correct number of leds.
totally agree with this. use police all or police one… good test for it
Ah ok right! I changed it to 100 now and indeed lightning is now all over the strip! :).
I ran Police before but didn’t notice it wasn’t correct as I also didn’t really know how the effect should be :).
Thanks all for your help.
If anyone creates some nice mood blob effects (like the hyperion ones) I’m very interested in copying.
Hi All
I’ve had another try with this from recommendations from the previous posts. All seems to be working apart from the effect list. It’s sort of hidden on the pop up card but when you click the card where the list is it’s greyed out and no drop down effects show up.
Any thoughts?
can you post your config?
I have this
light:
- platform: mqtt_json
name: "Porch Strip"
state_topic: "bruh/porch"
command_topic: "bruh/porch/set"
effect: true
effect_list:
- bpm
- candy cane
- confetti
- cyclon rainbow
- dots
- fire
- glitter
- juggle
- lightning
- noise
- police all
- police one
- rainbow
- rainbow with glitter
- ripple
- sinelon
- solid
- twinkle
brightness: true
flash: true
rgb: true
optimistic: false
qos: 0
input_slider:
porch_animation_speed:
name: Porch Animation Speed
initial: 150
min: 1
max: 150
step: 10
And This
- alias: "Porch Animation Speed"
initial_state: True
hide_entity: False
trigger:
- platform: state
entity_id: input_slider.porch_animation_speed
action:
- service: mqtt.publish
data_template:
topic: "bruh/porch/set"
payload: '{"transition":{{ trigger.to_state.state | int }}}'
Cheers
looks the same as mine… Do you have it grouped? mine is like this
patio_LEDs:
name: Patio LEDs
entities:
- light.patio_LEDs
- input_slider.patio_animation_speed
which is then included into
Outside_view:
name: Outside
view: Yes
entities:
- group.patio_LEDs
- group.sensor_garage
- switch.greenhouse
- group.patio
- camera.garage
- switch.pond_switch
Not sure why that would make a difference?
thanks for reply
Got all that in and configured already. One thing i do notice is that the history takes +30seconds to appear on the pop up card too, it is accurate when it does appear.
Is there anything else you could think of?
Cheers
Can anybody help with the above please? I’ve been having another look but can’t see anything obvious
Thanks folks
It could just be that there’s a lot of data in your database so it is slow to load. I’m using HassIO and switched to the MariaDB database and it sped up the loading of data.
Hi thanks for the tip, yes my DB is over 2gb (running on a SSD instalaltion), renamed old DB and started a fresh, history status appears quick now as you expected. However still no effects drop down.
Does anybody know if this could be a limitation of the LED Strips i have bought?? they are the ws2811
thanks, hopefully someone can help me resolve this
what if you remove some of the effects, maybe even try with just 1 listed?
Try adding this to your automations as well:
- alias: "Porch Input Effect"
initial_state: True
hide_entity: False
trigger:
- platform: state
entity_id: input_select.porch_led_effect
action:
- service: mqtt.publish
data_template:
topic: "bruh/porch/set"
payload: '{"effect":{{ trigger.to_state.state | string }}}'
And is this the only platform you have for your light: section?
Because otherwise you just need to add it below your other light: items.
Like I have:
light:
- platform: hyperion
host: 192.xxxxxx
# Optional
port: 19444
- platform: hue
host: 192.xxxxxx
allow_unreachable: true
- platform: mqtt_json
name: "Porch Strip"
state_topic: "bruh/porch"
command_topic: "bruh/porch/set"
effect: true
effect_list:
- bpm
- candy cane
- confetti
- cyclon rainbow
- dots
- fire
- glitter
- juggle
- lightning
- noise
- police all
- police one
- rainbow
- rainbow with glitter
- ripple
- sinelon
- solid
- twinkle
brightness: true
flash: true
rgb: true
optimistic: false
qos: 0
thanks for the info, still a no go
are you using 0.55??
input_select.porch_led_effect
should now be
input_number.porch_led_effect
hi no
still on an old version on my live enviroment .38.3 (was released after bruhs demo of the RGB LED Strip).
I do have a new version on another pi, which i should try it with. Apart from that im at a loss of how to overcome it
Cheers
you should upgrade as his code is newer than the ones in his video…
Ok everyone I really could use your help and I have been having similar problems. 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. I am using 12v 6A Power supply for 5m of 60 led/m. There has to be something in the configuration that isn’t translating. I can see messages in the terminal, but they nothing is happening on my lights at all. They are all black. You guys seem to fix the issues with the above dialog. Man I could use your help here.
Here is my rbg.yaml file:
#lights
light:
- platform: mqtt_json
name: Bar_Shelf_Lights
state_topic: “bar/shelves”
command_topic: “bar/shelves/set”
effect: true
effect_list:- bpm
- candy cane
- confetti
- cyclon rainbow
- dots
- fire
- glitter
- juggle
- lightning
- noise
- police all
- police one
- rainbow
- rainbow with glitter
- ripple
- sinelon
- solid
- twinkle
brightness: true
flash: true
rgb: true
optimistic: false
qos: 0
#slider
input_number:
animation_speed:
name: Animation Speed
initial: 150
min: 1
max: 150
step: 10
Here is my automation file:
- alias: “Animation Speed”
initial_state: True
hide_entity: False
trigger:- platform: state
entity_id: input_number.animation_speed
action: - service: mqtt.publish
data_template:
topic: “bar/shelves/set”
payload: ‘{“transition”:{{ trigger.to_state.state | int }}}’
- platform: state
Here is the Arduino code setup:
#include <ArduinoJson.h>
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
/**** added on 12/1/17 ****/
#define FASTLED_INTERRUPT_RETRY_COUNT 0
#include “FastLED.h”
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
/************ WIFI and MQTT Information (CHANGE THESE FOR YOUR SETUP) *************/
const char ssid = “”; //type your WIFI information inside the quotes
const char password = “”;
const char mqtt_server = “”;
const char mqtt_username = “”;
const char mqtt_password = “”;
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 100
#define DATA_PIN 5
//#define CLOCK_PIN 5
#define CHIPSET WS2811
#define COLOR_ORDER GRB
#define MILLION 1000000
Hi i have a question im using nodemcu, a power supply of 12v with a step down to 5v and conected gnd and vin in my nodemcu. Same power is going to led strips a ws2811 5m 30 leds. I have a jumper going from d5 nodemcu to level shifter and going to led strip. I skipped the part of the vinn to level shifter to 3.3v and gnd as I didnt understand. My led is only powering up, I cant turn off and on and change anything. ive also tested my nodemcu is connecting to mqtt and receiving data ok. Any ideas?
Hi Aris,
I don’t fully understand what you did but perhaps what I wrote here may help you: http://www.puckstar.com/ws2811-ledstrip-controlled-via-wifi-with-home-assistant/
Let me know if it doesn’t.