Home Assistant Aqara Lighting Integration

Looking for some beta testers for a new feature in Aqara Advanced Lighting, audio/music reactive dynamic scenes. You’ll need to enable pre-releases in the integration settings.

This new feature works in tandem with an ESPHome device flashed with 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 web installer, no specialist ESP32 knowledge is needed. The firmware can also be adapted to any ESP32 device with a microphone.

For more detailed information on how this feature works please see the dedicated documentation page.

If you’re trying out this new feature, please give your feedback in the Github discussions page for this release.

New

  • Audio-reactive dynamic scenes
  • Preset Favorites Lovelace dashboard card

Improvements

  • Favorite light and entity selection added to user persistent storage
  • Replace externally paused text with color-coded entity chips
  • CCT slider to color picker
  • Expose more ZHA device attributes for native HA controls

Fixes

  • Eliminate forced reflow during drag in transition curve graph
  • RGB input fields snap back
  • Off-state restoration for stopping presets on segments lights

Version 1.2.0 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.

  • 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