[GH-ISSUE #938] [Bug]: Spoolbuddy Power / Restart functions not working #647

Closed
opened 2026-05-06 12:31:38 +02:00 by BreizhHardware · 4 comments

Originally created by @TravisWilder on GitHub (Apr 10, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/938

Originally assigned to: @maziggy on GitHub.

Bug Description

swipe done on Spoolbuddy opens power menu
Restart services or system and Power down are not working

Device is sb-e45f01722ca2 which I see in the log as heartbeat
when I trigger any of these function the logs shows

"POST /api/v1/spoolbuddy/devices/sb-b827eb2bc786/system/command HTTP/1.1" 409 Conflict
which is a different ID and the 409 error is
{
"detail": "Device is offline"
}

(tested via API Browser)

when I submit in the API browser commands with correct ID it works
somehow the spoolbuddy uses the work / different ID for these commands (first in the DB)

I have 2 spoolbuddy devices in the Bambuddy DB based on testing with different PIs
There is no option to remove the old one.

Expected Behavior

spoolbuddy should not use a different ID for commads then heartbeat etc.

Steps to Reproduce

have more than one spoolbuddy device in DB
have the second (latest) active
open power menu
try to click commands / confirm

Printer Model

H2C

Bambuddy Version

DEV from 10.4.2026

Printer Firmware Version

0.2.3b

Installation Method

Docker

Operating System

Linux (Ubuntu/Debian)

Relevant Logs / Support Package

No response

Screenshots

No response

Additional Context

quick guess SpoolBuddyQuickMenu gets the wrong ID in bumbuddy webgui for spoolbuddy

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 @TravisWilder on GitHub (Apr 10, 2026). Original GitHub issue: https://github.com/maziggy/bambuddy/issues/938 Originally assigned to: @maziggy on GitHub. ### Bug Description swipe done on Spoolbuddy opens power menu Restart services or system and Power down are not working Device is sb-e45f01722ca2 which I see in the log as heartbeat when I trigger any of these function the logs shows "POST /api/v1/spoolbuddy/devices/sb-b827eb2bc786/system/command HTTP/1.1" 409 Conflict which is a different ID and the 409 error is { "detail": "Device is offline" } (tested via API Browser) when I submit in the API browser commands with correct ID it works somehow the spoolbuddy uses the work / different ID for these commands (first in the DB) I have 2 spoolbuddy devices in the Bambuddy DB based on testing with different PIs There is no option to remove the old one. ### Expected Behavior spoolbuddy should not use a different ID for commads then heartbeat etc. ### Steps to Reproduce have more than one spoolbuddy device in DB have the second (latest) active open power menu try to click commands / confirm ### Printer Model H2C ### Bambuddy Version DEV from 10.4.2026 ### Printer Firmware Version 0.2.3b ### Installation Method Docker ### Operating System Linux (Ubuntu/Debian) ### Relevant Logs / Support Package _No response_ ### Screenshots _No response_ ### Additional Context quick guess SpoolBuddyQuickMenu gets the wrong ID in bumbuddy webgui for spoolbuddy ### 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:31:38 +02:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@TravisWilder commented on GitHub (Apr 10, 2026):

this might help
SpoolBuddyLayout.tsx
Line 42: const device = devices[0];

set the device fixed to the first from DB

I do I remove the old device from DB?

<!-- gh-comment-id:4225708365 --> @TravisWilder commented on GitHub (Apr 10, 2026): this might help SpoolBuddyLayout.tsx Line 42: const device = devices[0]; set the device fixed to the first from DB I do I remove the old device from DB?
Author
Owner

@maziggy commented on GitHub (Apr 11, 2026):

Will add a Spoolbuddy tab to settings.

<!-- gh-comment-id:4228989309 --> @maziggy commented on GitHub (Apr 11, 2026): Will add a Spoolbuddy tab to settings.
Author
Owner

@maziggy commented on GitHub (Apr 11, 2026):

Available/Fixed in branch dev and available with the next release or daily build.

Docs -> https://wiki.bambuddy.cool/spoolbuddy/configuration/#managing-devices-from-bambuddy

Image
<!-- gh-comment-id:4229101521 --> @maziggy commented on GitHub (Apr 11, 2026): Available/Fixed in branch dev and available with the next release or daily build. Docs -> https://wiki.bambuddy.cool/spoolbuddy/configuration/#managing-devices-from-bambuddy <img width="1826" height="464" alt="Image" src="https://github.com/user-attachments/assets/4767a3bd-695c-48bb-93ae-14688636a96e" />
Author
Owner

@TravisWilder commented on GitHub (Apr 11, 2026):

I can confirm - delete works and now also the power commands

<!-- gh-comment-id:4229115631 --> @TravisWilder commented on GitHub (Apr 11, 2026): I can confirm - delete works and now also the power commands
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#647
No description provided.