[GH-ISSUE #765] [Bug]: Spools are removed from the AMS 2 Pro #512

Closed
opened 2026-05-06 12:30:30 +02:00 by BreizhHardware · 1 comment

Originally created by @pichler583-cell on GitHub (Mar 20, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/765

Originally assigned to: @maziggy on GitHub.

Bug Description

Spools are removed from the AMS 2 Pro slot assignment after the printer is restarted. Additionally, the slot configuration is reset, requiring all spools and their configurations to be reassigned each time the printer is powered on.

Expected Behavior

Filament and slot assignments should be retained after printer restart.

Steps to Reproduce

  1. Assigned Spool
  2. Resart Printer

Printer Model

P2S

Bambuddy Version

Daily

Printer Firmware Version

01.01.50.40

Installation Method

Docker

Operating System

Linux (Ubuntu/Debian)

Relevant Logs / Support Package

bambuddy-support-20260320-140731.zip

Screenshots

Image Image Image

Additional Context

No response

Checklist

  • I have searched existing issues to ensure this bug hasn't already been reported
  • I am using the latest version of Bambuddy
  • My printer is set to LAN Only mode
  • My printer has Developer Mode enabled
Originally created by @pichler583-cell on GitHub (Mar 20, 2026). Original GitHub issue: https://github.com/maziggy/bambuddy/issues/765 Originally assigned to: @maziggy on GitHub. ### Bug Description Spools are removed from the AMS 2 Pro slot assignment after the printer is restarted. Additionally, the slot configuration is reset, requiring all spools and their configurations to be reassigned each time the printer is powered on. ### Expected Behavior Filament and slot assignments should be retained after printer restart. ### Steps to Reproduce 1. Assigned Spool 2. Resart Printer ### Printer Model P2S ### Bambuddy Version Daily ### Printer Firmware Version 01.01.50.40 ### Installation Method Docker ### Operating System Linux (Ubuntu/Debian) ### Relevant Logs / Support Package [bambuddy-support-20260320-140731.zip](https://github.com/user-attachments/files/26140809/bambuddy-support-20260320-140731.zip) ### Screenshots <img width="1705" height="1269" alt="Image" src="https://github.com/user-attachments/assets/cb6aebe9-f91d-4ed8-8be8-d636c78a65e2" /> <img width="1672" height="1385" alt="Image" src="https://github.com/user-attachments/assets/8852e207-b20a-4b4e-ac32-eccbd0c1e88c" /> <img width="1708" height="1272" alt="Image" src="https://github.com/user-attachments/assets/bcc2f23f-d08e-497f-af1d-7279ca4f5caa" /> ### Additional Context _No response_ ### Checklist - [x] I have searched existing issues to ensure this bug hasn't already been reported - [x] I am using the latest version of Bambuddy - [x] My printer is set to LAN Only mode - [x] My printer has Developer Mode enabled
BreizhHardware 2026-05-06 12:30:30 +02:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@maziggy commented on GitHub (Mar 20, 2026):

Root cause: When your P2S shuts down, it sends a final MQTT message with tray_exist_bits=0 and power_on_flag=false. Bambuddy was treating this all-zero value as "every slot is empty" and clearing all AMS slot data. On reconnect, the auto-unlink check saw empty tray fingerprints and removed all spool assignments.

Fix: Bambuddy now skips the tray_exist_bits slot clearing when power_on_flag is false (shutdown message). Your AMS data is preserved in memory, and when the printer reconnects with fresh data, the spool assignments remain intact.

Available/Fixed in branch dev and available with the next release or daily build. Please let me know if it works for you now.


If you find Bambuddy useful, please consider giving it a on GitHub — it helps others discover the project!

<!-- gh-comment-id:4099073995 --> @maziggy commented on GitHub (Mar 20, 2026): **Root cause:** When your P2S shuts down, it sends a final MQTT message with tray_exist_bits=0 and power_on_flag=false. Bambuddy was treating this all-zero value as "every slot is empty" and clearing all AMS slot data. On reconnect, the auto-unlink check saw empty tray fingerprints and removed all spool assignments. **Fix**: Bambuddy now skips the tray_exist_bits slot clearing when power_on_flag is false (shutdown message). Your AMS data is preserved in memory, and when the printer reconnects with fresh data, the spool assignments remain intact. Available/Fixed in branch dev and available with the next release or daily build. Please let me know if it works for you now. ----- If you find Bambuddy useful, please consider giving it a ⭐ on [GitHub](https://github.com/maziggy/bambuddy) — it helps others discover the project!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bambuddy#512
No description provided.