1
0
Fork 0
mirror of https://github.com/maziggy/bambuddy.git synced 2026-05-09 08:25:54 +02:00

[GH-ISSUE #875] [Bug Report] Title: [Bug]: use_ams: true sent even when no AMS is connected, causing 07FF-801 #597

Closed
opened 2026-05-07 00:11:58 +02:00 by BreizhHardware · 2 comments

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

Originally assigned to: @maziggy on GitHub.

Title: [Bug]: use_ams: true sent even when no AMS is connected, causing 07FF-8012 and 07FF-5000-0002-0001 errors
Body:

Bug Description
When printing to a P2S without an AMS (external spool only), Bambuddy always sends "use_ams": true in the MQTT print command. This causes the printer to look for an AMS that doesn't exist, resulting in two errors:

07FF-8012 — Failed to get AMS mapping table
07FF-5000-0002-0001 — AMS communication is abnormal

The print cannot proceed.
Root Cause
The MQTT print command sent by Bambuddy:
json"use_ams": true,
"ams_mapping": [-1],
"ams_mapping2": [{"ams_id": 254, "slot_id": 0}]
Even though ams_id: 254 correctly indicates the external spool, use_ams: true tells the printer to expect an AMS. When no AMS is connected, the printer throws the above errors and halts.
The fix should be: if no AMS is connected and only the external spool is used, send use_ams: false.
Steps to Reproduce

P2S with no AMS, external spool configured in Bambuddy
Queue a print or use File Manager
Print command is sent with use_ams: true
Printer throws 07FF-8012 and 07FF-5000-0002-0001 and halts

Expected Behavior
use_ams: false when no AMS is connected.
Bambuddy Version: v0.2.3 (latest)
Printer: Bambu Lab P2S
Firmware: 01.01.01.00
Installation: Docker, LAN-Only mode

Reporter Contact

Email: vogtjonathan614@gmail.com

System Information
{
  "generated_at": "2026-04-02T13:41:56.067262",
  "app": {
    "version": "0.2.2.2",
    "debug_mode": false
  },
  "system": {
    "platform": "Linux",
    "platform_release": "6.8.0-106-generic",
    "platform_version": "#106-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar  6 07:58:08 UTC 2026",
    "architecture": "x86_64",
    "python_version": "3.13.12"
  },
  "environment": {
    "docker": true,
    "data_dir": "/app/data",
    "log_dir": "/app/logs",
    "timezone": "Europe/Zurich"
  },
  "database": {
    "archives_total": 131,
    "archives_completed": 86,
    "printers_total": 8,
    "filaments_total": 0,
    "projects_total": 0,
    "smart_plugs_total": 0
  },
  "printers": [
    {
      "index": 1,
      "model": "P2S",
      "nozzle_count": 1,
      "is_active": true,
      "mqtt_connected": true,
      "state": "FINISH",
      "firmware_version": "01.01.03.00",
      "wifi_signal": -50,
      "reachable": true,
      "ams_unit_count": 0,
      "ams_tray_count": 0,
      "has_vt_tray": true,
      "external_camera_configured": false,
      "plate_detection_enabled": false,
      "hms_error_count": 0,
      "developer_mode": true,
      "nozzle_rack_count": 1
    },
    {
      "index": 2,
      "model": "P2S",
      "nozzle_count": 1,
      "is_active": true,
      "mqtt_connected": true,
      "state": "FAILED",
      "firmware_version": "01.01.03.00",
      "wifi_signal": -55,
      "reachable": true,
      "ams_unit_count": 0,
      "ams_tray_count": 0,
      "has_vt_tray": true,
      "external_camera_configured": false,
      "plate_detection_enabled": false,
      "hms_error_count": 0,
      "developer_mode": true,
      "nozzle_rack_count": 1
    },
    {
      "index": 3,
      "model": "P2S",
      "nozzle_count": 1,
      "is_active": true,
      "mqtt_connected": true,
      "state": "FINISH",
      "firmware_version": "01.01.03.00",
      "wifi_signal": -51,
      "reachable": true,
      "ams_unit_count": 0,
      "ams_tray_count": 0,
      "has_vt_tray": true,
      "external_camera_configured": false,
      "plate_detection_enabled": false,
      "hms_error_count": 0,
      "developer_mode": true,
      "nozzle_rack_count": 1
    },
    {
      "index": 4,
      "model": "P2S",
      "nozzle_count": 1,
      "is_active": true,
      "mqtt_connected": true,
      "state": "RUNNING",
      "firmware_version": "01.01.03.00",
      "wifi_signal": -56,
      "reachable": true,
      "ams_unit_count": 0,
      "ams_tray_count": 0,
      "has_vt_tray": true,
      "external_camera_configured": false,
      "plate_detection_enabled": false,
      "hms_error_count": 2,
      "developer_mode": true,
      "nozzle_rack_count": 1
    },
    {
      "index": 5,
      "model": "P2S",
      "nozzle_count": 1,
      "is_active": true,
      "mqtt_connected": true,
      "state": "FINISH",
      "firmware_version": "01.01.03.00",
      "wifi_signal": -50,
      "reachable": true,
      "ams_unit_count": 0,
      "ams_tray_count": 0,
      "has_vt_tray": true,
      "external_camera_configured": false,
      "plate_detection_enabled": false,
      "hms_error_count": 0,
      "developer_mode": true,
      "nozzle_rack_count": 1
    },
    {
      "index": 6,
      "model": "P2S",
      "nozzle_count": 1,
      "is_active": true,
      "mqtt_connected": true,
      "state": "FINISH",
      "firmware_version": "01.01.03.00",
      "wifi_signal": -60,
      "reachable": true,
      "ams_unit_count": 0,
      "ams_tray_count": 0,
      "has_vt_tray": true,
      "external_camera_configured": false,
      "plate_detection_enabled": false,
      "hms_error_count": 0,
      "developer_mode": true,
      "nozzle_rack_count": 1
    },
    {
      "index": 7,
      "model": "P2S",
      "nozzle_count": 1,
      "is_active": true,
      "mqtt_connected": true,
      "state": "FINISH",
      "firmware_version": "01.01.03.00",
      "wifi_signal": -50,
      "reachable": true,
      "ams_unit_count": 0,
      "ams_tray_count": 0,
      "has_vt_tray": true,
      "external_camera_configured": false,
      "plate_detection_enabled": false,
      "hms_error_count": 0,
      "developer_mode": true,
      "nozzle_rack_count": 1
    },
    {
      "index": 8,
      "model": "P2S",
      "nozzle_count": 1,
      "is_active": true,
      "mqtt_connected": true,
      "state": "RUNNING",
      "firmware_version": "01.01.03.00",
      "wifi_signal": -61,
      "reachable": true,
      "ams_unit_count": 0,
      "ams_tray_count": 0,
      "has_vt_tray": true,
      "external_camera_configured": false,
      "plate_detection_enabled": false,
      "hms_error_count": 0,
      "developer_mode": true,
      "nozzle_rack_count": 1
    }
  ],
  "settings": {
    "auth_enabled": "true",
    "setup_completed": "true",
    "auto_archive": "true",
    "save_thumbnails": "true",
    "capture_finish_photo": "true",
    "default_filament_cost": "25.0",
    "currency": "CHF",
    "energy_cost_per_kwh": "0.15",
    "energy_tracking_mode": "total",
    "check_updates": "true",
    "check_printer_firmware": "true",
    "include_beta_updates": "false",
    "notification_language": "de",
    "bed_cooled_threshold": "35.0",
    "ams_humidity_good": "40",
    "ams_humidity_fair": "60",
    "ams_temp_good": "28.0",
    "ams_temp_fair": "35.0",
    "ams_history_retention_days": "30",
    "per_printer_mapping_expanded": "false",
    "date_format": "eu",
    "time_format": "24h",
    "default_printer_id": "None",
    "ftp_retry_enabled": "true",
    "ftp_retry_count": "3",
    "ftp_retry_delay": "2",
    "ftp_timeout": "300",
    "mqtt_enabled": "false",
    "mqtt_broker": "",
    "mqtt_port": "1883",
    "mqtt_topic_prefix": "bambuddy",
    "mqtt_use_tls": "false",
    "ha_enabled": "false",
    "library_archive_mode": "always",
    "library_disk_warning_gb": "5.0",
    "camera_view_mode": "embedded",
    "preferred_slicer": "bambu_studio",
    "prometheus_enabled": "false",
    "smtp_host": "smtp.gmail.com",
    "smtp_port": "587",
    "smtp_user": "bambulabsfhost@gmail.com",
    "smtp_pass": "tiao prxt nkjz vdvi",
    "smtp_from": "bambulabsfhost@gmail.com",
    "smtp_tls": "true",
    "auth_method": "email",
    "smtp_security": "starttls",
    "smtp_auth_enabled": "true",
    "smtp_from_name": "BamBuddy",
    "advanced_auth_enabled": "true",
    "queue_drying_enabled": "false",
    "queue_drying_block": "false",
    "ambient_drying_enabled": "false",
    "drying_presets": "",
    "disable_filament_warnings": "false",
    "user_notifications_enabled": "true",
    "debug_logging_enabled": "false",
    "debug_logging_enabled_at": ""
  },
  "docker": {
    "container_memory_limit_bytes": null,
    "container_memory_limit_formatted": null,
    "network_mode_hint": "bridge"
  },
  "virtual_printers": [],
  "integrations": {
    "notification_providers": [
      {
        "type": "ntfy",
        "enabled": true,
        "has_last_error": true
      }
    ],
    "spoolman": {
      "enabled": false,
      "reachable": false
    },
    "mqtt_relay": {
      "enabled": false,
      "connected": false,
      "broker": "",
      "port": 0,
      "topic_prefix": "bambuddy"
    },
    "homeassistant": {
      "enabled": false
    }
  },
  "database_health": {
    "journal_mode": "wal",
    "quick_check": "ok",
    "db_size_bytes": 1359872,
    "wal_size_bytes": 4124152
  },
  "dependencies": {
    "fastapi": "0.135.2",
    "uvicorn": "0.42.0",
    "pydantic": "2.12.5",
    "sqlalchemy": "2.0.48",
    "paho-mqtt": "2.1.0",
    "psutil": "7.2.2",
    "httpx": "0.28.1",
    "aiofiles": "25.1.0",
    "cryptography": "46.0.6",
    "opencv-python-headless": "4.13.0.92",
    "numpy": "2.4.3"
  },
  "log_file": {
    "size_bytes": 2850284,
    "size_formatted": "2.7 MB"
  },
  "network": {
    "interface_count": 1,
    "interfaces": [
      {
        "name": "eth0",
        "subnet": "x.x.0.0/16"
      }
    ]
  },
  "websockets": {
    "active_connections": 2
  }
}

Logs (sanitized): bambuddy.log


Submitted via BamBuddy Bug Report

Originally created by @maziggy on GitHub (Apr 2, 2026). Original GitHub issue: https://github.com/maziggy/bambuddy/issues/875 Originally assigned to: @maziggy on GitHub. Title: [Bug]: use_ams: true sent even when no AMS is connected, causing 07FF-8012 and 07FF-5000-0002-0001 errors Body: Bug Description When printing to a P2S without an AMS (external spool only), Bambuddy always sends "use_ams": true in the MQTT print command. This causes the printer to look for an AMS that doesn't exist, resulting in two errors: 07FF-8012 — Failed to get AMS mapping table 07FF-5000-0002-0001 — AMS communication is abnormal The print cannot proceed. Root Cause The MQTT print command sent by Bambuddy: json"use_ams": true, "ams_mapping": [-1], "ams_mapping2": [{"ams_id": 254, "slot_id": 0}] Even though ams_id: 254 correctly indicates the external spool, use_ams: true tells the printer to expect an AMS. When no AMS is connected, the printer throws the above errors and halts. The fix should be: if no AMS is connected and only the external spool is used, send use_ams: false. Steps to Reproduce P2S with no AMS, external spool configured in Bambuddy Queue a print or use File Manager Print command is sent with use_ams: true Printer throws 07FF-8012 and 07FF-5000-0002-0001 and halts Expected Behavior use_ams: false when no AMS is connected. Bambuddy Version: v0.2.3 (latest) Printer: Bambu Lab P2S Firmware: 01.01.01.00 Installation: Docker, LAN-Only mode <details> <summary>Reporter Contact</summary> Email: vogtjonathan614@gmail.com </details> <details> <summary>System Information</summary> ```json { "generated_at": "2026-04-02T13:41:56.067262", "app": { "version": "0.2.2.2", "debug_mode": false }, "system": { "platform": "Linux", "platform_release": "6.8.0-106-generic", "platform_version": "#106-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 6 07:58:08 UTC 2026", "architecture": "x86_64", "python_version": "3.13.12" }, "environment": { "docker": true, "data_dir": "/app/data", "log_dir": "/app/logs", "timezone": "Europe/Zurich" }, "database": { "archives_total": 131, "archives_completed": 86, "printers_total": 8, "filaments_total": 0, "projects_total": 0, "smart_plugs_total": 0 }, "printers": [ { "index": 1, "model": "P2S", "nozzle_count": 1, "is_active": true, "mqtt_connected": true, "state": "FINISH", "firmware_version": "01.01.03.00", "wifi_signal": -50, "reachable": true, "ams_unit_count": 0, "ams_tray_count": 0, "has_vt_tray": true, "external_camera_configured": false, "plate_detection_enabled": false, "hms_error_count": 0, "developer_mode": true, "nozzle_rack_count": 1 }, { "index": 2, "model": "P2S", "nozzle_count": 1, "is_active": true, "mqtt_connected": true, "state": "FAILED", "firmware_version": "01.01.03.00", "wifi_signal": -55, "reachable": true, "ams_unit_count": 0, "ams_tray_count": 0, "has_vt_tray": true, "external_camera_configured": false, "plate_detection_enabled": false, "hms_error_count": 0, "developer_mode": true, "nozzle_rack_count": 1 }, { "index": 3, "model": "P2S", "nozzle_count": 1, "is_active": true, "mqtt_connected": true, "state": "FINISH", "firmware_version": "01.01.03.00", "wifi_signal": -51, "reachable": true, "ams_unit_count": 0, "ams_tray_count": 0, "has_vt_tray": true, "external_camera_configured": false, "plate_detection_enabled": false, "hms_error_count": 0, "developer_mode": true, "nozzle_rack_count": 1 }, { "index": 4, "model": "P2S", "nozzle_count": 1, "is_active": true, "mqtt_connected": true, "state": "RUNNING", "firmware_version": "01.01.03.00", "wifi_signal": -56, "reachable": true, "ams_unit_count": 0, "ams_tray_count": 0, "has_vt_tray": true, "external_camera_configured": false, "plate_detection_enabled": false, "hms_error_count": 2, "developer_mode": true, "nozzle_rack_count": 1 }, { "index": 5, "model": "P2S", "nozzle_count": 1, "is_active": true, "mqtt_connected": true, "state": "FINISH", "firmware_version": "01.01.03.00", "wifi_signal": -50, "reachable": true, "ams_unit_count": 0, "ams_tray_count": 0, "has_vt_tray": true, "external_camera_configured": false, "plate_detection_enabled": false, "hms_error_count": 0, "developer_mode": true, "nozzle_rack_count": 1 }, { "index": 6, "model": "P2S", "nozzle_count": 1, "is_active": true, "mqtt_connected": true, "state": "FINISH", "firmware_version": "01.01.03.00", "wifi_signal": -60, "reachable": true, "ams_unit_count": 0, "ams_tray_count": 0, "has_vt_tray": true, "external_camera_configured": false, "plate_detection_enabled": false, "hms_error_count": 0, "developer_mode": true, "nozzle_rack_count": 1 }, { "index": 7, "model": "P2S", "nozzle_count": 1, "is_active": true, "mqtt_connected": true, "state": "FINISH", "firmware_version": "01.01.03.00", "wifi_signal": -50, "reachable": true, "ams_unit_count": 0, "ams_tray_count": 0, "has_vt_tray": true, "external_camera_configured": false, "plate_detection_enabled": false, "hms_error_count": 0, "developer_mode": true, "nozzle_rack_count": 1 }, { "index": 8, "model": "P2S", "nozzle_count": 1, "is_active": true, "mqtt_connected": true, "state": "RUNNING", "firmware_version": "01.01.03.00", "wifi_signal": -61, "reachable": true, "ams_unit_count": 0, "ams_tray_count": 0, "has_vt_tray": true, "external_camera_configured": false, "plate_detection_enabled": false, "hms_error_count": 0, "developer_mode": true, "nozzle_rack_count": 1 } ], "settings": { "auth_enabled": "true", "setup_completed": "true", "auto_archive": "true", "save_thumbnails": "true", "capture_finish_photo": "true", "default_filament_cost": "25.0", "currency": "CHF", "energy_cost_per_kwh": "0.15", "energy_tracking_mode": "total", "check_updates": "true", "check_printer_firmware": "true", "include_beta_updates": "false", "notification_language": "de", "bed_cooled_threshold": "35.0", "ams_humidity_good": "40", "ams_humidity_fair": "60", "ams_temp_good": "28.0", "ams_temp_fair": "35.0", "ams_history_retention_days": "30", "per_printer_mapping_expanded": "false", "date_format": "eu", "time_format": "24h", "default_printer_id": "None", "ftp_retry_enabled": "true", "ftp_retry_count": "3", "ftp_retry_delay": "2", "ftp_timeout": "300", "mqtt_enabled": "false", "mqtt_broker": "", "mqtt_port": "1883", "mqtt_topic_prefix": "bambuddy", "mqtt_use_tls": "false", "ha_enabled": "false", "library_archive_mode": "always", "library_disk_warning_gb": "5.0", "camera_view_mode": "embedded", "preferred_slicer": "bambu_studio", "prometheus_enabled": "false", "smtp_host": "smtp.gmail.com", "smtp_port": "587", "smtp_user": "bambulabsfhost@gmail.com", "smtp_pass": "tiao prxt nkjz vdvi", "smtp_from": "bambulabsfhost@gmail.com", "smtp_tls": "true", "auth_method": "email", "smtp_security": "starttls", "smtp_auth_enabled": "true", "smtp_from_name": "BamBuddy", "advanced_auth_enabled": "true", "queue_drying_enabled": "false", "queue_drying_block": "false", "ambient_drying_enabled": "false", "drying_presets": "", "disable_filament_warnings": "false", "user_notifications_enabled": "true", "debug_logging_enabled": "false", "debug_logging_enabled_at": "" }, "docker": { "container_memory_limit_bytes": null, "container_memory_limit_formatted": null, "network_mode_hint": "bridge" }, "virtual_printers": [], "integrations": { "notification_providers": [ { "type": "ntfy", "enabled": true, "has_last_error": true } ], "spoolman": { "enabled": false, "reachable": false }, "mqtt_relay": { "enabled": false, "connected": false, "broker": "", "port": 0, "topic_prefix": "bambuddy" }, "homeassistant": { "enabled": false } }, "database_health": { "journal_mode": "wal", "quick_check": "ok", "db_size_bytes": 1359872, "wal_size_bytes": 4124152 }, "dependencies": { "fastapi": "0.135.2", "uvicorn": "0.42.0", "pydantic": "2.12.5", "sqlalchemy": "2.0.48", "paho-mqtt": "2.1.0", "psutil": "7.2.2", "httpx": "0.28.1", "aiofiles": "25.1.0", "cryptography": "46.0.6", "opencv-python-headless": "4.13.0.92", "numpy": "2.4.3" }, "log_file": { "size_bytes": 2850284, "size_formatted": "2.7 MB" }, "network": { "interface_count": 1, "interfaces": [ { "name": "eth0", "subnet": "x.x.0.0/16" } ] }, "websockets": { "active_connections": 2 } } ``` </details> **Logs (sanitized):** [bambuddy.log](https://raw.githubusercontent.com/maziggy/bambuddy/bug-report-assets/logs/2237b497624f42d598c120b051a00388.log) --- *Submitted via BamBuddy Bug Report*
Author
Owner

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

This should already be fixed. Please use branch dev or just released 0.2.3b1 version and let me know if the error persists.

<!-- gh-comment-id:4177426699 --> @maziggy commented on GitHub (Apr 2, 2026): This should already be fixed. Please use branch dev or just released 0.2.3b1 version and let me know if the error persists.
Author
Owner

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

THen I need a new support package from dev branch.

<!-- gh-comment-id:4183795389 --> @maziggy commented on GitHub (Apr 3, 2026): THen I need a new support package from dev branch.
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-maziggy-1#597
No description provided.