greghesp / ha-bambulab

A Home Assistant Integration for Bambu Lab Printers
987 stars 85 forks source link

[Bug] A1 mini no camera entity #415

Closed boehser-enkel closed 10 months ago

boehser-enkel commented 10 months ago

Describe the bug

A1 mini no camera entity. Connected via Cloud + local

To Reproduce

Connect

Expected Behaviour

Camera

What device are you using?

A1 Mini

Diagnostic Output

{
  "home_assistant": {
    "installation_type": "Home Assistant Container",
    "version": "2024.1.2",
    "dev": false,
    "hassio": false,
    "virtualenv": false,
    "python_version": "3.11.6",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "5.15.0-91-generic",
    "run_as_root": true
  },
  "custom_components": {
    "powercalc": {
      "version": "v1.9.15",
      "requirements": [
        "numpy>=1.21.1"
      ]
    },
    "meross_lan": {
      "version": "4.5.2",
      "requirements": []
    },
    "waste_collection_schedule": {
      "version": "1.44.0",
      "requirements": [
        "icalendar",
        "recurring_ical_events",
        "icalevents",
        "bs4",
        "lxml"
      ]
    },
    "alarmo": {
      "version": "v1.9.13",
      "requirements": []
    },
    "monitor_docker": {
      "version": "1.10",
      "requirements": [
        "aiodocker==0.21.0",
        "python-dateutil==2.8.2"
      ]
    },
    "bambu_lab": {
      "version": "2.0.5",
      "requirements": []
    },
    "dwd_weather": {
      "version": "v2.1.0",
      "requirements": [
        "simple_dwd_weatherforecast==2.0.29",
        "markdownify==0.6.5",
        "suntimes==1.1.2"
      ]
    },
    "frigate": {
      "version": "4.0.1",
      "requirements": [
        "pytz==2022.7"
      ]
    },
    "hacs": {
      "version": "1.33.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "xiaomi_cloud_map_extractor": {
      "version": "v2.2.0",
      "requirements": [
        "pillow",
        "pybase64",
        "python-miio",
        "requests",
        "pycryptodome"
      ]
    },
    "dwd": {
      "version": "2023.10.0",
      "requirements": []
    },
    "portainer": {
      "version": "0.0.0",
      "requirements": []
    },
    "moonraker": {
      "version": "1.1.0",
      "requirements": [
        "moonraker-api==2.0.5"
      ]
    }
  },
  "integration_manifest": {
    "domain": "bambu_lab",
    "name": "Bambu Lab",
    "codeowners": [
      "@greghesp",
      "@AdrianGarside"
    ],
    "config_flow": true,
    "dependencies": [
      "device_automation",
      "mqtt",
      "ffmpeg"
    ],
    "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.5",
    "is_built_in": false
  },
  "data": {
    "config_entry": {
      "entry_id": "a555605988809fc5bbd11f79f5e31412",
      "version": 2,
      "minor_version": 1,
      "domain": "bambu_lab",
      "title": "**REDACTED**",
      "data": {
        "device_type": "A1mini",
        "serial": "**REDACTED**"
      },
      "options": {
        "region": "Europe",
        "email": "**REDACTED**",
        "username": "**REDACTED**",
        "name": "A1 Mini",
        "host": "192.168.88.53",
        "local_mqtt": false,
        "auth_token": "**REDACTED**",
        "access_code": "**REDACTED**"
      },
      "pref_disable_new_entities": false,
      "pref_disable_polling": false,
      "source": "user",
      "unique_id": null,
      "disabled_by": null
    },
    "push_all": {
      "upload": {
        "status": "idle",
        "progress": 0,
        "message": ""
      },
      "nozzle_temper": 24.71875,
      "nozzle_target_temper": 0,
      "bed_temper": 26.125,
      "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": "-52dBm",
      "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": 3687824,
      "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": [],
      "fan_gear": 0,
      "hms": [],
      "online": {
        "ahb": false,
        "rfid": false,
        "version": 167015886
      },
      "ams": {
        "ams": [
          {
            "id": "0",
            "humidity": "5",
            "temp": "0.0",
            "tray": [
              {
                "id": "0",
                "remain": 100,
                "k": 0.019999999552965164,
                "n": 1,
                "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"
              },
              {
                "id": "1",
                "remain": 100,
                "k": 0.019999999552965164,
                "n": 1,
                "tag_uid": "0000000000000000",
                "tray_id_name": "",
                "tray_info_idx": "GFL01",
                "tray_type": "PLA",
                "tray_sub_brands": "",
                "tray_color": "010101FF",
                "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"
              },
              {
                "id": "2",
                "remain": 100,
                "k": 0.019999999552965164,
                "n": 1,
                "tag_uid": "0000000000000000",
                "tray_id_name": "",
                "tray_info_idx": "GFL01",
                "tray_type": "PLA",
                "tray_sub_brands": "",
                "tray_color": "0D3ADAFF",
                "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"
              },
              {
                "id": "3",
                "remain": 100,
                "k": 0.019999999552965164,
                "n": 1,
                "tag_uid": "0000000000000000",
                "tray_id_name": "",
                "tray_info_idx": "GFL96",
                "tray_type": "PLA",
                "tray_sub_brands": "",
                "tray_color": "893044FF",
                "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"
              }
            ]
          }
        ],
        "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": 9,
        "insert_flag": true,
        "power_on_flag": false
      },
      "vt_tray": {
        "id": "254",
        "tag_uid": "0000000000000000",
        "tray_id_name": "",
        "tray_info_idx": "GFG99",
        "tray_type": "PETG",
        "tray_sub_brands": "",
        "tray_color": "010101FF",
        "tray_weight": "0",
        "tray_diameter": "0.00",
        "tray_temp": "0",
        "tray_time": "0",
        "bed_temp_type": "0",
        "bed_temp": "0",
        "nozzle_temp_max": "270",
        "nozzle_temp_min": "220",
        "xcam_info": "000000000000000000000000",
        "tray_uuid": "00000000000000000000000000000000",
        "remain": 0,
        "k": 0.019999999552965164,
        "n": 1
      },
      "lights_report": [
        {
          "node": "chamber_light",
          "mode": "on"
        }
      ],
      "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": []
      },
      "ipcam": {
        "ipcam_dev": "1",
        "ipcam_record": "enable",
        "timelapse": "disable",
        "resolution": "1920x1080",
        "mode_bits": 3
      },
      "command": "push_status",
      "msg": 0,
      "sequence_id": "42"
    },
    "get_version": {
      "command": "get_version",
      "sequence_id": "0",
      "module": [
        {
          "name": "ota",
          "project_name": "N1",
          "sw_ver": "01.01.03.00",
          "hw_ver": "OTA",
          "sn": "**REDACTED**"
        },
        {
          "name": "esp32",
          "project_name": "N1",
          "sw_ver": "01.07.21.60",
          "hw_ver": "AP05",
          "sn": "**REDACTED**"
        },
        {
          "name": "mc",
          "project_name": "N1",
          "sw_ver": "00.00.20.36",
          "loader_ver": "00.00.00.32",
          "hw_ver": "MC02",
          "sn": "**REDACTED**"
        },
        {
          "name": "th",
          "project_name": "N1",
          "sw_ver": "00.00.06.78",
          "loader_ver": "00.00.00.26",
          "hw_ver": "TH03",
          "sn": "**REDACTED**"
        },
        {
          "name": "ams_f1/0",
          "project_name": "",
          "sw_ver": "00.00.07.89",
          "loader_ver": "00.00.00.00",
          "ota_ver": "00.00.00.00",
          "hw_ver": "AMS_F102",
          "sn": "**REDACTED**"
        }
      ],
      "result": "success",
      "reason": ""
    }
  }
}

Log Extracts

None

Other Information

No response

AdrianGarside commented 10 months ago

Please try this beta version and see if it fixes it: https://github.com/greghesp/ha-bambulab/releases/tag/v2.0.8-dev1

And to double check, you're not seeing it here under the top 'Controls' section? image

boehser-enkel commented 10 months ago

Please try this beta version and see if it fixes it: https://github.com/greghesp/ha-bambulab/releases/tag/v2.0.8-dev1

And to double check, you're not seeing it here under the top 'Controls' section? image

Yes exactly that's the case. 2.08. worked for me. Camera entity (with image) is now there

boehser-enkel commented 10 months ago

But start time seems to be gone..: grafik

And the camera entity does not update: grafik

AdrianGarside commented 10 months ago

Is there anything in the debug log for the camera not working?

I did just make some changes to how start time is handled and they’re nuanced so I may have introduced a bug there. Is the cover image and print weight/length sensors working for you? Was your printer mid print when you restarted the integration/home assistant?

boehser-enkel commented 10 months ago

No error in log. When i reload the integration while the printer is online everything is working again. When the printer goes offline and online again. Everything updates but the camera image is not (until i reload again)

Cover image works. Weight and length also

AdrianGarside commented 10 months ago

Odd, there should be logs (and errors) if the integration cannot successfully reconnect to the printer for the chamber image when the printer comes back online. I'll test that tonight with my P1P/S.

AdrianGarside commented 10 months ago

Can you enable debug logs and see if anything stands out during the repro. I'm not able to reproduce this turning my P1P/S off and then later back on.

boehser-enkel commented 10 months ago

No not at all:


2024-01-10 09:15:50.308 WARNING (MainThread) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 0
2024-01-10 09:15:50.730 WARNING (Thread-1155 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 0
2024-01-10 09:16:02.363 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:02.367 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:03.289 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:03.370 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:04.375 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:04.379 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:05.301 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:05.382 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:05.386 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:06.389 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:07.314 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:07.393 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:07.396 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:08.398 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:09.328 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:09.402 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:09.406 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:10.409 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:11.341 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:11.414 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:11.418 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:12.421 DEBUG (Thread-2205) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:22.202 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities button.d0fa903fa623_firmware_restart are missing or not currently available
2024-01-10 09:16:37.668 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:37.668 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Client connected event received.
2024-01-10 09:16:37.668 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Now subscribing...
2024-01-10 09:16:37.668 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Subscribing: device/0309DA3A2000673/report
2024-01-10 09:16:37.668 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] On Connect: Getting version info
2024-01-10 09:16:37.668 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Sent {'info': {'sequence_id': '0', 'command': 'get_version'}} to topic device/0309DA3A2000673/request
2024-01-10 09:16:37.668 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] On Connect: Request push all
2024-01-10 09:16:37.668 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Sent {'pushing': {'sequence_id': '0', 'command': 'pushall'}} to topic device/0309DA3A2000673/request
2024-01-10 09:16:38.234 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:38.234 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Got Version Data
2024-01-10 09:16:38.234 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Device is A1 Mini
2024-01-10 09:16:38.234 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Device is A1 Mini
2024-01-10 09:16:39.215 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:39.215 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:41.741 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:43.756 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:43.756 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:45.767 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:47.781 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:47.781 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:49.792 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:51.802 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:53.815 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:55.825 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:56.141 DEBUG (SyncWorker_6) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:56.143 DEBUG (SyncWorker_6) [custom_components.bambu_lab.pybambu] Sent {'system': {'sequence_id': '0', 'command': 'ledctrl', 'led_node': 'chamber_light', 'led_mode': 'on', 'led_on_time': 500, 'led_off_time': 500, 'loop_times': 0, 'interval_time': 0}} to topic device/0309DA3A2000673/request
2024-01-10 09:16:57.838 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:57.838 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:16:59.852 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-10 09:16:59.852 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-10 09:17:01.863 DEBUG (Thread-2203 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
AdrianGarside commented 10 months ago

Ah, I think this bug is specific to when getting the data from bambu cloud mqtt. I bet if you go through the reconfigure flow to set the integration to connect directly to the printer, you'll stop seeing the bug.

AdrianGarside commented 10 months ago

Yep, that's when the bug reproes. I have the chamber image thread tied to the act of connecting to the mqtt server but in the cloud connected case we don't ever disconnect/reconnect to the cloud mqtt - we just re-subscribe for the printer data on the existing cloud mqtt connection so the reconnect to the printer for the chamber images never happens.

boehser-enkel commented 10 months ago

So better go with direct connection only? (am i missing something then?) Or are you able to change this?

AdrianGarside commented 10 months ago

I can fix it. But direct to printer mqtt is generally better since it's more reliable than bambu cloud. And we can detect the offline printer far faster when connected directly to it's local mqtt server than the multiple minutes it takes bambu cloud mqtt to notify us the printer is offline.

AdrianGarside commented 10 months ago

https://github.com/greghesp/ha-bambulab/releases/tag/v2.0.9

boehser-enkel commented 10 months ago

Now the same again. Camera offline..

AdrianGarside commented 10 months ago

Anything in the debug logs? The new logic to reconnect only tries for a minute before giving up.

boehser-enkel commented 10 months ago

Anything in the debug logs? The new logic to reconnect only tries for a minute before giving up.

Okay that makes sense because i turn of the printer for the rest of the night when the print finishes. But the rest updates again after repower. Could you just restart the stream when the printer goes to online again?

AdrianGarside commented 10 months ago

No, I mean it does now reconnect when the printer comes online but it only tries for a minute. Is there anything in the debug logs when it failed to connect?

boehser-enkel commented 10 months ago

AH i got that. No no errors while reproducing. Turned on the printer but the camera did not go online:


2024-01-12 08:42:07.686 WARNING (MainThread) [custom_components.alarmo.alarm_control_panel] Cannot go to state disarmed from state disarmed.
2024-01-12 08:42:08.485 WARNING (MainThread) [custom_components.alarmo.alarm_control_panel] Cannot go to state disarmed from state disarmed.
2024-01-12 08:43:12.001 WARNING (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 16
2024-01-12 08:43:12.002 WARNING (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] On Disconnect: Disconnected from Broker: 16
2024-01-12 08:44:09.995 INFO (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] On Connect: Connected to Broker
2024-01-12 08:44:09.996 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Now subscribing...
2024-01-12 08:44:09.996 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Subscribing: device/0309DA3A2000673/report
2024-01-12 08:44:09.996 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] On Connect: Getting version info
2024-01-12 08:44:09.996 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Sent {'info': {'sequence_id': '0', 'command': 'get_version'}} to topic device/0309DA3A2000673/request
2024-01-12 08:44:09.996 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] On Connect: Request push all
2024-01-12 08:44:09.996 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Sent {'pushing': {'sequence_id': '0', 'command': 'pushall'}} to topic device/0309DA3A2000673/request
2024-01-12 08:44:09.996 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Starting watchdog thread
2024-01-12 08:44:09.996 INFO (Thread-4398) [custom_components.bambu_lab.pybambu] Watchdog thread started.
2024-01-12 08:44:10.014 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:44:10.014 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:44:10.016 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Got Version Data
2024-01-12 08:44:10.016 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Device is A1 Mini
2024-01-12 08:44:10.016 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Device is A1 Mini
2024-01-12 08:44:10.780 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:44:10.781 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:44:21.181 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:44:32.574 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:44:32.575 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:44:34.588 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:44:34.589 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:44:36.602 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:44:36.603 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:44:44.653 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:44:44.654 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:44:46.668 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:44:48.680 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:44:48.680 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:44:50.696 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:44:50.696 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:44:52.709 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:06.797 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:06.798 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:45:08.831 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:10.822 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:10.822 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:45:14.849 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:14.849 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:45:16.862 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:16.863 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:45:17.226 WARNING (MainThread) [custom_components.alarmo.alarm_control_panel] Cannot go to state disarmed from state disarmed.
2024-01-12 08:45:18.877 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:18.877 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:45:20.156 WARNING (MainThread) [custom_components.alarmo.alarm_control_panel] Cannot go to state disarmed from state disarmed.
2024-01-12 08:45:20.890 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:20.891 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:45:24.916 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:26.932 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:28.944 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:28.944 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:45:30.960 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:30.960 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:45:35.783 WARNING (MainThread) [custom_components.alarmo.alarm_control_panel] Cannot go to state disarmed from state disarmed.
2024-01-12 08:45:38.333 WARNING (MainThread) [custom_components.alarmo.alarm_control_panel] Cannot go to state disarmed from state disarmed.
2024-01-12 08:45:39.011 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:39.011 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:45:45.049 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:49.081 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:49.082 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
2024-01-12 08:45:55.111 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab.pybambu] Received data from: A1Mini
2024-01-12 08:45:5
```5.112 DEBUG (Thread-4394 (mqtt_listen_thread)) [custom_components.bambu_lab] Manually updated bambu_lab data
AdrianGarside commented 10 months ago

Can you double check what version you are running? This suggests you've lost the original fix I made: Received data from: A1Mini With the fix it should read: Received data from: A1MINI

And the one-line fix is definitely still there.

AdrianGarside commented 10 months ago

Oh wait. I see a second bug where I overwrite the fixed string. Fixed release coming.

AdrianGarside commented 10 months ago

https://github.com/greghesp/ha-bambulab/releases/tag/v2.0.10

boehser-enkel commented 10 months ago

Will test

boehser-enkel commented 10 months ago

Looks better now. Camera comes back after being offline :)

maruno commented 4 months ago

Is the A1 mini camera supposed to work in the LAN mode? I don't get the entity on a fresh install, just got my printer so it could also be I am missing a setting?

config_entry-bambu_lab-01J21HQSRCXS8Z015HB2P6WKZV.json