Skip to content

[Bug] Cover image and Camera not working for my H2D #1378

Description

@cniry

Home Assistant Version

2025.6.1

Bambu Lab Integration Version

2.1.20

Describe the bug

Cover image and Camera not working for H2D

Image

To Reproduce

Expected Behaviour

It should work

What device are you using?

H2D

Diagnostic Output

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2025.6.1",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.13.3",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Prague",
    "os_name": "Linux",
    "os_version": "6.6.74-haos-raspi",
    "supervisor": "2025.05.5",
    "host_os": "Home Assistant OS 15.2",
    "docker_version": "28.0.4",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "nodered": {
      "documentation": "https://zachowj.github.io/node-red-contrib-home-assistant-websocket/guide/custom_integration/",
      "version": "4.1.2",
      "requirements": []
    },
    "golemio": {
      "documentation": "https://github.com/Cmajda/ha_golemio",
      "version": "0.0.4",
      "requirements": []
    },
    "home_connect_alt": {
      "documentation": "https://github.com/ekutner/home-connect-hass",
      "version": "1.2.1",
      "requirements": [
        "home-connect-async==0.8.2"
      ]
    },
    "xiaomi_miot": {
      "documentation": "https://github.com/al-one/hass-xiaomi-miot",
      "version": "1.0.19",
      "requirements": [
        "construct>=2.10.68",
        "python-miio>=0.5.12",
        "micloud>=0.5"
      ]
    },
    "bambu_lab": {
      "documentation": "https://github.com/greghesp/ha-bambulab",
      "version": "2.1.20",
      "requirements": [
        "beautifulsoup4"
      ]
    },
    "smartthinq_sensors": {
      "documentation": "https://github.com/ollo69/ha-smartthinq-sensors",
      "version": "0.41.1",
      "requirements": [
        "pycountry>=23.12.11",
        "xmltodict>=0.13.0",
        "charset_normalizer>=3.2.0"
      ]
    },
    "rpi_gpio": {
      "documentation": "https://github.com/thecode/ha-rpi_gpio",
      "version": "2025.2.1",
      "requirements": [
        "gpiod>=2.2.1"
      ]
    },
    "openwrt": {
      "documentation": "https://github.com/kvj/hass_openwrt",
      "version": "0.2.1",
      "requirements": []
    },
    "hacs": {
      "documentation": "https://hacs.xyz/docs/use/",
      "version": "2.0.5",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "dreame_vacuum": {
      "documentation": "https://github.com/Tasshack/dreame-vacuum",
      "version": "v1.0.5",
      "requirements": [
        "pillow",
        "numpy",
        "pybase64",
        "requests",
        "pycryptodome",
        "python-miio",
        "py-mini-racer",
        "paho-mqtt"
      ]
    },
    "var": {
      "documentation": "https://github.com/snarky-snark/home-assistant-variables/blob/master/README.md",
      "version": "0.15.5",
      "requirements": []
    },
    "battery_notes": {
      "documentation": "https://andrew-codechimp.github.io/HA-Battery-Notes/",
      "version": "2.9.12",
      "requirements": []
    },
    "alarmo": {
      "documentation": "https://github.com/nielsfaber/alarmo",
      "version": "v1.10.9",
      "requirements": []
    },
    "scheduler": {
      "documentation": "https://github.com/nielsfaber/scheduler-component",
      "version": "v0.0.0",
      "requirements": []
    }
  },
  "integration_manifest": {
    "domain": "bambu_lab",
    "name": "Bambu Lab",
    "codeowners": [
      "greghesp",
      "AdrianGarside"
    ],
    "config_flow": true,
    "dependencies": [
      "device_automation",
      "ffmpeg",
      "frontend",
      "http",
      "lovelace",
      "mqtt",
      "websocket_api"
    ],
    "documentation": "https://github.com/greghesp/ha-bambulab",
    "iot_class": "local_push",
    "issue_tracker": "https://github.com/greghesp/ha-bambulab/issues",
    "requirements": [
      "beautifulsoup4"
    ],
    "ssdp": [
      {
        "st": "urn:bambulab-com:device:3dprinter:1"
      }
    ],
    "version": "2.1.20",
    "is_built_in": false,
    "overwrites_built_in": false
  },
  "setup_times": {
    "null": {
      "setup": 6.585200000586156e-05
    },
    "01JXDFTQYZYW6JFF5VMG9WN3M7": {
      "wait_import_platforms": -1.4516859510000018,
      "wait_base_component": -0.003424192000011317,
      "config_entry_setup": 1.5416752990000049,
      "config_entry_platform_setup": 0.11987384600000439
    }
  },
  "data": {
    "config_entry": {
      "created_at": "2025-06-10T17:57:24.064045+00:00",
      "data": {
        "device_type": "H2D",
        "serial": "**REDACTED**"
      },
      "discovery_keys": {},
      "disabled_by": null,
      "domain": "bambu_lab",
      "entry_id": "01JXDFTQYZYW6JFF5VMG9WN3M7",
      "minor_version": 1,
      "modified_at": "2025-06-22T15:07:28.586451+00:00",
      "options": {
        "access_code": "**REDACTED**",
        "auth_token": "**REDACTED**",
        "developer_lan_mode": false,
        "disable_ssl_verify": false,
        "email": "**REDACTED**",
        "enable_download_gcode_file": true,
        "enable_firmware_update": false,
        "force_ip": false,
        "host": "192.168.1.127",
        "local_mqtt": true,
        "name": "3D Printer",
        "region": "Europe",
        "usage_hours": 101.31000000000002,
        "username": null
      },
      "pref_disable_new_entities": false,
      "pref_disable_polling": false,
      "source": "user",
      "subentries": [],
      "title": "**REDACTED**",
      "unique_id": null,
      "version": 2
    },
    "pushall": {
      "print": {
        "2D": {
          "bs": {
            "bi": [
              {
                "clock_in": false,
                "est_time": 0,
                "idx": 0,
                "print_then": false,
                "proc_list": [],
                "step_type": 1,
                "tool_info": {
                  "color": "",
                  "diameter": 0.4000000059604645,
                  "id": 8978432
                },
                "type": 137
              }
            ],
            "total_time": 0
          },
          "cond": 14,
          "cur_stage": {
            "clock_in_time": 0,
            "idx": 0,
            "left_time": 0,
            "process": 0,
            "state": 0
          },
          "first_confirm": false,
          "makeable": false,
          "material": {
            "cur_id_list": [],
            "state": 0,
            "tar_id": "",
            "tar_name": ""
          }
        },
        "3D": {
          "layer_num": 139,
          "total_layer_num": 363
        },
        "ams": {
          "ams": [
            {
              "dry_time": 0,
              "humidity": "4",
              "humidity_raw": "19",
              "id": "0",
              "info": "1003",
              "temp": "31.7",
              "tray": [
                {
                  "id": "0",
                  "state": 10
                },
                {
                  "bed_temp": "0",
                  "bed_temp_type": "0",
                  "cali_idx": -1,
                  "cols": [
                    "161616FF"
                  ],
                  "ctype": 0,
                  "drying_temp": "0",
                  "drying_time": "0",
                  "id": "1",
                  "nozzle_temp_max": "240",
                  "nozzle_temp_min": "190",
                  "remain": -1,
                  "state": 11,
                  "tag_uid": "0000000000000000",
                  "total_len": 330000,
                  "tray_color": "161616FF",
                  "tray_diameter": "1.75",
                  "tray_id_name": "",
                  "tray_info_idx": "GFL99",
                  "tray_sub_brands": "",
                  "tray_type": "PLA",
                  "tray_uuid": "00000000000000000000000000000000",
                  "tray_weight": "0",
                  "xcam_info": "000000000000000000000000"
                },
                {
                  "bed_temp": "0",
                  "bed_temp_type": "0",
                  "cali_idx": -1,
                  "cols": [
                    "F72323FF"
                  ],
                  "ctype": 0,
                  "drying_temp": "0",
                  "drying_time": "0",
                  "id": "2",
                  "nozzle_temp_max": "240",
                  "nozzle_temp_min": "190",
                  "remain": -1,
                  "state": 11,
                  "tag_uid": "0000000000000000",
                  "total_len": 330000,
                  "tray_color": "F72323FF",
                  "tray_diameter": "1.75",
                  "tray_id_name": "",
                  "tray_info_idx": "GFL99",
                  "tray_sub_brands": "",
                  "tray_type": "PLA",
                  "tray_uuid": "00000000000000000000000000000000",
                  "tray_weight": "0",
                  "xcam_info": "000000000000000000000000"
                },
                {
                  "bed_temp": "0",
                  "bed_temp_type": "0",
                  "cali_idx": -1,
                  "cols": [
                    "C1C1C1FF"
                  ],
                  "ctype": 0,
                  "drying_temp": "0",
                  "drying_time": "0",
                  "id": "3",
                  "nozzle_temp_max": "240",
                  "nozzle_temp_min": "190",
                  "remain": -1,
                  "state": 11,
                  "tag_uid": "0000000000000000",
                  "total_len": 330000,
                  "tray_color": "C1C1C1FF",
                  "tray_diameter": "1.75",
                  "tray_id_name": "",
                  "tray_info_idx": "GFS99",
                  "tray_sub_brands": "",
                  "tray_type": "PVA",
                  "tray_uuid": "00000000000000000000000000000000",
                  "tray_weight": "0",
                  "xcam_info": "000000000000000000000000"
                }
              ]
            }
          ],
          "ams_exist_bits": "1",
          "ams_exist_bits_raw": "1",
          "cali_id": 255,
          "cali_stat": 0,
          "insert_flag": true,
          "power_on_flag": false,
          "tray_exist_bits": "e",
          "tray_is_bbl_bits": "e",
          "tray_now": "0",
          "tray_pre": "0",
          "tray_read_done_bits": "e",
          "tray_reading_bits": "0",
          "tray_tar": "0",
          "unbind_ams_stat": 0,
          "version": 7621
        },
        "ams_rfid_status": 0,
        "ams_status": 768,
        "ap_err": 0,
        "aux": "2000004",
        "aux_part_fan": false,
        "batch_id": 0,
        "bed_target_temper": 55.0,
        "bed_temper": 55.0,
        "big_fan1_speed": "10",
        "big_fan2_speed": "5",
        "cali_version": 0,
        "canvas_id": 0,
        "care": [
          {
            "id": "lr",
            "info": "1864"
          },
          {
            "id": "fa",
            "info": "1864"
          },
          {
            "id": "ls",
            "info": "1864"
          },
          {
            "id": "cr",
            "info": "1864"
          },
          {
            "id": "ld",
            "info": "1864"
          }
        ],
        "cfg": "1857DA91",
        "chamber_temper": 33.0,
        "command": "push_status",
        "cooling_fan_speed": "15",
        "ctt": 0.0,
        "design_id": "960909",
        "device": {
          "airduct": {
            "modeCur": 0,
            "modeList": [
              {
                "ctrl": [
                  16,
                  32,
                  48
                ],
                "modeId": 0,
                "off": [
                  96
                ]
              },
              {
                "ctrl": [
                  16
                ],
                "modeId": 1,
                "off": [
                  32,
                  48
                ]
              },
              {
                "ctrl": [
                  48
                ],
                "modeId": 2,
                "off": []
              }
            ],
            "parts": [
              {
                "func": 0,
                "id": 16,
                "range": 6553600,
                "state": 100
              },
              {
                "func": 1,
                "id": 32,
                "range": 6553600,
                "state": 70
              },
              {
                "func": 2,
                "id": 48,
                "range": 6553600,
                "state": 40
              },
              {
                "func": 3,
                "id": 96,
                "range": 6553600,
                "state": 0
              }
            ]
          },
          "bed": {
            "info": {
              "temp": 3604535
            },
            "state": 2
          },
          "bed_temp": 3604535,
          "cam": {
            "laser": {
              "cond": 252,
              "state": 0
            }
          },
          "cham_temp": 33,
          "ctc": {
            "info": {
              "temp": 32
            },
            "state": 0
          },
          "ext_tool": {
            "calib": 2,
            "low_prec": true,
            "mount": 0,
            "th_temp": 0,
            "type": ""
          },
          "extruder": {
            "info": [
              {
                "filam_bak": [],
                "hnow": 0,
                "hpre": 0,
                "htar": 0,
                "id": 0,
                "info": 15,
                "snow": 3,
                "spre": 3,
                "star": 3,
                "stat": 196608,
                "temp": 41
              },
              {
                "filam_bak": [],
                "hnow": 1,
                "hpre": 1,
                "htar": 1,
                "id": 1,
                "info": 94,
                "snow": 65024,
                "spre": 65024,
                "star": 65024,
                "stat": 197376,
                "temp": 13107400
              }
            ],
            "state": 33042
          },
          "fan": 419445,
          "laser": {
            "power": 0
          },
          "nozzle": {
            "exist": 3,
            "info": [
              {
                "diameter": 0.4,
                "id": 0,
                "tm": 0,
                "type": "HS01",
                "wear": 0
              },
              {
                "diameter": 0.4,
                "id": 1,
                "tm": 0,
                "type": "HS01",
                "wear": 0
              }
            ],
            "state": 0
          },
          "plate": {
            "base": 4,
            "cali2d_id": "",
            "cur_id": "P0101",
            "mat": 1,
            "tar_id": ""
          },
          "type": 1
        },
        "err": "0",
        "fail_reason": "0",
        "fan_gear": 5944063,
        "file": "/data/Metadata/plate_1.gcode",
        "force_upgrade": false,
        "fun": "41AFFF9CFF",
        "gcode_file": "/data/Metadata/plate_1.gcode",
        "gcode_file_prepare_percent": "100",
        "gcode_state": "RUNNING",
        "heatbreak_fan_speed": "14",
        "hms": [],
        "home_flag": -1066937185,
        "hw_switch_state": 3,
        "ipcam": {
          "agora_service": "disable",
          "brtc_service": "enable",
          "bs_state": 0,
          "ipcam_dev": "1",
          "ipcam_record": "disable",
          "laser_preview_res": 5,
          "mode_bits": 2,
          "resolution": "1080p",
          "rtsp_url": "**REDACTED**",
          "timelapse": "disable",
          "tl_store_hpd_type": 2,
          "tl_store_path_type": 2,
          "tutk_server": "disable"
        },
        "job": {
          "cur_stage": {
            "idx": 0,
            "state": 2
          },
          "stage": [
            {
              "clock_in": false,
              "color": [
                "",
                ""
              ],
              "diameter": [
                0.4000000059604645,
                0.4000000059604645
              ],
              "est_time": 0,
              "heigh": 0.0,
              "idx": 0,
              "platform": "",
              "print_then": false,
              "proc_list": [],
              "tool": [
                "HS01",
                "HS01"
              ],
              "type": 2
            }
          ]
        },
        "job_attr": 17,
        "job_id": "387504082",
        "lan_task_id": "0",
        "layer_num": 139,
        "lights_report": [
          {
            "mode": "on",
            "node": "chamber_light"
          },
          {
            "mode": "flashing",
            "node": "work_light"
          },
          {
            "mode": "on",
            "node": "chamber_light2"
          }
        ],
        "maintain": 3,
        "mapping": [
          65024,
          2,
          1,
          3
        ],
        "mc_action": 0,
        "mc_err": 0,
        "mc_percent": 43,
        "mc_print_error_code": "0",
        "mc_print_stage": "2",
        "mc_print_sub_stage": 0,
        "mc_remaining_time": 290,
        "mc_stage": 2,
        "model_id": "US301deca36da7a8",
        "net": {
          "conf": 16,
          "info": [
            {
              "ip": 2130815168,
              "mask": 16777215
            },
            {
              "ip": 0,
              "mask": 0
            }
          ]
        },
        "nozzle_diameter": "0.4",
        "nozzle_target_temper": 0.0,
        "nozzle_temper": 41.0,
        "nozzle_type": "stainless_steel",
        "online": {
          "ahb": true,
          "ext": true,
          "version": 7
        },
        "percent": 43,
        "plate_cnt": 1,
        "plate_id": 1,
        "plate_idx": 1,
        "prepare_per": 100,
        "print_error": 0,
        "print_gcode_action": 0,
        "print_real_action": 0,
        "print_type": "cloud",
        "profile_id": "333889412",
        "project_id": "363758621",
        "queue": 0,
        "queue_est": 0,
        "queue_number": 0,
        "queue_sts": 0,
        "queue_total": 0,
        "remain_time": 290,
        "s_obj": [],
        "sdcard": false,
        "sequence_id": "2021",
        "spd_lvl": 2,
        "spd_mag": 100,
        "stat": "1638218070",
        "state": 4,
        "stg": [
          29,
          13,
          4,
          8,
          14,
          1,
          3,
          39
        ],
        "stg_cur": 0,
        "subtask_id": "739799561",
        "subtask_name": "Knitted Baymax By Pinkywings",
        "task_id": "739799560",
        "total_layer_num": 363,
        "upgrade_state": {
          "ahb_new_version_number": "",
          "ams_new_version_number": "",
          "consistency_request": false,
          "dis_state": 0,
          "err_code": 0,
          "ext_new_version_number": "",
          "force_upgrade": false,
          "idx": 7,
          "idx2": 858840900,
          "lower_limit": "00.00.00.00",
          "message": "",
          "module": "",
          "new_version_state": 2,
          "ota_new_version_number": "",
          "progress": "0",
          "sequence_id": 0,
          "sn": "**REDACTED**",
          "status": "IDLE"
        },
        "upload": {
          "file_size": 0,
          "finish_size": 0,
          "message": "Good",
          "oss_url": "",
          "progress": 0,
          "sequence_id": "0903",
          "speed": 0,
          "status": "idle",
          "task_id": "",
          "time_remaining": 0,
          "trouble_id": ""
        },
        "ver": "20018",
        "vir_slot": [
          {
            "bed_temp": "0",
            "bed_temp_type": "0",
            "cali_idx": -1,
            "cols": [
              "FFFFFFFF"
            ],
            "ctype": 0,
            "drying_temp": "0",
            "drying_time": "0",
            "id": "254",
            "nozzle_temp_max": "240",
            "nozzle_temp_min": "190",
            "remain": 0,
            "tag_uid": "0000000000000000",
            "total_len": 330000,
            "tray_color": "FFFFFFFF",
            "tray_diameter": "1.75",
            "tray_id_name": "",
            "tray_info_idx": "GFA00",
            "tray_sub_brands": "",
            "tray_type": "PLA",
            "tray_uuid": "00000000000000000000000000000000",
            "tray_weight": "0",
            "xcam_info": "000000000000000000000000"
          },
          {
            "bed_temp": "0",
            "bed_temp_type": "0",
            "cali_idx": -1,
            "cols": [
              "00000000"
            ],
            "ctype": 0,
            "drying_temp": "0",
            "drying_time": "0",
            "id": "255",
            "nozzle_temp_max": "240",
            "nozzle_temp_min": "190",
            "remain": 0,
            "tag_uid": "0000000000000000",
            "total_len": 330000,
            "tray_color": "00000000",
            "tray_diameter": "1.75",
            "tray_id_name": "",
            "tray_info_idx": "GFA00",
            "tray_sub_brands": "",
            "tray_type": "PLA",
            "tray_uuid": "00000000000000000000000000000000",
            "tray_weight": "0",
            "xcam_info": "000000000000000000000000"
          }
        ],
        "vt_tray": {
          "bed_temp": "0",
          "bed_temp_type": "0",
          "cali_idx": -1,
          "cols": [
            "00000000"
          ],
          "ctype": 0,
          "drying_temp": "0",
          "drying_time": "0",
          "id": "255",
          "nozzle_temp_max": "240",
          "nozzle_temp_min": "190",
          "remain": 0,
          "tag_uid": "0000000000000000",
          "total_len": 330000,
          "tray_color": "00000000",
          "tray_diameter": "1.75",
          "tray_id_name": "",
          "tray_info_idx": "GFA00",
          "tray_sub_brands": "",
          "tray_type": "PLA",
          "tray_uuid": "00000000000000000000000000000000",
          "tray_weight": "0",
          "xcam_info": "000000000000000000000000"
        },
        "wifi_signal": "-68dBm",
        "xcam": {
          "allow_skip_parts": false,
          "buildplate_marker_detector": true,
          "cfg": 224695,
          "first_layer_inspector": true,
          "halt_print_sensitivity": "medium",
          "print_halt": true,
          "printing_monitor": true,
          "spaghetti_detector": true
        },
        "xcam_status": "0"
      }
    },
    "get_version": {
      "info": {
        "command": "get_version",
        "module": [
          {
            "flag": 3,
            "hw_ver": "N/A",
            "loader_ver": "00.00.00.00",
            "name": "ota",
            "product_name": "Bambu Lab H2D",
            "sn": "**REDACTED**",
            "sw_ver": "01.01.02.08",
            "visible": true
          },
          {
            "flag": 0,
            "hw_ver": "N3F05",
            "loader_ver": "00.00.00.00",
            "name": "n3f/0",
            "product_name": "AMS 2 Pro (1)",
            "sn": "**REDACTED**",
            "sw_ver": "02.00.19.68",
            "visible": true
          },
          {
            "flag": 0,
            "hw_ver": "AHB02",
            "loader_ver": "00.00.00.21",
            "name": "ahb",
            "product_name": "",
            "sn": "**REDACTED**",
            "sw_ver": "02.00.09.67",
            "visible": false
          },
          {
            "flag": 0,
            "hw_ver": "MC09",
            "loader_ver": "02.05.57.52",
            "name": "mc",
            "product_name": "",
            "sn": "**REDACTED**",
            "sw_ver": "02.05.57.52",
            "visible": false
          },
          {
            "flag": 0,
            "hw_ver": "N/A",
            "loader_ver": "02.05.57.52",
            "name": "mc-sub",
            "product_name": "",
            "sn": "**REDACTED**",
            "sw_ver": "02.05.57.52",
            "visible": false
          },
          {
            "flag": 0,
            "hw_ver": "TH08",
            "loader_ver": "00.00.17.22",
            "name": "th",
            "product_name": "",
            "sn": "**REDACTED**",
            "sw_ver": "02.01.17.55",
            "visible": false
          },
          {
            "flag": 0,
            "hw_ver": "EXT07",
            "loader_ver": "00.00.01.00",
            "name": "ext",
            "product_name": "",
            "sn": "**REDACTED**",
            "sw_ver": "00.00.08.18",
            "visible": false
          },
          {
            "flag": 0,
            "hw_ver": "SMC09",
            "loader_ver": "00.00.09.26",
            "name": "smc",
            "product_name": "",
            "sn": "**REDACTED**",
            "sw_ver": "02.01.12.00",
            "visible": false
          },
          {
            "flag": 0,
            "hw_ver": "AP05",
            "loader_ver": "00.00.01.11",
            "name": "ap",
            "product_name": "",
            "sn": "**REDACTED**",
            "sw_ver": "00.00.51.98",
            "visible": false
          }
        ],
        "sequence_id": "0"
      }
    }
  }
}

Log Extracts

Other Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions