greghesp / ha-bambulab

A Home Assistant Integration for Bambu Lab Printers
1.01k stars 89 forks source link

[Bug] Bambu A1 Mini discovered as "unknown" #588

Closed nzrutman closed 4 weeks ago

nzrutman commented 2 months ago

Describe the bug

Device is discovered as "UNKNOWN". All sensors are labelled as ".unknown_..." Screenshot 2024-09-09 at 3 01 12 PM

All sensors except camera/image seem to be present and working.

To Reproduce

  1. Add printer with local IP option That is all

Expected Behaviour

  1. Printer would be detected as A1 Mini, sensors would be named something like ".a1mini_..." (Note I'm just assuming here -- maybe all printers are discovered as "UNKNOWN".)

  2. Camera/image would be available/shown on integration page.

What device are you using?

A1 Mini

Diagnostic Output

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2024.9.0",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.12.4",
    "docker": true,
    "arch": "aarch64",
    "timezone": "America/Los_Angeles",
    "os_name": "Linux",
    "os_version": "6.6.31-haos-raspi",
    "supervisor": "2024.08.0",
    "host_os": "Home Assistant OS 13.1",
    "docker_version": "26.1.4",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "bambu_lab": {
      "documentation": "https://github.com/greghesp/ha-bambulab",
      "version": "2.0.22",
      "requirements": []
    },
  },
  "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.22",
    "is_built_in": false
  },
  "setup_times": {
    "null": {
      "setup": 0.00010627706069499254
    },
    "01J79A3FTXRTS53MDKKC7A3QTC": {
      "wait_import_platforms": -0.22928834101185203,
      "wait_base_component": -0.007928736042231321,
      "config_entry_setup": 0.29780935507733375
    }
  },
  "data": {
    "config_entry": {
      "created_at": "2024-09-08T17:15:01.341376+00:00",
      "data": {
        "device_type": "UNKNOWN",
        "serial": "**REDACTED**"
      },
      "disabled_by": null,
      "domain": "bambu_lab",
      "entry_id": "01J79A3FTXRTS53MDKKC7A3QTC",
      "minor_version": 1,
      "modified_at": "2024-09-09T03:30:25.395977+00:00",
      "options": {
        "region": "",
        "email": "",
        "username": "",
        "name": "",
        "host": "192.168.86.110",
        "local_mqtt": true,
        "auth_token": "",
        "access_code": "**REDACTED**",
        "usage_hours": 12.17
      },
      "pref_disable_new_entities": false,
      "pref_disable_polling": false,
      "source": "user",
      "title": "**REDACTED**",
      "unique_id": null,
      "version": 2
    },
    "push_all": {
      "ipcam": {
        "ipcam_dev": "1",
        "ipcam_record": "enable",
        "timelapse": "disable",
        "resolution": "1080p",
        "tutk_server": "disable",
        "mode_bits": 3
      },
      "upload": {
        "status": "idle",
        "progress": 0,
        "message": ""
      },
      "nozzle_temper": 37.96875,
      "nozzle_target_temper": 38,
      "bed_temper": 22.21875,
      "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": 100,
      "mc_remaining_time": 0,
      "ams_status": 0,
      "ams_rfid_status": 0,
      "hw_switch_state": 1,
      "spd_mag": 100,
      "spd_lvl": 2,
      "print_error": 0,
      "lifecycle": "product",
      "wifi_signal": "-50dBm",
      "gcode_state": "FINISH",
      "gcode_file_prepare_percent": "100",
      "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": "auto_cali_for_user_param.gcode",
      "gcode_file": "",
      "stg": [],
      "stg_cur": 255,
      "print_type": "idle",
      "home_flag": 847136144,
      "mc_print_line_number": "370",
      "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,
      "upgrade_state": {
        "sequence_id": 0,
        "progress": "",
        "status": "",
        "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,
        "new_ver_list": []
      },
      "hms": [],
      "online": {
        "ahb": false,
        "rfid": false,
        "version": 15182767
      },
      "ams": {
        "ams": [],
        "ams_exist_bits": "0",
        "tray_exist_bits": "0",
        "tray_is_bbl_bits": "0",
        "tray_tar": "254",
        "tray_now": "254",
        "tray_pre": "254",
        "tray_read_done_bits": "0",
        "tray_reading_bits": "0",
        "version": 6,
        "insert_flag": true,
        "power_on_flag": false
      },
      "xcam": {
        "buildplate_marker_detector": true
      },
      "vt_tray": {
        "id": "254",
        "tag_uid": "0000000000000000",
        "tray_id_name": "",
        "tray_info_idx": "GFL99",
        "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",
        "remain": 0,
        "k": 0.019999999552965164,
        "n": 1,
        "cali_idx": -1
      },
      "lights_report": [
        {
          "node": "chamber_light",
          "mode": "off"
        }
      ],
      "command": "push_status",
      "msg": 0,
      "sequence_id": "39223"
    },
    "get_version": {
      "command": "get_version",
      "sequence_id": "0",
      "module": [
        {
          "name": "ota",
          "project_name": "N1",
          "sw_ver": "01.03.01.00",
          "hw_ver": "OTA",
          "sn": "**REDACTED**",
          "flag": 3
        },
        {
          "name": "esp32",
          "project_name": "N1",
          "sw_ver": "01.09.28.29",
          "hw_ver": "AP07",
          "sn": "**REDACTED**",
          "flag": 0
        },
        {
          "name": "mc",
          "project_name": "N1",
          "sw_ver": "00.00.27.21",
          "loader_ver": "00.00.00.32",
          "hw_ver": "MC02",
          "sn": "**REDACTED**",
          "flag": 0
        },
        {
          "name": "th",
          "project_name": "N1",
          "sw_ver": "00.00.07.72",
          "loader_ver": "00.00.00.26",
          "hw_ver": "TH03",
          "sn": "**REDACTED**",
          "flag": 0
        }
      ],
      "result": "success",
      "reason": ""
    }
  }
}

Log Extracts

2024-09-08 16:16:37.150 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration bambu_lab which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-09-08 16:17:06.662 INFO (MainThread) [homeassistant.components.camera] Setting up bambu_lab.camera
2024-09-08 16:17:06.663 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-08 16:17:06.664 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-08 16:17:06.665 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-08 16:17:06.665 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-08 16:17:06.772 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to load_default_certs with args (<ssl.SSLContext object at 0x7f56c67950>,) inside the event loop by custom integration 'bambu_lab' at custom_components/bambu_lab/pybambu/bambu_client.py, line 332: self.client.tls_set(tls_version=ssl.PROTOCOL_TLS, cert_reqs=ssl.CERT_NONE) (offender: /usr/local/lib/python3.12/site-packages/paho/mqtt/client.py, line 806: context.load_default_certs()), please create a bug report at https://github.com/greghesp/ha-bambulab/issues
  File "/config/custom_components/bambu_lab/coordinator.py", line 131, in listen
  File "/config/custom_components/bambu_lab/pybambu/bambu_client.py", line 332, in connect
2024-09-08 16:41:02.788 WARNING (MainThread) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 0
2024-09-08 16:41:02.788 WARNING (MainThread) [custom_components.bambu_lab.pybambu] _on_disconnect
2024-09-08 16:41:02.789 WARNING (MainThread) [custom_components.bambu_lab.pybambu] Stopping watchdog thread
2024-09-08 16:41:02.809 INFO (MainThread) [homeassistant.components.camera] Setting up bambu_lab.camera
2024-09-08 16:41:02.810 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-08 16:41:02.810 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-08 16:41:02.812 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 0
2024-09-08 16:41:02.812 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] _on_disconnect
2024-09-08 16:41:02.812 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] Stopping watchdog thread
2024-09-08 16:41:02.816 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-08 16:41:02.817 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-08 16:41:09.968 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback BambuDataUpdateCoordinator.event_handler_internal('event_print_error') (None)
  File "/config/custom_components/bambu_lab/coordinator.py", line 109, in event_handler_internal
  File "/config/custom_components/bambu_lab/coordinator.py", line 194, in _update_print_error
2024-09-08 16:41:50.203 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] HMS ERRORS: {'Count': 1, '1-Error': 'HMS_12FF_2000_0002_0004: Please pull out the filament on the spool holder from the extruder.', '1-Wiki': 'https://wiki.bambulab.com/en/x1/troubleshooting/hmscode/12FF_2000_0002_0004', '1-Severity': 'serious'}
2024-09-08 16:45:38.581 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] HMS ERRORS: {'Count': 1, '1-Error': 'HMS_12FF_2000_0002_0002: Filament on the spool holder is empty; please insert a new filament.', '1-Wiki': 'https://wiki.bambulab.com/en/x1/troubleshooting/hmscode/12FF_2000_0002_0002', '1-Severity': 'serious'}
2024-09-08 16:45:42.604 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback BambuDataUpdateCoordinator.event_handler_internal('event_print_error') (None)
  File "/config/custom_components/bambu_lab/coordinator.py", line 109, in event_handler_internal
  File "/config/custom_components/bambu_lab/coordinator.py", line 194, in _update_print_error
2024-09-08 16:46:08.733 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback BambuDataUpdateCoordinator.event_handler_internal('event_print_error') (None)
  File "/config/custom_components/bambu_lab/coordinator.py", line 109, in event_handler_internal
  File "/config/custom_components/bambu_lab/coordinator.py", line 194, in _update_print_error
2024-09-08 16:46:20.795 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback BambuDataUpdateCoordinator.event_handler_internal('event_print_error') (None)
  File "/config/custom_components/bambu_lab/coordinator.py", line 109, in event_handler_internal
  File "/config/custom_components/bambu_lab/coordinator.py", line 194, in _update_print_error
2024-09-08 16:46:32.853 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback BambuDataUpdateCoordinator.event_handler_internal('event_print_error') (None)
  File "/config/custom_components/bambu_lab/coordinator.py", line 109, in event_handler_internal
  File "/config/custom_components/bambu_lab/coordinator.py", line 194, in _update_print_error
2024-09-08 16:46:45.020 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback BambuDataUpdateCoordinator.event_handler_internal('event_print_error') (None)
  File "/config/custom_components/bambu_lab/coordinator.py", line 109, in event_handler_internal
  File "/config/custom_components/bambu_lab/coordinator.py", line 194, in _update_print_error
2024-09-08 19:55:33.323 WARNING (MainThread) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 0
2024-09-08 19:55:33.323 WARNING (MainThread) [custom_components.bambu_lab.pybambu] _on_disconnect
2024-09-08 19:55:33.326 WARNING (MainThread) [custom_components.bambu_lab.pybambu] Stopping watchdog thread
2024-09-08 19:55:33.345 INFO (MainThread) [homeassistant.components.camera] Setting up bambu_lab.camera
2024-09-08 19:55:33.346 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-08 19:55:33.346 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-08 19:55:33.348 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-08 19:55:33.348 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-08 20:17:02.254 WARNING (MainThread) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 0
2024-09-08 20:17:02.254 WARNING (MainThread) [custom_components.bambu_lab.pybambu] _on_disconnect
2024-09-08 20:17:02.260 WARNING (MainThread) [custom_components.bambu_lab.pybambu] Stopping watchdog thread
2024-09-08 20:17:02.278 INFO (MainThread) [homeassistant.components.camera] Setting up bambu_lab.camera
2024-09-08 20:17:02.279 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-08 20:17:02.280 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-08 20:17:02.282 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-08 20:17:02.282 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-08 20:30:25.420 WARNING (MainThread) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 0
2024-09-08 20:30:25.421 WARNING (MainThread) [custom_components.bambu_lab.pybambu] _on_disconnect
2024-09-08 20:30:25.424 WARNING (MainThread) [custom_components.bambu_lab.pybambu] Stopping watchdog thread
2024-09-08 20:30:25.433 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 0
2024-09-08 20:30:25.434 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] _on_disconnect
2024-09-08 20:30:25.434 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] Stopping watchdog thread
2024-09-08 20:30:25.442 INFO (MainThread) [homeassistant.components.camera] Setting up bambu_lab.camera
2024-09-08 20:30:25.450 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-08 20:30:25.450 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-08 20:30:25.452 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-08 20:30:25.453 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.bambu_lab.fan.BambuLabFan'>) does not set FanEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-09-09 11:52:14.402 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 16
2024-09-09 11:52:14.403 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] _on_disconnect
2024-09-09 11:52:14.404 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] Stopping watchdog thread
2024-09-09 11:52:14.416 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 16
2024-09-09 11:52:14.417 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] _on_disconnect
2024-09-09 11:52:14.417 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] Stopping watchdog thread
2024-09-09 14:49:08.281 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 16
2024-09-09 14:49:08.281 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] _on_disconnect
2024-09-09 14:49:08.282 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] Stopping watchdog thread
2024-09-09 14:49:08.290 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 16
2024-09-09 14:49:08.291 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] _on_disconnect
2024-09-09 14:49:08.291 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] Stopping watchdog thread
2024-09-09 14:49:45.925 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 16
2024-09-09 14:49:45.926 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] _on_disconnect
2024-09-09 14:49:45.932 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] Stopping watchdog thread
2024-09-09 14:49:45.941 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 16
2024-09-09 14:49:45.941 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] _on_disconnect
2024-09-09 14:49:45.941 WARNING (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] Stopping watchdog thread
2024-09-09 14:55:37.156 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to putrequest with args (<urllib3.connection.HTTPSConnection object at 0x7f4ef9f050>, 'GET', '/v1/iot-service/api/slicer/setting?version=undefined') inside the event loop by custom integration 'bambu_lab' at custom_components/bambu_lab/pybambu/bambu_cloud.py, line 189: response = requests.get(url, headers=headers, timeout=10) (offender: /usr/local/lib/python3.12/site-packages/urllib3/connection.py, line 219: return _HTTPConnection.putrequest(self, method, url, *args, **kwargs)), please create a bug report at https://github.com/greghesp/ha-bambulab/issues
  File "/config/custom_components/bambu_lab/button.py", line 139, in async_press
  File "/config/custom_components/bambu_lab/pybambu/bambu_client.py", line 487, in refresh
  File "/config/custom_components/bambu_lab/pybambu/models.py", line 1432, in update
    slicer_settings = self._client.bambu_cloud.get_slicer_settings()
  File "/config/custom_components/bambu_lab/pybambu/bambu_cloud.py", line 189, in get_slicer_settings
  File "/config/custom_components/bambu_lab/button.py", line 139, in async_press
  File "/config/custom_components/bambu_lab/pybambu/bambu_client.py", line 487, in refresh
  File "/config/custom_components/bambu_lab/pybambu/models.py", line 1432, in update
    slicer_settings = self._client.bambu_cloud.get_slicer_settings()
  File "/config/custom_components/bambu_lab/pybambu/bambu_cloud.py", line 189, in get_slicer_settings
RuntimeError: Caught blocking call to putrequest with args (<urllib3.connection.HTTPSConnection object at 0x7f4ef9f050>, 'GET', '/v1/iot-service/api/slicer/setting?version=undefined') inside the event loop by custom integration 'bambu_lab' at custom_components/bambu_lab/pybambu/bambu_cloud.py, line 189: response = requests.get(url, headers=headers, timeout=10). (offender: /usr/local/lib/python3.12/site-packages/urllib3/connection.py, line 219: return _HTTPConnection.putrequest(self, method, url, *args, **kwargs)), please create a bug report at https://github.com/greghesp/ha-bambulab/issues

Other Information

No response

nzrutman commented 2 months ago

Turned on higher debug level:

024-09-09 18:48:14.977 INFO (MainThread) [homeassistant.components.camera] Setting up bambu_lab.camera
2024-09-09 18:48:14.978 DEBUG (MainThread) [custom_components.bambu_lab] CAMERA::async_setup_entry
2024-09-09 18:48:14.978 DEBUG (MainThread) [custom_components.bambu_lab] FAN::async_setup_entry
...
2024-09-09 18:48:14.984 DEBUG (MainThread) [custom_components.bambu_lab] FAN::async_setup_entry DONE
2024-09-09 18:48:14.990 DEBUG (MainThread) [custom_components.bambu_lab] IMAGE::async_setup_entry
2024-09-09 18:48:14.992 DEBUG (MainThread) [custom_components.bambu_lab] SELECT::async_setup_entry
2024-09-09 18:48:15.035 DEBUG (MainThread) [custom_components.bambu_lab] SWITCH::async_setup_entry
2024-09-09 18:48:15.035 DEBUG (MainThread) [custom_components.bambu_lab] async_setup_entry Complete
2024-09-09 18:48:15.036 DEBUG (MainThread) [custom_components.bambu_lab] Starting MQTT
2024-09-09 18:48:15.168 DEBUG (MainThread) [custom_components.bambu_lab] Starting listen()
2024-09-09 18:48:15.187 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to load_default_certs with args (<ssl.SSLContext object at 0x7f49888e50>,) inside the event loop by custom integration 'bambu_lab' at custom_components/bambu_lab/pybambu/bambu_client.py, line 332: self.client.tls_set(tls_version=ssl.PROTOCOL_TLS, cert_reqs=ssl.CERT_NONE) (offender: /usr/local/lib/python3.12/site-packages/paho/mqtt/client.py, line 806: context.load_default_certs()), please create a bug report at https://github.com/greghesp/ha-bambulab/issues
...
2024-09-09 18:48:15.223 DEBUG (MainThread) [custom_components.bambu_lab.pybambu] Starting MQTT listener thread
2024-09-09 18:48:15.224 INFO (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] MQTT listener thread started.
...
2024-09-09 18:48:16.493 DEBUG (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] Starting watchdog thread
2024-09-09 18:48:16.516 INFO (UNKNOWN-Watchdog-175) [custom_components.bambu_lab.pybambu] Watchdog thread started.
2024-09-09 18:48:16.646 DEBUG (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] Got Version Data
2024-09-09 18:48:16.647 DEBUG (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] UNKNOWN DEVICE: hw_ver='AP07' / project_name='N1'
2024-09-09 18:48:16.647 DEBUG (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] Device is UNKNOWN
2024-09-09 18:48:16.653 DEBUG (UNKNOWN-Mqtt-67) [custom_components.bambu_lab.pybambu] UNKNOWN DEVICE: hw_ver='AP07' / project_name='N1'

Nothing much else of interest that I see.

I do not see the expected LOGGER.debug("Starting Chamber Image thread")

nzrutman commented 2 months ago

self.info.device_type == UNKNOWN explains missing Features.CAMERA_IMAGE

AdrianGarside commented 4 weeks ago

Fixed in latest dev release.