Aqara Advanced Lighting custom integration

Since my last post the integration is now up to v0.11.0, new features include:

  • Segment Zone Naming - Assign custom names to segment zones on each device with a visual grid editor for intuitive zone configuration
  • Device triggers for HA automations - Aqara lighting devices now appear in the Home Assistant automation UI device trigger selector, enabling native trigger-based automations of features
  • Interactive Visual Segment Selection for segment patterns and sequences
  • XY Color Picker Modal - with color history swatches
  • Dynamic SVG preset preview thumbnails - Presets now display dynamically generated SVG thumbnail previews showing the actual color pattern
  • Advanced Gradient Creation - Interpolation mode selector, mirroring and wave easing
  • Per-user preferences with server-side storage - User preferences are stored on the server, persisting across browsers and devices
  • REST API Trigger Endpoint- Trigger presets from external systems such as Node-RED or iOS shortcuts
  • Multiple Zigbee2MQTT Instance Support
  • User Preset Backup and Restore

Many more features and improvements have also been implemented.

That’s crazy awesome!
Actually I had no idea my m1T has addressable led strip, now I know!!!
Thanks man!

1 Like

v0.13.0 of Aqara Advance Lighting is out now, new features since my last post include full support for ZHA:

ZHA Backend Support

Full ZHA integration alongside Zigbee2MQTT

Use Aqara Advanced Lighting features through the ZHA integration without requiring Zigbee2MQTT

  • Custom zigpy quirks for each supported device type (T2 bulbs, T1M, T1 Strip)
  • Direct Zigbee cluster attribute writes for effects, segment patterns, and segment sequences

Dynamic Scenes Editor

Aimed primarily at T2 bulbs, create color transitions that work with any RGB light entity including non-Aqara devices

  • Up to 8 colors with XY color pickers and per-color brightness control (1-100%)
  • Image Color Extractor
    • Upload or link an image to automatically extract a color palette
    • Extracted colors populate directly into the dynamic scene editor
  • Three distribution modes
    • Shuffle and rotate - Each light gets a different color, then colors rotate smoothly through all lights along the color wheel
    • Synchronized - All lights transition through the same colors together
    • Random - Each light picks random colors from the palette
  • Transition stagger (0-10 seconds) to create wave effects across lights
  • Works with any RGB light entity, not limited to Aqara devices

58 built-in dynamic scene presets - Nature themes, relaxation themes, vibrant & cosmic, seasonal, and many more

Device Conditions

8 device conditions for automations - Check current state of lights in automation conditions

Active Presets Monitoring

Running presets display - Real-time monitoring of all active operations

T1 Strip Audio Sync

Frontend controls for T1 Strip music synchronization mode

  • Audio sync toggle, sensitivity, and effect controls in the panel
  • 2 device triggers: music sync enabled, music sync disabled (with sensitivity and audio effect in event data)
  • 1 device condition: music sync is active

Plus numerous other feature, improvements and bug fixes. More details in the release page.

First off: This is a great addition!

Now, can anyone with a T1 LED Strip confirm that the dynamic scenes don’t transition between colors and instead “jump” from one to the other? I think its an issue with the strip rather than this integration but want to know if others see the same. Thanks

Yes, they will that’s a hardware limitation of the T1 Strip unfortunately, it doesn’t support hardware colour transitions, and its brightness transitions are rather jerky too.

v0.13.1-beta now includes software-interpolated transitions for T1-family devices in CCT sequences and dynamic scenes.

That’s great! Thanks for adding a workaround quickly

1 Like

Great work, thanks! T1 strip with ZHA here.
Now I can set the correct length for my T1 strip and the RGB-coloured scenes are now also working on the extension!
I was hoping for smooth brightness transition, but from a previous post I gather that’s a hardware thing with this strip.

Thanks. Yeah it seems to be a firmware limitation with the T1 Strip, even the Aqara Home app doesn’t do smooth colour transitions outside of effects. The device ignores transition commands and I haven’t been able to find a manufacturer specific custom attribute that can do them. I could increase the fire rate of the software transitions but it risks flooding the Zigbee network and they’ll never be truly smooth.

1 Like

New release: v1.1.0

What’s New

Version 1.1.0 adds solar and schedule-based adaptive circadian CCT sequences, capability-aware light adaptation for any Home Assistant light, and a new more comprehensive override detection system.

Circadian Adaptive CCT Sequences

  • Schedule steps use fixed times (12:00) or sun-relative times (sunrise+30, sunset-60)
  • Solar timeline maps elevation to time using sinusoidal sun trajectory with real sunrise/sunset positions
  • Automatic interpolation between steps on a 24-hour cycle
  • Dual-track timeline preview showing color temperature and brightness with step markers

Software-Interpolated Transitions

  • Cubic easing (ease_in_out_cubic) for natural-looking transitions
  • Adaptive interval scaling: shorter intervals for quick transitions, longer for extended sequences

Improved support for non-Aqara lights in dynamic scenes and CCT sequences

  • Software transition opt-in for non-Aqara lights via device config panel
  • Capability profiles classify lights as full-color, CCT-only, brightness-only, or on/off-only
  • Service calls adapted at runtime using XY-to-CCT conversion and color temp clamping

Context-based override detection with per-attribute control for solar and schedule sequences

  • Detects overrides from service call data before state changes arrive
  • Context-only detection replaces grace window system
  • Per-attribute change detection with hardware drift tolerance
  • Non-HA drift detection for changes made outside Home Assistant
  • Bare turn-on adaptation fills unspecified attributes with solar/schedule values
  • Per-attribute pause indicators in frontend

Improvements

  • Proactive adaptation: immediate value application on resume and turn-on
  • Per-preset auto-resume delay
  • Turn off light end behavior for dynamic scenes
  • Skip first step in loop for CCT sequences
  • Added Power Nap CCT sequence preset
  • Selective user preset exports

Bug Fixes

  • Loop N Times count field in Scenes tab
  • Signed URL preset export with selective filtering
  • Preset export using signed URL WebSocket command
  • Auth errors on API calls
  • Active presets panel not updating after activation
  • last-half, first-third, last-third keywords to parse_segment_range
  • Segment patterns not restoring off state when stopped
  • Color restore when activating from an off state
  • CCT sequence not affecting T1 Strips in RGB mode
  • CCT editor loop count field not showing when loop mode is count
  • Zone selector event leak
  • start_dynamic_scene service not finding built-in presets
  • loop_mode value mismatch between frontend editors and backend schema

Hi, thank you for this integration. Recently I’ve switched my T1 LED strip from aqara m2 hub to HA via ZHA to use this integration.
First versions were quite bugy, now I am using the latest 1.1.0 version which seems to be much better.
I would like to create some segment sequence but struggling to set any white color (color temperature), there are only RGB.
Is it even possible to do so?

Thanks, the T1 Strip doesn’t support segment addressing on the CCT LEDs, only the RGB LEDs, it’s a hardware limitation. I guess I could expand the colour picker to make RGB versions of CCT temperatures, I’ll put it on the todo list. In the mean time you could use a tool like this to make conversions and enter the RGB values into the text input fields.

I’ve added a color temp slider to the picker modal. There should hopefully be a new beta release with it in by the weekend.

1 Like

Thanks. It’s a pity that it doesn’t support also dedicated white LEDs for segments which is my main color preset. I wanted to created something like 7 minutes timer so each minute 1 segment would change the color but the rest of the segments stay on the same white color.

I was trying to use the RGB values field and I am not sure if it is bug but when I want to manualy put e.g. these numbers 255 167 88, 255 is OK, 167 will automatically change to 156 and 88 change to 89. Then clicking on the arrows for B color to adjust it, it changes the number for G colors as well at the same time :slight_smile:

And one more thing: there is e.g. a Dash effect. Is it possible to customize it? Like change the direction? I also tried to create such effect via segments but it is so laggy and not so fluent.

I’ll have a look at the numbers. In regard to the dash effect, the effect types run on a hardware level, you can only change the colours, speed and brightness, altering the direction or other things is not possible.

Hi, I have a T1 led strip connected via ZHA. All of the effects work perfectly from the frontend panel of this integration. However, the standard entity card only shows the RGB and temperature pickers but not the effects drop down:

I thought this integration exposed the built in light effects to populate the effects drop down? I’ve checked the logs but I couldn’t see any error messages. Please let me know if I have misunderstood or missed any troubleshooting steps.

Hi, I’ve updated the ZHA quirks to expose more effect attributes for native HA control, but it doesn’t seem possible to get the effect type list into the native HA light control card when using manufacturer specific attributes in ZHA quirks, it being a limitation of how ZHA builds light entities. If you want the effects to appear there you’ll have to switch to Z2M. The expanded attributes will be in the next beta release which should be out towards the end of the week.

Thanks so much for the quick response! Ok, that’s an annoying limitation of ZHA, I appreciate the explanation. I guess I will start looking into switching to Z2M.

1 Like

Be aware though that still only effect type can be included in the standard HA light entity card, defining effect colours and such from there just isn’t possible.

Version 1.2.0 of Aqara Advanced Lighting is now out, and introduces audio-reactive lighting for dynamic scenes, a Lovelace preset favorites card, the ability to hide build-in presets, and a major codebase refactor for maintainability. It also adds CCT slider support in the color picker, allows CCT-only lights in dynamic scenes, and selected Favorite lights now persist across reloads and devices.

Audio-Reactive Lighting

Dynamic scene changes can now be synced to music through an ESPHome audio sensor

This new feature works in tandem with cheap off-the-shelf ESPHome devices flashed with a custom firmware that analyses environmental sound and outputs a variety of sensors such as beat detection and amplitude to Home Assistant, which this new feature then translates into music reactive dynamic scenes. It can work with any pre-existing dynamic scene preset by overriding the transition and hold time settings.

Initial firmware builds for 4 cheap off-the-shelf ESP32 devices are included, the M5Stack Atom Echo ($13/£13), M5Stack Atom Echo S3R ($15/£15), Waveshare ESP32-S3 Audio Board ($18/£18), and M5StickC Plus2 ($20/£20). These can be flashed with the custom firmware using a simple, no specialist ESP32 knowledge is needed. The firmware can also be adapted to any ESP32 device with a microphone.

  • Audio-reactive lighting mode with ESP32-based on-device audio analysis
  • New ESPHome sensor integration
  • Responsive audio overrides
  • On-device audio mode opt-in for T1 Strip non-Aqara devices with built-in music sync functions
  • 12 new audio-reactive presets

Preset Favorites Lovelace Card

A new dashboard card for quick access to your favorite presets

  • Aqara Preset Favorites card for Lovelace dashboards
  • Active preset highlighting with toggle behavior

Hide and restore built-in presets

  • Hide/restore built-in presets you don’t use

Dynamic Scenes & Color Picker

  • CCT-only lights now supported in dynamic scenes via XY-to-CCT conversion
  • CCT slider added to the color picker panel

Improvements

  • Favorite light and entity selection added to user persistent storage
  • Replace externally paused text with color-coded entity chips
  • More ZHA attributes exposed for native HA controls
  • Pause solar/schedule sequences on new preset activation instead of stopping
  • Unify auto-generated icons to circular style

Fixes

  • Eliminate forced reflow during drag in transition curve graph
  • RGB input fields snap back
  • Off-state restoration for stopping presets on lights with segments
  • Align solar/schedule CCT timeline labels with bar markers
  • Solar/schedule sequence restarts for lights in on-state during HA reboot