greghesp / ha-bambulab

A Home Assistant Integration for Bambu Lab Printers
698 stars 59 forks source link

[Bug]calibrating_extrusion and paused_front_cover_falling not being picked up for staus for X1C #478

Open scampa123 opened 4 months ago

scampa123 commented 4 months ago

Describe the bug

Today I setup ha-bambulab with WLED and esp32, and while most of the status light works as described, I noticed the following things didn't seem to work:

  1. When the printer was doing the calibration extrusion the lights tuned off (YAML blueprint says they should be on)
  2. I tried to test the error status by removing the printhead cover of the X1C and while my printer paused, the lights did not turn red per the yaml

I am using the Bambu X1C with the latest firmware

To Reproduce

Watch the status lights while the printer does the calibration at the start of a print job.

Error testing: Start a print and remove the cover of the print head on the X1C

Expected Behaviour

Unless I misunderstand how it should work, based on the YAML I should see the lights be on during the calibration phase (less of a concern to me but I noticed it!)

I'd expect the lights to turn red if the cover comes off the print head...or any error for that matter. If I am testing this incorrectly, please let me know. I'd just like to be sure the error lights work as expected.

What device are you using?

A1

Diagnostic Output

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2023.11.1",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.11.6",
    "docker": true,
    "arch": "aarch64",
    "timezone": "America/New_York",
    "os_name": "Linux",
    "os_version": "6.1.21-v8",
    "supervisor": "2024.02.0",
    "host_os": "Home Assistant OS 11.1",
    "docker_version": "24.0.6",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "bambu_lab": {
      "version": "2.0.15",
      "requirements": []
    },
    "hacs": {
      "version": "1.34.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    }
  },
  "integration_manifest": {
    "domain": "bambu_lab",
    "name": "Bambu Lab",
    "codeowners": [
      "@greghesp",
      "@AdrianGarside"
    ],
    "config_flow": true,
    "dependencies": [
      "device_automation",
      "ffmpeg",
      "mqtt"
    ],
    "documentation": "https://github.com/greghesp/ha-bambulab",
    "iot_class": "local_push",
    "issue_tracker": "https://github.com/greghesp/ha-bambulab/issues",
    "ssdp": [
      {
        "st": "urn:bambulab-com:device:3dprinter:1"
      }
    ],
    "version": "2.0.15",
    "is_built_in": false
  },
  "data": {
    "config_entry": {
      "entry_id": "305663ce2f7e8eb5b341e875f6050d73",
      "version": 2,
      "domain": "bambu_lab",
      "title": "**REDACTED**",
      "data": {
        "device_type": "X1C",
        "serial": "**REDACTED**"
      },
      "options": {
        "region": "NorthAmerica",
        "email": "**REDACTED**",
        "username": "**REDACTED**",
        "name": "3DP-00M-271",
        "host": "",
        "local_mqtt": false,
        "auth_token": "**REDACTED**",
        "access_code": "**REDACTED**",
        "usage_hours": 1.37
      },
      "pref_disable_new_entities": false,
      "pref_disable_polling": false,
      "source": "user",
      "unique_id": null,
      "disabled_by": null
    },
    "push_all": {
      "ams": {
        "ams": [
          {
            "humidity": "5",
            "id": "0",
            "temp": "28.6",
            "tray": [
              {
                "bed_temp": "35",
                "bed_temp_type": "1",
                "cali_idx": -1,
                "cols": [
                  "E8AFCFFF"
                ],
                "ctype": 0,
                "drying_temp": "55",
                "drying_time": "8",
                "id": "0",
                "nozzle_temp_max": "230",
                "nozzle_temp_min": "190",
                "remain": 0,
                "tag_uid": "F298757400000100",
                "tray_color": "E8AFCFFF",
                "tray_diameter": "1.75",
                "tray_id_name": "A01-P3",
                "tray_info_idx": "GFA01",
                "tray_sub_brands": "PLA Matte",
                "tray_type": "PLA",
                "tray_uuid": "A57331248A82430494418F44B4611181",
                "tray_weight": "1000",
                "xcam_info": "8813D007E803E8039A99193F"
              },
              {
                "bed_temp": "35",
                "bed_temp_type": "1",
                "cali_idx": -1,
                "cols": [
                  "FFFFFFFF"
                ],
                "ctype": 0,
                "drying_temp": "55",
                "drying_time": "8",
                "id": "1",
                "nozzle_temp_max": "230",
                "nozzle_temp_min": "190",
                "remain": 0,
                "tag_uid": "72D7EA7400000100",
                "tray_color": "FFFFFFFF",
                "tray_diameter": "1.75",
                "tray_id_name": "A01-W2",
                "tray_info_idx": "GFA01",
                "tray_sub_brands": "PLA Matte",
                "tray_type": "PLA",
                "tray_uuid": "B58C944CCB8E4128957237F5EA96D8EC",
                "tray_weight": "1000",
                "xcam_info": "D007D007E803E8030000803F"
              },
              {
                "bed_temp": "35",
                "bed_temp_type": "1",
                "cali_idx": -1,
                "cols": [
                  "DE4343FF"
                ],
                "ctype": 0,
                "drying_temp": "55",
                "drying_time": "8",
                "id": "2",
                "nozzle_temp_max": "230",
                "nozzle_temp_min": "190",
                "remain": 0,
                "tag_uid": "A236D17400000100",
                "tray_color": "DE4343FF",
                "tray_diameter": "1.75",
                "tray_id_name": "A01-R1",
                "tray_info_idx": "GFA01",
                "tray_sub_brands": "PLA Matte",
                "tray_type": "PLA",
                "tray_uuid": "551C8BDB62874DFFAEF9319E1793FFA3",
                "tray_weight": "1000",
                "xcam_info": "8813D007E803E8039A99193F"
              },
              {
                "bed_temp": "35",
                "bed_temp_type": "1",
                "cali_idx": -1,
                "cols": [
                  "A1FFACFF"
                ],
                "ctype": 0,
                "drying_temp": "55",
                "drying_time": "8",
                "id": "3",
                "nozzle_temp_max": "230",
                "nozzle_temp_min": "190",
                "remain": 0,
                "tag_uid": "52AB167B00000100",
                "tray_color": "A1FFACFF",
                "tray_diameter": "1.75",
                "tray_id_name": "A12-G0",
                "tray_info_idx": "GFA12",
                "tray_sub_brands": "PLA Glow",
                "tray_type": "PLA",
                "tray_uuid": "8B43395272AB429AAB1C1267659ECABC",
                "tray_weight": "1000",
                "xcam_info": "881388138403E8033333333F"
              }
            ]
          },
          {
            "humidity": "5",
            "id": "1",
            "temp": "29.9",
            "tray": [
              {
                "bed_temp": "35",
                "bed_temp_type": "1",
                "cali_idx": -1,
                "cols": [
                  "9B9EA0FF"
                ],
                "ctype": 0,
                "drying_temp": "55",
                "drying_time": "8",
                "id": "0",
                "nozzle_temp_max": "230",
                "nozzle_temp_min": "190",
                "remain": 0,
                "tag_uid": "22368B7500000100",
                "tray_color": "9B9EA0FF",
                "tray_diameter": "1.75",
                "tray_id_name": "A01-D3",
                "tray_info_idx": "GFA01",
                "tray_sub_brands": "PLA Matte",
                "tray_type": "PLA",
                "tray_uuid": "66A19A5A97F74E7687A8074627EBE2F8",
                "tray_weight": "1000",
                "xcam_info": "D007D007E803E8030000803F"
              },
              {
                "bed_temp": "35",
                "bed_temp_type": "1",
                "cali_idx": -1,
                "cols": [
                  "7D6556FF"
                ],
                "ctype": 0,
                "drying_temp": "55",
                "drying_time": "8",
                "id": "1",
                "nozzle_temp_max": "230",
                "nozzle_temp_min": "190",
                "remain": 0,
                "tag_uid": "9DA16CC000000100",
                "tray_color": "7D6556FF",
                "tray_diameter": "1.75",
                "tray_id_name": "A01-N2",
                "tray_info_idx": "GFA01",
                "tray_sub_brands": "PLA Matte",
                "tray_type": "PLA",
                "tray_uuid": "454D4D2899A44C5AB8AD877400F61F23",
                "tray_weight": "1000",
                "xcam_info": "D0078813E803E8036666663F"
              },
              {
                "bed_temp": "35",
                "bed_temp_type": "1",
                "cali_idx": -1,
                "cols": [
                  "000000FF"
                ],
                "ctype": 0,
                "drying_temp": "55",
                "drying_time": "8",
                "id": "2",
                "nozzle_temp_max": "230",
                "nozzle_temp_min": "190",
                "remain": 0,
                "tag_uid": "9DEA01DE00000100",
                "tray_color": "000000FF",
                "tray_diameter": "1.75",
                "tray_id_name": "A00-K0",
                "tray_info_idx": "GFA00",
                "tray_sub_brands": "PLA Basic",
                "tray_type": "PLA",
                "tray_uuid": "5BE028A435A043739D4FFCCE62E569B0",
                "tray_weight": "1000",
                "xcam_info": "803E803EE803E803CDCC4C3F"
              },
              {
                "bed_temp": "35",
                "bed_temp_type": "1",
                "cali_idx": -1,
                "cols": [
                  "000000FF"
                ],
                "ctype": 0,
                "drying_temp": "55",
                "drying_time": "8",
                "id": "3",
                "nozzle_temp_max": "230",
                "nozzle_temp_min": "190",
                "remain": 0,
                "tag_uid": "3265C37400000100",
                "tray_color": "000000FF",
                "tray_diameter": "1.75",
                "tray_id_name": "A01-K1",
                "tray_info_idx": "GFA01",
                "tray_sub_brands": "PLA Matte",
                "tray_type": "PLA",
                "tray_uuid": "4FEBB42BAB954F9DA777EF6D5DF6F48D",
                "tray_weight": "1000",
                "xcam_info": "A4388813E803E803CDCC4C3F"
              }
            ]
          }
        ],
        "ams_exist_bits": "3",
        "insert_flag": true,
        "power_on_flag": false,
        "tray_exist_bits": "ff",
        "tray_is_bbl_bits": "ff",
        "tray_now": "0",
        "tray_pre": "0",
        "tray_read_done_bits": "ff",
        "tray_reading_bits": "0",
        "tray_tar": "0",
        "version": 762
      },
      "ams_rfid_status": 2,
      "ams_status": 768,
      "aux_part_fan": true,
      "bed_target_temper": 55.0,
      "bed_temper": 55.0,
      "big_fan1_speed": "11",
      "big_fan2_speed": "8",
      "cali_version": 0,
      "chamber_temper": 35.0,
      "command": "push_status",
      "cooling_fan_speed": "15",
      "ctt": 0,
      "fail_reason": "0",
      "fan_gear": 9876223,
      "filam_bak": [],
      "force_upgrade": false,
      "gcode_file": "/data/Metadata/plate_1.gcode",
      "gcode_file_prepare_percent": "100",
      "gcode_start_time": "1709144956",
      "gcode_state": "RUNNING",
      "heatbreak_fan_speed": "15",
      "hms": [],
      "home_flag": 6407463,
      "hw_switch_state": 1,
      "ipcam": {
        "ipcam_dev": "1",
        "ipcam_record": "enable",
        "mode_bits": 2,
        "resolution": "1080p",
        "rtsp_url": "**REDACTED**",
        "timelapse": "disable",
        "tutk_server": "enable"
      },
      "job_id": "55427302",
      "layer_num": 78,
      "lifecycle": "product",
      "lights_report": [
        {
          "mode": "on",
          "node": "chamber_light"
        },
        {
          "mode": "flashing",
          "node": "work_light"
        }
      ],
      "maintain": 3,
      "mc_percent": 90,
      "mc_print_error_code": "0",
      "mc_print_stage": "2",
      "mc_print_sub_stage": 0,
      "mc_remaining_time": 1,
      "mess_production_state": "active",
      "msg": 0,
      "net": {
        "conf": 16,
        "info": [
          {
            "ip": 1146529984,
            "mask": 16777215
          },
          {
            "ip": 0,
            "mask": 0
          }
        ]
      },
      "nozzle_diameter": "0.4",
      "nozzle_target_temper": 220.0,
      "nozzle_temper": 220.0,
      "nozzle_type": "hardened_steel",
      "online": {
        "ahb": true,
        "ext": false,
        "version": 11
      },
      "print_error": 0,
      "print_gcode_action": 0,
      "print_real_action": 0,
      "print_type": "cloud",
      "profile_id": "54292069",
      "project_id": "55258923",
      "queue_est": 0,
      "queue_number": 0,
      "queue_sts": 0,
      "queue_total": 0,
      "s_obj": [],
      "sdcard": true,
      "sequence_id": "3130",
      "spd_lvl": 2,
      "spd_mag": 100,
      "stg": [
        2,
        14,
        1,
        8
      ],
      "stg_cur": 0,
      "subtask_id": "108377028",
      "subtask_name": "Untitled",
      "t_utc": 1709146042763,
      "task_id": "108377027",
      "total_layer_num": 87,
      "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": 11,
        "message": "",
        "module": "null",
        "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": ""
      },
      "vt_tray": {
        "bed_temp": "0",
        "bed_temp_type": "0",
        "cali_idx": -1,
        "cols": [
          "161616FF"
        ],
        "ctype": 0,
        "drying_temp": "0",
        "drying_time": "0",
        "id": "254",
        "nozzle_temp_max": "250",
        "nozzle_temp_min": "200",
        "remain": 0,
        "tag_uid": "0000000000000000",
        "tray_color": "161616FF",
        "tray_diameter": "0.00",
        "tray_id_name": "",
        "tray_info_idx": "GFU01",
        "tray_sub_brands": "",
        "tray_type": "TPU",
        "tray_uuid": "00000000000000000000000000000000",
        "tray_weight": "0",
        "xcam_info": "000000000000000000000000"
      },
      "wifi_signal": "-46dBm",
      "xcam": {
        "allow_skip_parts": false,
        "buildplate_marker_detector": true,
        "first_layer_inspector": true,
        "halt_print_sensitivity": "medium",
        "print_halt": true,
        "printing_monitor": true,
        "spaghetti_detector": true
      },
      "xcam_status": "0"
    },
    "get_version": {
      "command": "get_version",
      "module": [
        {
          "hw_ver": "",
          "name": "ota",
          "sn": "",
          "sw_ver": "01.07.02.00"
        },
        {
          "hw_ver": "AP05",
          "name": "rv1126",
          "sn": "**REDACTED**",
          "sw_ver": "00.00.28.55"
        },
        {
          "hw_ver": "TH09",
          "name": "th",
          "sn": "**REDACTED**",
          "sw_ver": "00.00.07.12"
        },
        {
          "hw_ver": "MC07",
          "name": "mc",
          "sn": "**REDACTED**",
          "sw_ver": "00.00.22.37/00.00.22.37"
        },
        {
          "hw_ver": "",
          "name": "xm",
          "sn": "",
          "sw_ver": "00.01.02.02"
        },
        {
          "hw_ver": "AMS08",
          "name": "ams/0",
          "sn": "**REDACTED**",
          "sw_ver": "00.00.06.40"
        },
        {
          "hw_ver": "AMS08",
          "name": "ams/1",
          "sn": "**REDACTED**",
          "sw_ver": "00.00.06.40"
        },
        {
          "hw_ver": "AHB01",
          "name": "ahb",
          "sn": "**REDACTED**",
          "sw_ver": "00.00.00.42"
        }
      ],
      "sequence_id": "20059"
    }
  }
}

Log Extracts

**I scaled back the logs in order to submit..I kept messages which seemed relevant

2024-02-28 13:29:16.700 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:29:16.702 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] GCODE_STATE: FINISH -> PREPARE
2024-02-28 13:29:16.702 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] GCODE_STATE: FINISH -> PREPARE
2024-02-28 13:29:16.702 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] GCODE START TIME: X1C 2024-02-28 11:47:12
2024-02-28 13:29:16.702 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] EVENT: event_print_started: {'device_id': '{REDACTED}', 'type': 'event_print_started'}
2024-02-28 13:29:16.703 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Getting latest task from Bambu Cloud for Printer: {REDACTED}
2024-02-28 13:29:16.703 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Getting task list from Bambu Cloud for Printer: {REDACTED}
2024-02-28 13:29:17.163 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Updating bambu cloud task data found for printer.
2024-02-28 13:29:17.164 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Downloading cover image: https://bbl-prod-us-model.s3.dualstack.us-west-1.amazonaws.com/private/US391e4fc70f9da4/54292069/3mf/Metadata/plate_1.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential={REDACTED}%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20240228T182917Z&X-Amz-Expires=60&X-Amz-SignedHeaders=host&X-Amz-Signature=3a6345209eeee0ba4bd9be1c9eb607a2f82b68b012eeb781e846a9ce6336060b
2024-02-28 13:29:17.693 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] CLOUD PRINT STATUS: 4
2024-02-28 13:29:17.695 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-02-28 13:29:17.716 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:29:17.718 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:29:17.729 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:29:17.747 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:29:17.757 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:29:17.759 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:29:17.762 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:29:17.767 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:29:17.774 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] GCODE_STATE: PREPARE -> RUNNING
2024-02-28 13:29:17.774 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] GCODE_STATE: PREPARE -> RUNNING
2024-02-28 13:29:17.774 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] GCODE START TIME: X1C None
2024-02-28 13:29:17.775 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] END TIME2: X1C 2024-02-28 13:46:00
2024-02-28 13:29:17.775 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-02-28 13:29:17.806 WARNING (MainThread) [homeassistant.components.automation.bambu_lab_wled_controller] Bambu Lab WLED Controller: Already running
2024-02-28 13:29:17.807 WARNING (MainThread) [homeassistant.components.automation.bambu_lab_wled_controller_configured] Bambu Lab WLED Controller Configured: Already running
2024-02-28 13:29:18.679 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C

2024-02-28 13:29:50.945 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-02-28 13:29:51.947 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:29:51.949 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] GCODE_STATE: RUNNING -> PAUSE
2024-02-28 13:29:51.949 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] GCODE_STATE: RUNNING -> PAUSE
2024-02-28 13:29:51.951 WARNING (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] HMS ERRORS: {'Count': 1, '1-Error': 'HMS_0300_1200_0002_0001: The front cover of the toolhead fell off.', '1-Wiki': 'https://wiki.bambulab.com/en/x1/troubleshooting/hmscode/0300_1200_0002_0001', '1-Severity': 'serious'}
2024-02-28 13:29:51.951 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] EVENT: HMS errors: {'device_id': '{REDACTED}', 'type': 'event_printer_error', 'hms_code': 'HMS_0300_1200_0002_0001', 'description': 'The front cover of the toolhead fell off.', 'url': 'https://wiki.bambulab.com/en/x1/troubleshooting/hmscode/0300_1200_0002_0001'}
2024-02-28 13:29:51.952 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-02-28 13:30:11.854 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:30:12.143 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:30:12.144 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] GCODE_STATE: PAUSE -> RUNNING
2024-02-28 13:30:12.144 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] GCODE_STATE: PAUSE -> RUNNING
2024-02-28 13:30:12.145 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] EVENT: HMS errors cleared: {'device_id': '{REDACTED}', 'type': 'event_printer_error_cleared'}
2024-02-28 13:30:12.146 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-02-28 13:30:24.312 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:30:24.315 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] END TIME2: X1C 2024-02-28 13:42:00
2024-02-28 13:30:24.318 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-02-28 13:30:25.282 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
....REMOVED LINES since they were the same and it was too long to post
2024-02-28 13:32:24.491 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:32:25.503 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:32:25.505 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-02-28 13:32:26.530 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:32:26.533 WARNING (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] HMS ERRORS: {'Count': 1, '1-Error': 'HMS_0300_0D00_0002_0001: Heatbed homing abnormal. There may be a bulge on the ...', '1-Wiki': 'https://wiki.bambulab.com/en/x1/troubleshooting/hmscode/0300_0D00_0002_0001', '1-Severity': 'serious'}
2024-02-28 13:32:26.534 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] EVENT: HMS errors: {'device_id': '{REDACTED}', 'type': 'event_printer_error', 'hms_code': 'HMS_0300_0D00_0002_0001', 'description': 'Heatbed homing abnormal. There may be a bulge on the ...', 'url': 'https://wiki.bambulab.com/en/x1/troubleshooting/hmscode/0300_0D00_0002_0001'}
2024-02-28 13:32:26.535 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-02-28 13:32:27.234 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:32:27.329 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
....REMOVED LINES since they were the same and it was too long to post
2024-02-28 13:33:21.155 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:33:21.158 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-02-28 13:33:23.192 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:33:24.210 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:33:24.213 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] EVENT: HMS errors cleared: {'device_id': '{REDACTED}', 'type': 'event_printer_error_cleared'}

2024-02-28 13:39:12.130 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:39:12.133 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:39:12.645 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:39:12.647 WARNING (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] HMS ERRORS: {'Count': 1, '1-Error': 'HMS_0C00_0300_0003_000B: Inspecting first layer.', '1-Wiki': 'https://wiki.bambulab.com/en/x1/troubleshooting/hmscode/0C00_0300_0003_000B', '1-Severity': 'common'}
2024-02-28 13:39:12.648 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] EVENT: HMS errors: {'device_id': '{REDACTED}', 'type': 'event_printer_error', 'hms_code': 'HMS_0C00_0300_0003_000B', 'description': 'Inspecting first layer.', 'url': 'https://wiki.bambulab.com/en/x1/troubleshooting/hmscode/0C00_0300_0003_000B'}
2024-02-28 13:39:12.649 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
....REMOVED LINES since they were the same and it was too long to post
2024-02-28 13:39:42.687 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:39:42.690 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:39:42.693 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:39:42.695 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:39:42.698 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:39:42.723 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:39:43.045 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:39:43.048 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] EVENT: HMS errors cleared: {'device_id': '{REDACTED}', 'type': 'event_printer_error_cleared'}
2024-02-28 13:39:43.049 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data

2024-02-28 13:41:18.108 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-02-28 13:41:20.123 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:41:21.628 ERROR (MainThread) [homeassistant.components.wled] Error fetching wled data: Invalid response from API: Timeout occurred while connecting to WLED device at 192.168.86.92
2024-02-28 13:41:22.135 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:41:22.138 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data

2024-02-28 13:41:59.549 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:41:59.550 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] END TIME2: X1C 2024-02-28 13:47:00
2024-02-28 13:41:59.552 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-02-28 13:42:01.560 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
....REMOVED LINES since they were the same and it was too long to post
2024-02-28 13:42:58.185 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-02-28 13:43:00.196 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:43:00.198 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] END TIME2: X1C 2024-02-28 13:48:00
2024-02-28 13:43:00.200 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data

2024-02-28 13:48:47.707 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-02-28 13:48:49.716 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:48:51.743 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:48:52.748 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:48:53.679 ERROR (MainThread) [homeassistant.components.wled] Error fetching wled data: Invalid response from API: Timeout occurred while connecting to WLED device at 192.168.86.92
2024-02-28 13:48:54.757 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:48:56.782 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:48:58.797 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:48:58.800 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-02-28 13:49:00.304 ERROR (MainThread) [homeassistant.components.automation.bambu_lab_wled_controller] Bambu Lab WLED Controller: If at step 1: Error executing script. Error for call_service at pos 1: Error communicating with WLED API
2024-02-28 13:49:00.305 ERROR (MainThread) [homeassistant.components.automation.bambu_lab_wled_controller_configured] Bambu Lab WLED Controller Configured: If at step 1: Error executing script. Error for call_service at pos 1: Error communicating with WLED API
2024-02-28 13:49:00.307 ERROR (MainThread) [homeassistant.components.automation.bambu_lab_wled_controller] Bambu Lab WLED Controller: Error executing script. Error for if at pos 1: Error communicating with WLED API
2024-02-28 13:49:00.308 ERROR (MainThread) [homeassistant.components.automation.bambu_lab_wled_controller_configured] Bambu Lab WLED Controller Configured: Error executing script. Error for if at pos 1: Error communicating with WLED API
2024-02-28 13:49:00.310 ERROR (MainThread) [homeassistant.components.automation.bambu_lab_wled_controller] Error while executing automation automation.bambu_lab_wled_controller: Error communicating with WLED API
2024-02-28 13:49:00.311 ERROR (MainThread) [homeassistant.components.automation.bambu_lab_wled_controller_configured] Error while executing automation automation.bambu_lab_wled_controller_configured: Error communicating with WLED API
2024-02-28 13:49:00.817 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:49:02.849 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:49:04.865 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2
2024-02-28 13:49:17.004 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:49:17.007 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-02-28 13:49:18.010 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:49:18.012 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] GCODE_STATE: RUNNING -> FINISH
2024-02-28 13:49:18.012 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] GCODE_STATE: RUNNING -> FINISH
2024-02-28 13:49:18.013 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] EVENT: event_print_finished: {'device_id': '{REDACTED}', 'type': 'event_print_finished'}
2024-02-28 13:49:18.013 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] NEW USAGE HOURS: X1C 0.33
2024-02-28 13:49:18.015 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-02-28 13:49:18.037 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] OVERWRITING USAGE_HOURS WITH : 1.37
2024-02-28 13:49:19.043 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:49:19.045 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data

2024-02-28 13:49:34.204 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:49:34.207 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-02-28 13:49:34.411 DEBUG (MainThread) [custom_components.bambu_lab.pybambu] Sent {'pushing': {'sequence_id': '0', 'command': 'pushall'}} to topic device/{REDACTED}/request
2024-02-28 13:49:34.413 DEBUG (MainThread) [custom_components.bambu_lab.pybambu] Sent {'info': {'sequence_id': '0', 'command': 'get_version'}} to topic device/{REDACTED}/request
2024-02-28 13:49:34.469 DEBUG (MainThread) [custom_components.bambu_lab.pybambu] Sent {'pushing': {'sequence_id': '0', 'command': 'pushall'}} to topic device/{REDACTED}/request
2024-02-28 13:49:34.471 DEBUG (MainThread) [custom_components.bambu_lab.pybambu] Sent {'info': {'sequence_id': '0', 'command': 'get_version'}} to topic device/{REDACTED}/request
2024-02-28 13:49:34.742 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:49:34.742 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Got Version Data
2024-02-28 13:49:34.743 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Device is X1C
2024-02-28 13:49:34.743 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Device is X1C
2024-02-28 13:49:34.841 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: X1C
2024-02-28 13:49:34.842 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Got Version Data
2024-02-28 13:49:34.842 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Device is X1C
2024-02-28 13:49:34.843 DEBUG (Thread-4 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Device is X1C

Other Information

No response

AdrianGarside commented 4 months ago

You didn't misunderstand but the current wled blueprint requires the printer to set a print status for the front cover removed - and while that is a possible value none of the printers actually set it when in that state (in the latest firmwares at least). So the blueprint as-is won't work. I didn't write and haven't had time to set up wled instance to test it to see if I can make it handle those cases.

github-actions[bot] commented 2 months ago

Stale issue message