v2.7.0 - Canvas/AMS Filament Color Support
What's New
Canvas/AMS Filament Color Support 🎨
Added comprehensive Canvas/AMS integration for Centauri Carbon 2 (CC2) printers, allowing you to see filament colors and metadata directly in Home Assistant, similar to the Bambu Lab integration.
New Sensors:
binary_sensor.canvas_connected- Shows AMS connection statussensor.active_filament_color- Displays currently active filament color during printssensor.ams_tray_[0-3]_color- Individual tray colors and filament details
Sensor Attributes Include:
- Filament color (hex code)
- Material type (PLA, PETG, etc.)
- Brand and product name
- Temperature ranges (nozzle and bed)
- Filament diameter
- Source (RFID or manual entry)
Features:
- Automatic status updates every 30 seconds
- Active filament indicator changes during multi-color prints
- Only appears for CC2 printers with Canvas support
- Proper rate limiting to avoid overwhelming the printer
- Clean handling of empty trays (no "0-0°C" temperature ranges)
Technical Details:
- Implements CC2 GetCanvasInfo (method 2005) command
- Created comprehensive AMS data models (AMSTray, AMSBox, AMSStatus)
- Proper separation of binary and regular sensors
- CC2-specific protocol checks ensure compatibility
Bug Fixes
- Fixed temperature range formatting for empty AMS trays
- Corrected protocol version checks for Canvas sensors
- Fixed potential NameError in coordinator Canvas check
Closes #336
Full Changelog: v2.6.4...v2.7.0