GitHub - cobryan05/ha-color-notify
Hey everyone,
Have you ever tried using an RGB bulb to show alerts in your house, only to realize that managing multiple overlapping events is a complete headache?
Think about this classic scenario:
- You want a blue nightlight when motion is detected after dark.
- You want the same light to turn red when you're on a work call.
- You want it to flash yellow if the garage door is left open.
If you try to write standard Home Assistant automations for this, you quickly end up in helper-variable hell. You have to take snapshots of the previous light state, write messy conditional logic, and guess what happens if a low-priority motion event accidentally overwrites your high-priority work meeting color.
I got tired of fighting that logic, so I built Color Notify. Itâs a custom integration that wraps your existing smart light in a virtual layer and handles all the background queueing, priorities, and state restoring for you.
How it works
Instead of controlling your raw physical light bulb in your automations, you talk to the Color Notify "wrapper" light.
- Alerts are just switches: Every single notification or flash pattern you create shows up in Home Assistant as a standard
switchentity. Want to turn an alert on or off? Just toggle the switch in your automation. - Notification Pools: You can group your alerts into logical pools (like Security, Appliances, or Work). Your lights then subscribe to these pools. This means a single "Garage Door Open" switch can instantly trigger indicator lights all over the house at the same time. Lights can subscribe to individual notifications within pools as well.
- Smart Priorities: You assign a numerical priority to each alert. If a priority
100alert (like an alarm) and a priority10alert (like the laundry being done) are active at the same time, the high-priority one wins. The moment you flip the high-priority switch off, the light automatically drops back down to the next highest alertâor goes back to being a normal light if nothing else is active.
Cool features built-in
- Normal light controls still work: The wrapped entity behaves just like a regular light bulb. Your standard dashboards, schedules, and dimming routines won't break; Color Notify just handles the alert overlays in the background.
- Custom flashing patterns: You aren't stuck with solid colors. You can pass simple JSON strings to make complex animationsâlike flashing red for half a second, dimming, and looping it 5 times.
- Interruption logic:
- Dynamic 'On' Priority: Turning the physical light switch on manually can temporarily override an active background alert so you aren't left sitting in the dark.
- Auto-Cycling: If two alerts have the exact same priority level, the light can automatically cycle back and forth between them on a timer.
- Temporary Peeking: You can let low-priority alerts briefly "peek" through a higher-priority color for a few seconds right when they are triggered, before the light goes back to the main alert.
Quick Tour of the UI
Everything is configured cleanly through the native Home Assistant UI. No manual YAML tweaking required.
1. Wrapping a Light
When you first wrap a physical light, you get to choose how it handles manual overrides and priority ties.
As you can see, it's just quick checkboxes for things like Dynamic 'On' Priority and Auto-cycling.
2. Creating Alerts and Patterns
This is where you build out your notifications inside your Pools, setting your priorities, auto-clear timeouts, and light colors.
If you check out the Pattern field in the screenshot above, you can see how easy it is to write a looping flash using basic colors and delays (e.g.,
{"rgb": [255, 0, 0], "delay": 0.5}).
3. Subscribing Lights to Pools
The final step is just telling your lights which alerts they should care about.
You just check the boxes for the pools or standalone switches that specific light should watch. When an alert switch flips on, all subscribed lights update in perfect sync.
Installation
It's fully compatible with HACS.
- Go to HACS > Integrations, search for Color Notify, and download it.
- Restart Home Assistant.
- Go to Settings > Devices & Services > Add Integration and search for Color Notify.
- Wrap your light, set up a pool, and go delete those massive conditional automations!
Check out the code and the full documentation over on GitHub: GitHub - cobryan05/ha-color-notify
I'd love to hear how you guys are using visual indicators in your setups, or if you've built any cool animation patterns that look great. Let me know if you run into any bugs or have feature ideas!
edit: 2026-05-26: I let the AI make my post more engaging. Hopefully no real content changes ![]()







