Comments (4)
Hi @pushscooter,
Nope, everything you need to run this code is in the sample HA configuration in this repo. There was a switch from the MQTT Light component to MQTT JSON Light which is probably what is confusing you. The configuration for the MQTT JSON light is much simpler and involves sending all the commands together in the same string which the NodeMCU can parse and utilize.
The effect dropdown will show up in the card for the light after you turn on the toggle.
Cheers,
Ben
from esp-mqtt-json-digital-leds.
"The The effect dropdown will show up in the card for the light after you turn on the toggle. "
Got it... kind of. Thanks soooo much @bruhautomation for your help. I set up some groups and a card for this LED strip via your awesome videos, but the effect dropdown still is not showing up.
QUESTION:
Is there a difference between setting up a toggle and setting up a switch. If so, can you please specifically show me the lines I should add to my YAML to add a toggle to access the lights. I have been looking everywhere and can't find it. Just info about switches. And my switch doesn't turn on my LEDs, or offer color selection, or the effects list.
Here is my YAML file and what my HA pages look like:
Thanks again for everything. I know I am sooooo close and so excited to finally make this happen!!
`homeassistant:
mqtt:
broker: m13.cloudmqtt.com
port: 15366
client_id: home-assistant-1
username:
password:
protocol: 3.1
light:
- platform: mqtt_json
name: "Adressable LEDs"
state_topic: "airstream/addressable_leds"
command_topic: "airstream/addressable_leds/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
switch:
- platform: mqtt
name: "on off"
command_topic: "airstream/addressable_leds/switch/set"
input_slider:
addressable_leds_animation_speed:
name: Adressable LEDs Animation Speed
initial: 150
min: 1
max: 150
step: 10
automation:
- alias: "Adressable LEDs Animation Speed"
initial_state: True
hide_entity: False
trigger:- platform: state
entity_id: input_slider.addressable_leds_animation_speed
action: - service: mqtt.publish
data_template:
topic: "airstream/addressable_leds/set"
payload: '{"transition":{{ trigger.to_state.state | int }}}'
- platform: state
group:
airstream:
name: addressable leds
icon: mdi:truck-trailer
view: yes
entities:
- group.addressable_leds
environment_view:
name: weather
icon: mdi:weather-windy-variant
view: yes
entities:
- group.environment
addressable leds:
name: addressable leds
entities:
- switch.on_off
- input_slider.addressable_leds_animation_speed
environment:
name: environment
entities:
- sensor.yr_symbol
- sun.sun
`
from esp-mqtt-json-digital-leds.
got it figured out finally. So relieved!!!
The problem was trying to do this from my desktop
from esp-mqtt-json-digital-leds.
Sweet! Glad you got it working. Sorry again for missing your earlier message. The pings I get from GitHub often miss my inbox so I don't see them until I check back. Cheers!
from esp-mqtt-json-digital-leds.
Related Issues (20)
- OTA not working HOT 1
- ArduinoJSON Library has breaking changes. HOT 4
- inconsistent colors HOT 2
- Compiling error 'StaticJsonBuffer' was not declared in this scope HOT 2
- LEDs will not light up with this script. MQTT works, Circuit tested with another script and works HOT 3
- Lights turning off/freezing (already tried encor50's fix).
- Last Will Message - Availability HOT 5
- Problem with Home Assistant HOT 2
- Animation Freezes upon internet/wifi disconnection HOT 1
- MQTT_MAX_PACKET_SIZE in PubSubClient 2.7.0
- Only Lightning/Dots effects not working properly
- Outdated codes and not getting the leds to turn on
- Home Assistant Integration HOT 1
- ESP8266 realted
- Decrease brightness when switching the effect to solid
- how do i get rid of this
- Cyclon rainbow crashing MQTT HOT 11
- Incorrect colors HOT 1
- Animation speed not working HOT 3
- Need help, strip not lighting up
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-mqtt-json-digital-leds.