Skip to content
MQTT Enabled RGB Light Strips controlled by Home Assistant
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
homeassistant
images
schematic
src
.gitignore
LICENSE
README.md
platformio.ini

README.md

MQTT RGB Light Strips

A WiFi Connected RGB LED Strip using MQTT. Read the full blog post at selfhostedhome.com.

A second blogpost details the effects for syncing up the LEDs to music. This is also available at selfhostedhome.com.

Rainbow Lights

Hardware

Please refer to the blog post for more information. Essentially this is using WS2811 LED strips controlled by a NodeMCU. For music based effects I use the MSGEQ7 for audio processing..

Check out the schematic/ folder for more information.

Software

Embedded

This repository uses PlatformIO for building the embedded software for the NodeMCU. Check out their installation docs for more information on how to get started with PlatformIO.

The code here supports:

  • Control over MQTT topics
  • Color Fill
  • Synchronize LEDs to Music
  • Different Effects
    • rainbow
    • rainbow_with_glitter
    • confetti
    • sinelon
    • bpm
    • juggle
    • candycane
    • party_colors
    • rotate_party_colors
  • Music Based Effects
    • music_rainbow
    • music_rgb
    • music_rotate_party_colors
    • music_cycle_
  • Over the Air Updates

To get started rename the src/config_template.h file to src/config.h. Afterwards update the MQTT topics, WiFi information and LED strip information to match your setup.

Home Assistant

Refer to the Home Assistant yaml snippet in the homeassistant directory for how to set up MQTT lights in Home Assistant.

You can’t perform that action at this time.