Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Spool Card does not recognize the spool entities #1081

Open
lxffm opened this issue Feb 24, 2025 · 5 comments
Open

[Bug] Spool Card does not recognize the spool entities #1081

lxffm opened this issue Feb 24, 2025 · 5 comments
Labels
bug Something isn't working cards

Comments

@lxffm
Copy link

lxffm commented Feb 24, 2025

Home Assistant Version

2025.2.5

Bambu Lab Integration Version

v2.1.5

Describe the bug

I struggle with setting up the spool card.

I can't actually add spools as the card does not accept them. I can't find them by searching for them in the Entity field, and it won't even accept them wenn I add the entity in YAML. Only entities it will accept is the external Spool and the AMS itself, but then it will only show the Filament in Slot 4.

I'm on a P1S, and the other cards work correct for me. Only the spool card has it's issues for me.

Image Image Image Image Image

To Reproduce

Just try to set-up a Spool Card.

Expected Behaviour

I want to be able to configure the different spools in the Card

What device are you using?

P1S

Diagnostic Output

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2025.2.5",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.13.1",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "6.6.62-haos-raspi",
    "supervisor": "2025.02.1",
    "host_os": "Home Assistant OS 14.2",
    "docker_version": "27.2.0",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "gardena_smart_system": {
      "documentation": "https://github.com/py-smart-gardena/hass-gardena-smart-system",
      "version": "1.1.1",
      "requirements": [
        "py-smart-gardena==1.3.9",
        "oauthlib==3.2.2"
      ]
    },
    "pyscript": {
      "documentation": "https://github.com/custom-components/pyscript",
      "version": "1.6.1",
      "requirements": [
        "croniter==2.0.2",
        "watchdog==2.3.1"
      ]
    },
    "homematicip_local": {
      "documentation": "https://github.com/sukramj/custom_homematic",
      "version": "1.81.2",
      "requirements": [
        "hahomematic==2025.2.5"
      ]
    },
    "alexa_media": {
      "documentation": "https://github.com/alandtse/alexa_media_player/wiki",
      "version": "5.4.0",
      "requirements": [
        "alexapy==1.29.5",
        "packaging>=20.3",
        "wrapt>=1.14.0"
      ]
    },
    "waste_collection_schedule": {
      "documentation": "https://github.com/mampfes/hacs_waste_collection_schedule#readme",
      "version": "2.6.0",
      "requirements": [
        "icalendar",
        "icalevents>=0.1.26,!=0.1.28",
        "beautifulsoup4",
        "lxml",
        "pycryptodome"
      ]
    },
    "better_thermostat": {
      "documentation": "https://github.com/KartoffelToby/better_thermostat",
      "version": "1.6.1",
      "requirements": []
    },
    "oilfox": {
      "documentation": "https://github.com/chises/ha-oilfox",
      "version": "1.2.4",
      "requirements": [
        "aiohttp>=3.9.3"
      ]
    },
    "smaev": {
      "documentation": "https://github.com/alengwenus/ha-sma-ev-charger",
      "version": "1.2.0",
      "requirements": [
        "pysmaev==0.1.7"
      ]
    },
    "hacs": {
      "documentation": "https://hacs.xyz/docs/use/",
      "version": "2.0.5",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "switch_manager": {
      "documentation": "https://github.com/Sian-Lee-SA/Home-Assistant-Switch-Manager",
      "version": "2.0.3",
      "requirements": []
    },
    "alarmo": {
      "documentation": "https://github.com/nielsfaber/alarmo",
      "version": "v1.10.7",
      "requirements": []
    },
    "bambu_lab": {
      "documentation": "https://github.com/greghesp/ha-bambulab",
      "version": "2.1.5",
      "requirements": [
        "cloudscraper"
      ]
    },
    "auto_backup": {
      "documentation": "https://github.com/jcwillox/hass-auto-backup",
      "version": "1.8.1",
      "requirements": []
    }
  },
  "integration_manifest": {
    "domain": "bambu_lab",
    "name": "Bambu Lab",
    "codeowners": [
      "greghesp",
      "AdrianGarside"
    ],
    "config_flow": true,
    "dependencies": [
      "device_automation",
      "http",
      "websocket_api",
      "ffmpeg",
      "mqtt",
      "frontend",
      "lovelace"
    ],
    "documentation": "https://github.com/greghesp/ha-bambulab",
    "iot_class": "local_push",
    "issue_tracker": "https://github.com/greghesp/ha-bambulab/issues",
    "requirements": [
      "cloudscraper"
    ],
    "ssdp": [
      {
        "st": "urn:bambulab-com:device:3dprinter:1"
      }
    ],
    "version": "2.1.5",
    "is_built_in": false,
    "overwrites_built_in": false
  },
  "setup_times": {
    "null": {
      "setup": 2.4333829060196877e-05
    },
    "01JDSCP09RJTNM0P6237M1QBSB": {
      "wait_import_platforms": -0.48369240295141935,
      "config_entry_setup": 0.6524061888922006,
      "config_entry_platform_setup": 0.013785891933366656
    }
  },
  "data": {
    "config_entry": {
      "created_at": "2024-11-28T12:42:07.032803+00:00",
      "data": {
        "device_type": "P1S",
        "serial": "**REDACTED**"
      },
      "discovery_keys": {},
      "disabled_by": null,
      "domain": "bambu_lab",
      "entry_id": "01JDSCP09RJTNM0P6237M1QBSB",
      "minor_version": 1,
      "modified_at": "2025-02-23T23:19:53.007612+00:00",
      "options": {
        "access_code": "**REDACTED**",
        "auth_token": "**REDACTED**",
        "email": "**REDACTED**",
        "enable_camera": true,
        "host": "10.0.1.137",
        "local_mqtt": false,
        "name": "Bambu Lab P1S",
        "region": "Europe",
        "usage_hours": 954.4799999999997,
        "username": "**REDACTED**"
      },
      "pref_disable_new_entities": false,
      "pref_disable_polling": false,
      "source": "user",
      "title": "**REDACTED**",
      "unique_id": null,
      "version": 2
    },
    "push_all": {
      "upgrade_state": {
        "sequence_id": 0,
        "progress": "",
        "status": "IDLE",
        "consistency_request": false,
        "dis_state": 0,
        "err_code": 0,
        "force_upgrade": false,
        "message": "0%, 0B/s",
        "module": "",
        "new_version_state": 2,
        "cur_state_code": 0,
        "idx2": 1798790764,
        "new_ver_list": []
      },
      "ipcam": {
        "ipcam_dev": "1",
        "ipcam_record": "enable",
        "timelapse": "disable",
        "resolution": "",
        "tutk_server": "disable",
        "mode_bits": 3
      },
      "upload": {
        "status": "idle",
        "progress": 0,
        "message": ""
      },
      "net": {
        "conf": 0,
        "info": [
          {
            "ip": 2298544138,
            "mask": 15794175
          }
        ]
      },
      "nozzle_temper": 24,
      "nozzle_target_temper": 0,
      "bed_temper": 24.28125,
      "bed_target_temper": 0,
      "chamber_temper": 5,
      "mc_print_stage": "1",
      "heatbreak_fan_speed": "0",
      "cooling_fan_speed": "0",
      "big_fan1_speed": "0",
      "big_fan2_speed": "0",
      "mc_percent": 0,
      "mc_remaining_time": 0,
      "ams_status": 0,
      "ams_rfid_status": 0,
      "hw_switch_state": 0,
      "spd_mag": 100,
      "spd_lvl": 2,
      "print_error": 0,
      "lifecycle": "product",
      "wifi_signal": "-93dBm",
      "gcode_state": "IDLE",
      "gcode_file_prepare_percent": "0",
      "queue_number": 0,
      "queue_total": 0,
      "queue_est": 0,
      "queue_sts": 0,
      "project_id": "0",
      "profile_id": "0",
      "task_id": "0",
      "subtask_id": "0",
      "subtask_name": "",
      "gcode_file": "",
      "stg": [],
      "stg_cur": 0,
      "print_type": "idle",
      "home_flag": 24331544,
      "mc_print_line_number": "0",
      "mc_print_sub_stage": 0,
      "sdcard": true,
      "force_upgrade": false,
      "mess_production_state": "active",
      "layer_num": 0,
      "total_layer_num": 0,
      "s_obj": [],
      "filam_bak": [],
      "fan_gear": 0,
      "nozzle_diameter": "0.4",
      "nozzle_type": "stainless_steel",
      "cali_version": 0,
      "k": "0.0000",
      "flag3": 15,
      "hms": [],
      "online": {
        "ahb": false,
        "rfid": false,
        "version": 1925249582
      },
      "ams": {
        "ams": [
          {
            "id": "0",
            "humidity": "4",
            "temp": "0.0",
            "tray": [
              {
                "id": "0",
                "remain": -1,
                "k": 0.019999999552965164,
                "n": 1,
                "cali_idx": -1,
                "tag_uid": "0000000000000000",
                "tray_id_name": "",
                "tray_info_idx": "GFL05",
                "tray_type": "PLA",
                "tray_sub_brands": "",
                "tray_color": "FFFFFFFF",
                "tray_weight": "0",
                "tray_diameter": "0.00",
                "tray_temp": "0",
                "tray_time": "0",
                "bed_temp_type": "0",
                "bed_temp": "0",
                "nozzle_temp_max": "240",
                "nozzle_temp_min": "190",
                "xcam_info": "000000000000000000000000",
                "tray_uuid": "00000000000000000000000000000000",
                "ctype": 0,
                "cols": [
                  "FFFFFFFF"
                ]
              },
              {
                "id": "1",
                "remain": -1,
                "k": 0.019999999552965164,
                "n": 1,
                "cali_idx": -1,
                "tag_uid": "0000000000000000",
                "tray_id_name": "",
                "tray_info_idx": "GFL96",
                "tray_type": "PLA",
                "tray_sub_brands": "",
                "tray_color": "F9A846FF",
                "tray_weight": "0",
                "tray_diameter": "0.00",
                "tray_temp": "0",
                "tray_time": "0",
                "bed_temp_type": "0",
                "bed_temp": "0",
                "nozzle_temp_max": "240",
                "nozzle_temp_min": "190",
                "xcam_info": "000000000000000000000000",
                "tray_uuid": "00000000000000000000000000000000",
                "ctype": 0,
                "cols": [
                  "F9A846FF"
                ]
              },
              {
                "id": "2",
                "remain": -1,
                "k": 0.019999999552965164,
                "n": 1,
                "cali_idx": -1,
                "tag_uid": "0000000000000000",
                "tray_id_name": "",
                "tray_info_idx": "GFL96",
                "tray_type": "PLA",
                "tray_sub_brands": "",
                "tray_color": "44F1FFFF",
                "tray_weight": "0",
                "tray_diameter": "0.00",
                "tray_temp": "0",
                "tray_time": "0",
                "bed_temp_type": "0",
                "bed_temp": "0",
                "nozzle_temp_max": "240",
                "nozzle_temp_min": "190",
                "xcam_info": "000000000000000000000000",
                "tray_uuid": "00000000000000000000000000000000",
                "ctype": 0,
                "cols": [
                  "44F1FFFF"
                ]
              },
              {
                "id": "3",
                "remain": -1,
                "k": 0.019999999552965164,
                "n": 1,
                "cali_idx": -1,
                "tag_uid": "0000000000000000",
                "tray_id_name": "",
                "tray_info_idx": "GFL96",
                "tray_type": "PLA",
                "tray_sub_brands": "",
                "tray_color": "DDB1D4FF",
                "tray_weight": "0",
                "tray_diameter": "0.00",
                "tray_temp": "0",
                "tray_time": "0",
                "bed_temp_type": "0",
                "bed_temp": "0",
                "nozzle_temp_max": "240",
                "nozzle_temp_min": "190",
                "xcam_info": "000000000000000000000000",
                "tray_uuid": "00000000000000000000000000000000",
                "ctype": 0,
                "cols": [
                  "DDB1D4FF"
                ]
              }
            ]
          }
        ],
        "ams_exist_bits": "1",
        "tray_exist_bits": "f",
        "tray_is_bbl_bits": "f",
        "tray_tar": "255",
        "tray_now": "255",
        "tray_pre": "255",
        "tray_read_done_bits": "f",
        "tray_reading_bits": "0",
        "version": 2,
        "insert_flag": true,
        "power_on_flag": false
      },
      "vt_tray": {
        "id": "254",
        "tag_uid": "0000000000000000",
        "tray_id_name": "",
        "tray_info_idx": "",
        "tray_type": "",
        "tray_sub_brands": "",
        "tray_color": "FFFFFFFF",
        "tray_weight": "0",
        "tray_diameter": "0.00",
        "tray_temp": "0",
        "tray_time": "0",
        "bed_temp_type": "0",
        "bed_temp": "0",
        "nozzle_temp_max": "0",
        "nozzle_temp_min": "0",
        "xcam_info": "000000000000000000000000",
        "tray_uuid": "00000000000000000000000000000000",
        "remain": 0,
        "k": 0.019999999552965164,
        "n": 1,
        "cali_idx": -1
      },
      "lights_report": [
        {
          "node": "chamber_light",
          "mode": "off"
        }
      ],
      "command": "push_status",
      "msg": 0,
      "sequence_id": "0"
    },
    "get_version": {
      "command": "get_version",
      "sequence_id": "0",
      "module": [
        {
          "name": "ota",
          "project_name": "C12",
          "sw_ver": "01.07.00.00",
          "hw_ver": "OTA",
          "sn": "**REDACTED**",
          "flag": 3
        },
        {
          "name": "esp32",
          "project_name": "C12",
          "sw_ver": "01.11.32.89",
          "hw_ver": "AP04",
          "sn": "**REDACTED**",
          "flag": 0
        },
        {
          "name": "mc",
          "project_name": "P1",
          "sw_ver": "00.00.29.75",
          "loader_ver": "00.00.00.28",
          "hw_ver": "MC07",
          "sn": "**REDACTED**",
          "flag": 0
        },
        {
          "name": "th",
          "project_name": "P1",
          "sw_ver": "00.00.09.95",
          "loader_ver": "00.00.00.14",
          "hw_ver": "TH09",
          "sn": "**REDACTED**",
          "flag": 0
        },
        {
          "name": "ams/0",
          "project_name": "",
          "sw_ver": "00.00.06.49",
          "loader_ver": "00.00.00.00",
          "ota_ver": "00.00.00.00",
          "hw_ver": "AMS08",
          "sn": "**REDACTED**",
          "flag": 0
        }
      ],
      "result": "success",
      "reason": ""
    }
  }
}

Log Extracts

Other Information

No response

@lxffm lxffm added the bug Something isn't working label Feb 24, 2025
@greghesp greghesp added the cards label Feb 24, 2025
@greghesp
Copy link
Owner

Ah, this is because it's designed for the external spool as it's its own device. Unsure how to do this at the moment as the trays are sensor's

@AdrianGarside
Copy link
Collaborator

Yep, you'd either have to add an option to filter an AMS down to a single spool since the spool itself isn't a device or add support for providing just a tray as an entity. The former seems cheaper?

@greghesp
Copy link
Owner

Ah that's not a bad idea actually. I'll have a play

@lxffm
Copy link
Author

lxffm commented Feb 25, 2025

thank you for the swift reply and taking care of. Maybe I was misled by some screenshots where I saw 4 spools of them in a row and I was assuming, it would naturally take the AMS Spools

@greghesp
Copy link
Owner

thank you for the swift reply and taking care of. Maybe I was misled by some screenshots where I saw 4 spools of them in a row and I was assuming, it would naturally take the AMS Spools

That's the vector AMS card. I'll take a look at this though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cards
Projects
None yet
Development

No branches or pull requests

3 participants