Aqara Advanced Lighting v0.7.0
What's New
Version 0.7.0 introduces enhanced color accuracy with a new XY-based color picker, visual segment pattern edtior for segment sequences, visual segment selection for T1 Strip effects, and improved segment sequence capabilities. This release focuses on user experience improvements and color fidelity.
New Features
Segment Selector Component
- Visual Segment Selection for segment sequences
- Interactive visual representation of all available segments
- Click or tap segments to select/deselect
- Visual feedback showing selected segments
- Automatic segment count detection based on device type
- Support for T1M (20 or 26 segments) and T1 Strip (variable length)
- Clear selected segments button for quick reset
- Compact display optimized for mobile and desktop
XY Color Picker Component
- Replaced HS Color Picker with more accurate XY-based circular color wheel
- Uses CIE 1931 XY color space for device-independent color representation
- Improved color accuracy and consistency across devices
- RGB input fields for precise color specification
- Visual feedback when RGB-to-XY conversion adjusts values
- Touch-friendly interface with draggable marker
- Responsive design adapts to different screen sizes
Enhanced Segment Sequences
- Direct Segment Color Assignment in RGB segment sequences
- New
segment_colorsfield for explicit segment-to-color mapping - Simplifies sequence creation with direct control
- Backward compatible with existing mode/colors/gradient approach
- More flexible than pattern modes for complex animations
- Backend validation ensures data integrity
- New
Improvements
Frontend Enhancements
-
Color Picker UX
- Replaced all HS color pickers with XY color pickers throughout panel
- Consistent color behavior across effects, patterns, and sequences
- RGB input fields provide precise numerical color control
- Visual marker shows exact selected color on wheel
- Improved accessibility with clear visual indicators
-
Pattern Editor
- New segment selector replaces text input for segment ranges
- Visual representation makes it easier to design patterns
- See exactly which segments will be affected before applying
- Cleaner interface with reduced clutter
-
Segment Sequence Editor
- Segment selector integrated for each sequence step
- Visual feedback for segment assignments
- Easier to create complex multi-step sequences
- Improved step management UI
Code Quality
-
Frontend Refactoring
- Removed deprecated hs-color-picker.ts component
- Added xy-color-picker.ts with better performance
- Added reusable segment-selector.js component
- Cleaner code structure with better separation of concerns
- Reduced duplication across editor components
- Improved type safety with TypeScript
-
Backend Improvements
- Enhanced SegmentSequenceStep model to support direct segment colors
- Backward compatible validation for legacy sequence formats
- Improved error messaging for validation failures
- Better code organization in segment sequence manager
Technical Changes
New Files
frontend_src/src/xy-color-picker.ts- XY-based circular color wheel componentfrontend/segment-selector.js- Visual segment selection component (compiled)
Removed Files
frontend_src/src/hs-color-picker.ts- Replaced by XY color picker
Updated Files
-
Frontend
aqara-panel.ts- Integrated XY color picker and segment selectoreffect-editor.ts- Updated to use XY color pickerpattern-editor.ts- Updated to use segment selector and XY color pickersegment-sequence-editor.ts- Updated to use segment selector and XY color pickerstyles.ts- Updated styles for new componentstypes.ts- Added XYColor type definitionsindex.ts- Registered new XY color picker component
-
Backend
models.py- Enhanced SegmentSequenceStep with segment_colors fieldpanel.py- Added segment selector JavaScript endpointservices.py- Updated to handle new segment sequence formatsegment_sequence_manager.py- Enhanced step execution for direct segment colorsconst.py- Updated constants for new features
Breaking Changes
None. This release is fully backward compatible with v0.6.2.
- Existing sequences using mode/colors/gradient continue to work
- New segment_colors field is optional
- Frontend automatically uses XY color picker without user intervention
- All saved presets remain compatible
Compatibility
- Fully backward compatible with v0.6.2
- All existing presets and configurations preserved
- No configuration changes required
- Preset backup files are forward-compatible
Upgrade from v0.6.2
- Update the integration through HACS
- Restart Home Assistant
- Clear browser cache (Ctrl+Shift+R or Cmd+Shift+R)
- All existing presets and configurations are preserved