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.
Type Name Latest commit message Commit time
Failed to load latest commit information.

MQTT RGB Light Strips

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

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

Rainbow Lights


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.



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.