Giter VIP home page Giter VIP logo

Comments (4)

bruhautomation avatar bruhautomation commented on May 23, 2024

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.

night-surfer avatar night-surfer commented on May 23, 2024

"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!!

myhahome
myentities

`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 }}}'

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.

night-surfer avatar night-surfer commented on May 23, 2024

got it figured out finally. So relieved!!!
The problem was trying to do this from my desktop

from esp-mqtt-json-digital-leds.

bruhautomation avatar bruhautomation commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.