[GH-ISSUE #1050] [Bug Report] The filament is incorrectly detected when printing from Bambu Studio. There's PL #742

Closed
opened 2026-05-06 12:32:29 +02:00 by BreizhHardware · 2 comments

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

Originally assigned to: @maziggy on GitHub.

The filament is incorrectly detected when printing from Bambu Studio. There's PLA in the A1 slot, and it prints with it, but the Archive and Statistics show ASA.

Screenshot

Bug Report Screenshot

System Information
{
  "generated_at": "2026-04-20T12:56:24.083973",
  "app": {
    "version": "0.2.3.1",
    "debug_mode": false
  },
  "system": {
    "platform": "Linux",
    "platform_release": "6.17.13-2-pve",
    "platform_version": "#1 SMP PREEMPT_DYNAMIC PMX 6.17.13-2 (2026-03-13T08:06Z)",
    "architecture": "x86_64",
    "python_version": "3.13.13"
  },
  "environment": {
    "docker": false,
    "data_dir": "/opt/bambuddy",
    "log_dir": "/opt/[user]/logs",
    "timezone": ""
  },
  "database": {
    "archives_total": 2,
    "archives_completed": 2,
    "printers_total": 1,
    "filaments_total": 0,
    "projects_total": 0,
    "smart_plugs_total": 1
  },
  "printers": [
    {
      "index": 1,
      "model": "H2S",
      "nozzle_count": 1,
      "is_active": true,
      "mqtt_connected": true,
      "state": "FINISH",
      "firmware_version": "01.02.00.00",
      "wifi_signal": -56,
      "reachable": true,
      "ams_unit_count": 1,
      "ams_tray_count": 4,
      "has_vt_tray": true,
      "external_camera_configured": false,
      "plate_detection_enabled": false,
      "hms_error_count": 0,
      "developer_mode": true,
      "nozzle_rack_count": 1
    }
  ],
  "settings": {
    "advanced_auth_enabled": "false",
    "smtp_auth_enabled": "true",
    "auth_enabled": "true",
    "setup_completed": "true",
    "auto_archive": "true",
    "save_thumbnails": "true",
    "capture_finish_photo": "true",
    "default_filament_cost": "25.0",
    "currency": "USD",
    "energy_cost_per_kwh": "0.15",
    "energy_tracking_mode": "total",
    "disable_filament_warnings": "false",
    "prefer_lowest_filament": "false",
    "check_updates": "true",
    "check_printer_firmware": "true",
    "include_beta_updates": "false",
    "notification_language": "en",
    "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",
    "queue_drying_enabled": "false",
    "queue_drying_block": "false",
    "ambient_drying_enabled": "false",
    "drying_presets": "",
    "per_printer_mapping_expanded": "false",
    "date_format": "system",
    "time_format": "system",
    "default_printer_id": "1",
    "ftp_retry_enabled": "true",
    "ftp_retry_count": "3",
    "ftp_retry_delay": "2",
    "ftp_timeout": "30",
    "mqtt_enabled": "false",
    "mqtt_broker": "",
    "mqtt_port": "1883",
    "mqtt_username": "",
    "mqtt_password": "",
    "mqtt_topic_prefix": "bambuddy",
    "mqtt_use_tls": "false",
    "external_url": "[REDACTED]",
    "ha_enabled": "true",
    "ha_url": "[REDACTED]",
    "ha_token": "[REDACTED]",
    "library_archive_mode": "ask",
    "library_disk_warning_gb": "5.0",
    "camera_view_mode": "window",
    "preferred_slicer": "bambu_studio",
    "prometheus_enabled": "false",
    "prometheus_token": "",
    "user_notifications_enabled": "true",
    "default_bed_levelling": "true",
    "default_flow_cali": "false",
    "default_vibration_cali": "true",
    "default_layer_inspect": "false",
    "default_timelapse": "false",
    "stagger_group_size": "2",
    "stagger_interval_minutes": "5",
    "require_plate_clear": "false",
    "debug_logging_enabled": "false",
    "debug_logging_enabled_at": ""
  },
  "virtual_printers": [],
  "integrations": {
    "notification_providers": [],
    "spoolman": {
      "enabled": false,
      "reachable": false
    },
    "mqtt_relay": {
      "enabled": false,
      "connected": false,
      "broker": "",
      "port": 0,
      "topic_prefix": "bambuddy"
    },
    "spoolbuddy": {
      "device_count": 0,
      "online_count": 0,
      "devices": []
    },
    "homeassistant": {
      "enabled": true
    }
  },
  "database_health": {
    "backend": "sqlite",
    "journal_mode": "wal",
    "quick_check": "ok",
    "db_size_bytes": 516096,
    "wal_size_bytes": 94792
  },
  "dependencies": {
    "fastapi": "0.136.0",
    "uvicorn": "0.44.0",
    "pydantic": "2.13.2",
    "sqlalchemy": "2.0.49",
    "paho-mqtt": "2.1.0",
    "psutil": "7.2.2",
    "httpx": "0.28.1",
    "aiofiles": "25.1.0",
    "cryptography": "46.0.7",
    "opencv-python-headless": "4.13.0.92",
    "numpy": "2.4.4"
  },
  "log_file": {
    "size_bytes": 29844,
    "size_formatted": "29.1 KB"
  },
  "network": {
    "interface_count": 1,
    "interfaces": [
      {
        "name": "eth0",
        "subnet": "x.x.120.0/24"
      }
    ]
  },
  "websockets": {
    "active_connections": 1
  }
}

Logs (sanitized): bambuddy.log


Submitted via BamBuddy Bug Report

Originally created by @maziggy on GitHub (Apr 20, 2026). Original GitHub issue: https://github.com/maziggy/bambuddy/issues/1050 Originally assigned to: @maziggy on GitHub. The filament is incorrectly detected when printing from Bambu Studio. There's PLA in the A1 slot, and it prints with it, but the Archive and Statistics show ASA. ### Screenshot ![Bug Report Screenshot](https://raw.githubusercontent.com/maziggy/bambuddy/bug-report-assets/screenshots/465c74348f3b46dabcf1d224b628b080.png) <details> <summary>System Information</summary> ```json { "generated_at": "2026-04-20T12:56:24.083973", "app": { "version": "0.2.3.1", "debug_mode": false }, "system": { "platform": "Linux", "platform_release": "6.17.13-2-pve", "platform_version": "#1 SMP PREEMPT_DYNAMIC PMX 6.17.13-2 (2026-03-13T08:06Z)", "architecture": "x86_64", "python_version": "3.13.13" }, "environment": { "docker": false, "data_dir": "/opt/bambuddy", "log_dir": "/opt/[user]/logs", "timezone": "" }, "database": { "archives_total": 2, "archives_completed": 2, "printers_total": 1, "filaments_total": 0, "projects_total": 0, "smart_plugs_total": 1 }, "printers": [ { "index": 1, "model": "H2S", "nozzle_count": 1, "is_active": true, "mqtt_connected": true, "state": "FINISH", "firmware_version": "01.02.00.00", "wifi_signal": -56, "reachable": true, "ams_unit_count": 1, "ams_tray_count": 4, "has_vt_tray": true, "external_camera_configured": false, "plate_detection_enabled": false, "hms_error_count": 0, "developer_mode": true, "nozzle_rack_count": 1 } ], "settings": { "advanced_auth_enabled": "false", "smtp_auth_enabled": "true", "auth_enabled": "true", "setup_completed": "true", "auto_archive": "true", "save_thumbnails": "true", "capture_finish_photo": "true", "default_filament_cost": "25.0", "currency": "USD", "energy_cost_per_kwh": "0.15", "energy_tracking_mode": "total", "disable_filament_warnings": "false", "prefer_lowest_filament": "false", "check_updates": "true", "check_printer_firmware": "true", "include_beta_updates": "false", "notification_language": "en", "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", "queue_drying_enabled": "false", "queue_drying_block": "false", "ambient_drying_enabled": "false", "drying_presets": "", "per_printer_mapping_expanded": "false", "date_format": "system", "time_format": "system", "default_printer_id": "1", "ftp_retry_enabled": "true", "ftp_retry_count": "3", "ftp_retry_delay": "2", "ftp_timeout": "30", "mqtt_enabled": "false", "mqtt_broker": "", "mqtt_port": "1883", "mqtt_username": "", "mqtt_password": "", "mqtt_topic_prefix": "bambuddy", "mqtt_use_tls": "false", "external_url": "[REDACTED]", "ha_enabled": "true", "ha_url": "[REDACTED]", "ha_token": "[REDACTED]", "library_archive_mode": "ask", "library_disk_warning_gb": "5.0", "camera_view_mode": "window", "preferred_slicer": "bambu_studio", "prometheus_enabled": "false", "prometheus_token": "", "user_notifications_enabled": "true", "default_bed_levelling": "true", "default_flow_cali": "false", "default_vibration_cali": "true", "default_layer_inspect": "false", "default_timelapse": "false", "stagger_group_size": "2", "stagger_interval_minutes": "5", "require_plate_clear": "false", "debug_logging_enabled": "false", "debug_logging_enabled_at": "" }, "virtual_printers": [], "integrations": { "notification_providers": [], "spoolman": { "enabled": false, "reachable": false }, "mqtt_relay": { "enabled": false, "connected": false, "broker": "", "port": 0, "topic_prefix": "bambuddy" }, "spoolbuddy": { "device_count": 0, "online_count": 0, "devices": [] }, "homeassistant": { "enabled": true } }, "database_health": { "backend": "sqlite", "journal_mode": "wal", "quick_check": "ok", "db_size_bytes": 516096, "wal_size_bytes": 94792 }, "dependencies": { "fastapi": "0.136.0", "uvicorn": "0.44.0", "pydantic": "2.13.2", "sqlalchemy": "2.0.49", "paho-mqtt": "2.1.0", "psutil": "7.2.2", "httpx": "0.28.1", "aiofiles": "25.1.0", "cryptography": "46.0.7", "opencv-python-headless": "4.13.0.92", "numpy": "2.4.4" }, "log_file": { "size_bytes": 29844, "size_formatted": "29.1 KB" }, "network": { "interface_count": 1, "interfaces": [ { "name": "eth0", "subnet": "x.x.120.0/24" } ] }, "websockets": { "active_connections": 1 } } ``` </details> **Logs (sanitized):** [bambuddy.log](https://raw.githubusercontent.com/maziggy/bambuddy/bug-report-assets/logs/18a7c7fdeb8c419398d5f2d03ec57e12.log) --- *Submitted via BamBuddy Bug Report*
BreizhHardware 2026-05-06 12:32:29 +02:00
  • closed this issue
  • added the
    invalid
    label
Author
Owner

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

The debug log attached was captured after the print finished, so it only contains FINISH-state frames — nothing about how Bambuddy resolved the filament during archive creation.

Please

  1. Enable debug logging (https://wiki.bambuddy.cool/features/system-info/?h=debug#enable-debug-logging) before sending the next print from Bambu Studio, then leave it on until the print finishes and Bambuddy creates the archive. That captures slice_info, MQTT mapping, and tray_now transitions we need.
  2. In Bambu Studio, what filament profile was selected in the slicer when you clicked Print? (Bambu Studio's "Max volumetric speed test" bakes the slicer's active filament into the gcode — if the profile was ASA but the AMS slot holds PLA, the printer prints PLA but the archive metadata says ASA.)
  3. If possible, open the archive in Bambuddy and attach the .3mf / gcode it stored (Archive → menu → Download) — the slice_info.config inside tells us exactly what the slicer told Bambuddy was being used.
  4. Please upgrade to dev branch (you're on 0.2.3.1) — nothing has changed in the filament-detection path recently but let's rule out stale fixes.
<!-- gh-comment-id:4279734877 --> @maziggy commented on GitHub (Apr 20, 2026): The debug log attached was captured after the print finished, so it only contains FINISH-state frames — nothing about how Bambuddy resolved the filament during archive creation. Please 1. Enable debug logging (https://wiki.bambuddy.cool/features/system-info/?h=debug#enable-debug-logging) before sending the next print from Bambu Studio, then leave it on until the print finishes and Bambuddy creates the archive. That captures slice_info, MQTT mapping, and tray_now transitions we need. 2. In Bambu Studio, what filament profile was selected in the slicer when you clicked Print? (Bambu Studio's "Max volumetric speed test" bakes the slicer's active filament into the gcode — if the profile was ASA but the AMS slot holds PLA, the printer prints PLA but the archive metadata says ASA.) 3. If possible, open the archive in Bambuddy and attach the .3mf / gcode it stored (Archive → menu → Download) — the slice_info.config inside tells us exactly what the slicer told Bambuddy was being used. 4. Please upgrade to dev branch (you're on 0.2.3.1) — nothing has changed in the filament-detection path recently but let's rule out stale fixes.
Author
Owner

@Mcubamb commented on GitHub (Apr 20, 2026):

Sorry, my fault. I should have read the installation guide more carefully. I forgot about Step 4: Enable "Store sent files on external storage".

<!-- gh-comment-id:4280762271 --> @Mcubamb commented on GitHub (Apr 20, 2026): Sorry, my fault. I should have read the installation guide more carefully. I forgot about Step 4: Enable "Store sent files on external storage".
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#742
No description provided.