Skip to content
  • Live
  • Blog
  • Shop
  • Contact
  • About
  • Discord
  • GitHub
  • YouTube
  • Twitch
  • Instagram
CheerLights

CheerLights

We are all connected.

CheerLights on GitHub, Twitch, and Discord. We are all connected.
  • Learn
  • Build
  • Connect
  • Toggle search form

CheerLights in Home Assistant With a Mosquitto MQTT Bridge

Posted on September 7, 2026November 28, 2026 By Hans Scharler No Comments on CheerLights in Home Assistant With a Mosquitto MQTT Bridge

Andrew Jackson, who blogs as CodeChimp, got curious about the CheerLights posts showing up in his Mastodon feed. Two hours later he had his Home Assistant lights following the CheerLights color, and then he wrote up how to do it.

A Home Assistant device page with two CheerLights sensors, Colour reading green and RGB reading #008000.
Photo: Andrew Jackson (CodeChimp), from his blog post

His setup has each new color pushed to Home Assistant instead of polling for it, the same way MQTT keeps several CheerLights displays in sync. A short bridge config tells his own Mosquitto broker to connect to mqtt.cheerlights.com and bring in two topics: cheerlightsRGB for the hex color and cheerlights for the color name. The bridge only receives, so nothing from his broker goes back out to CheerLights. In the Home Assistant UI, he added an MQTT device called CheerLights with an RGB sensor and a Colour sensor. An automation fires when the RGB sensor changes, splits the hex string into red, green, and blue values, and turns on a light in that color. He also puts a CheerLights label on the lights he wants to change, and uses the Spook custom integration to update only the ones that are already on.

There are lots of ways of doing this, but many involve polling, which I wanted to avoid.

Andrew Jackson, Add CheerLights to Home Assistant

The full walkthrough, with the bridge config and the automation, is on his blog.

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Reddit (Opens in new window) Reddit
  • More
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
  • Print (Opens in new window) Print

Related


Discover more from CheerLights

Subscribe to get the latest posts sent to your email.

Projects Tags:Community Spotlight

Post navigation

Previous Post: Flash WLED on an ESP32-C3 and Sync It to CheerLights
Next Post: CheerLights Updates: llms.txt and a Refreshed API Reference

Related Posts

A Pimoroni Presto, a square touchscreen in a black aluminum stand, showing a word clock on a bookshelf. Pimoroni CheerLights Examples: Six Boards, From Presto to Mighty FX Projects
A table lamp with a fabric shade on wooden tripod legs glows red in the corner of a room, on a white desk beside a mini PC and a power strip. CheerLights Home Office Lamp With Home Assistant and n8n Projects
A Pimoroni Unicorn pHAT glowing red on a breadboard, wired with three jumper wires to a Raspberry Pi Pico W. CheerLights in Linux Format: A Pico W Tutorial by Les Pounder Projects

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Get new CheerLights posts by email

Tutorials, new builds, and announcements, one email per post.

  • CheerLights for Home Assistant: Your Lights Follow the Color Everyone Shares
  • CheerLights Terminal 0.2: Watch the Color Change Live in Your Terminal
  • CheerLights on an omg.lol Profile Card: A Display With No Hardware
  • CheerLights on Bluesky: Post a Color and Lights Around the World Change
  • Pimoroni CheerLights Examples: Six Boards, From Presto to Mighty FX

Copyright © 2026 CheerLights.

Powered by PressBook Grid Blogs theme

Loading Comments...