feat: Add HACS Home Assistant Integration for AMS Tray Management#16
feat: Add HACS Home Assistant Integration for AMS Tray Management#16Switchbot-Nova wants to merge 18 commits intogibz104:mainfrom
Conversation
|
Hey @Switchbot-Nova, thanks for putting this together. I can tell it took real effort and I appreciate the contribution. After reviewing the code, I've decided not to merge this. Here's my reasoning: Overlap with the add-on SpoolmanSync now ships as an HA add-on that embeds the full web UI directly in the HA sidebar. This already gives HA OS users one-click access to tray assignment, spool management, QR labels, NFC writing, and everything else without leaving Home Assistant. The add-on automatically stays in sync with new features since it runs the same codebase. This PR recreates a subset of that functionality (tray assignment only) as native HA entities. While I understand the appeal of native entities for automations, the maintenance cost of keeping a parallel Python integration in sync with SpoolmanSync's API doesn't justify the limited additional functionality it provides over the add-on. Architecture concerns Hosting a HACS integration in the same repo as the add-on creates problems. HACS expects repos to be one category, either an integration or an add-on. Users adding this repo as a custom repository would have to pick a category, and it can't be both. This would also affect the existing add-on store listing since the PR changes Code issues Even if I were open to the direction, there are a number of issues that would need to be addressed:
If you'd like to maintain this as a standalone HACS integration in your own repo, that's totally fine, anyone could point HACS at your repo and install it. It just doesn't fit as part of the main SpoolmanSync project. Thanks again for the effort! |
Add Home Assistant HACS Integration for AMS Tray Management
🎯 Summary
This PR adds a fully-featured HACS-compatible Home Assistant integration that allows users to manage Bambu Lab AMS tray spool assignments directly from Home Assistant dashboards, without needing the SpoolmanSync web UI.
✨ New Features
http://192.168.0.34:3000).selectentities for AMS Tray 1-4 and External Spool, grouped under printer devices.📦 HACS Installation
https://github.com/gibz104/SpoolmanSync(Integration category).🛠️ Technical Details
custom_components/spoolmansync/hacs.json+manifest.json.www/spoolmansync-card.jswith Shadow DOM, entity pickers, cache-busting.📱 Dashboard Example
Renders as a 2x2 grid of colored Tile cards.
🔄 Backward Compatibility
🧪 Testing