Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Bug] Camera feeding missing #521

Open
cayalag opened this issue May 1, 2024 · 15 comments
Open

[Bug] Camera feeding missing #521

cayalag opened this issue May 1, 2024 · 15 comments
Labels
bug Something isn't working

Comments

@cayalag
Copy link

cayalag commented May 1, 2024

Describe the bug

Hello !

I have added my second P1S and everything seems to be correct. However, I am missing the camera feed.

To Reproduce

Captura de pantalla 2024-05-01 a las 14 33 36

Expected Behaviour

I was expecting to find it under Sensors, same as the other printer.

What device are you using?

P1S

Diagnostic Output

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2024.4.3",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.12.2",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Madrid",
    "os_name": "Linux",
    "os_version": "6.6.25-haos",
    "supervisor": "2024.04.4",
    "host_os": "Home Assistant OS 12.2",
    "docker_version": "25.0.5",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "bambu_lab": {
      "version": "2.0.18",
      "requirements": []
    },
    "frigate": {
      "version": "4.0.0",
      "requirements": [
        "pytz==2022.7"
      ]
    },
    "dahua_vto": {
      "version": "1.0.7",
      "requirements": []
    },
    "dahua": {
      "version": "0.5.0",
      "requirements": []
    },
    "midea_dehumidifier": {
      "version": "1.0.3",
      "requirements": [
        "midea-inventor-lib==1.0.4"
      ]
    },
    "fusion_solar": {
      "version": "3.0.2",
      "requirements": []
    },
    "huawei_solar": {
      "version": "1.2.4",
      "requirements": [
        "huawei-solar==2.2.4"
      ]
    },
    "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.18",
    "is_built_in": false
  },
  "data": {
    "config_entry": {
      "entry_id": "57025516499b9b35642d620f801e222f",
      "version": 2,
      "minor_version": 1,
      "domain": "bambu_lab",
      "title": "**REDACTED**",
      "data": {
        "device_type": "P1S",
        "serial": "**REDACTED**"
      },
      "options": {
        "region": "Europe",
        "email": "**REDACTED**",
        "username": "**REDACTED**",
        "name": "P1S #2 Carlos",
        "host": "",
        "local_mqtt": false,
        "auth_token": "**REDACTED**",
        "access_code": "**REDACTED**",
        "usage_hours": 79.94
      },
      "pref_disable_new_entities": false,
      "pref_disable_polling": false,
      "source": "user",
      "unique_id": null,
      "disabled_by": null
    },
    "push_all": {
      "ipcam": {
        "ipcam_dev": "1",
        "ipcam_record": "enable",
        "timelapse": "disable",
        "resolution": "",
        "tutk_server": "enable",
        "mode_bits": 3
      },
      "upload": {
        "status": "idle",
        "progress": 0,
        "message": ""
      },
      "nozzle_temper": 219.9375,
      "nozzle_target_temper": 220,
      "bed_temper": 54.96875,
      "bed_target_temper": 55,
      "chamber_temper": 5,
      "mc_print_stage": "2",
      "heatbreak_fan_speed": "15",
      "cooling_fan_speed": "15",
      "big_fan1_speed": "7",
      "big_fan2_speed": "0",
      "mc_percent": 76,
      "mc_remaining_time": 28,
      "ams_status": 1280,
      "ams_rfid_status": 2,
      "hw_switch_state": 1,
      "spd_mag": 100,
      "spd_lvl": 2,
      "print_error": 0,
      "lifecycle": "product",
      "wifi_signal": "-67dBm",
      "gcode_state": "RUNNING",
      "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": "Belt_plate_1.3mf",
      "gcode_file": "Belt_plate_1.3mf",
      "stg": [
        2,
        14,
        1
      ],
      "stg_cur": 0,
      "print_type": "local",
      "home_flag": 41043263,
      "mc_print_line_number": "139637",
      "mc_print_sub_stage": 0,
      "sdcard": true,
      "force_upgrade": false,
      "mess_production_state": "active",
      "layer_num": 74,
      "total_layer_num": 100,
      "s_obj": [],
      "filam_bak": [],
      "fan_gear": 26367,
      "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": 1,
        "new_ver_list": []
      },
      "hms": [],
      "online": {
        "ahb": false,
        "rfid": false,
        "version": 220129082
      },
      "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": 9,
        "insert_flag": true,
        "power_on_flag": false
      },
      "vt_tray": {
        "id": "254",
        "tag_uid": "0000000000000000",
        "tray_id_name": "",
        "tray_info_idx": "",
        "tray_type": "",
        "tray_sub_brands": "",
        "tray_color": "00000000",
        "tray_weight": "0",
        "tray_diameter": "0.00",
        "tray_temp": "0",
        "tray_time": "0",
        "bed_temp_type": "0",
        "bed_temp": "0",
        "nozzle_temp_max": "0",
        "nozzle_temp_min": "0",
        "xcam_info": "000000000000000000000000",
        "tray_uuid": "00000000000000000000000000000000",
        "remain": 0,
        "k": 0.019999999552965164,
        "n": 1,
        "cali_idx": -1
      },
      "lights_report": [
        {
          "node": "chamber_light",
          "mode": "on"
        }
      ],
      "command": "push_status",
      "msg": 0,
      "sequence_id": "4859"
    },
    "get_version": {
      "command": "get_version",
      "sequence_id": "0",
      "module": [
        {
          "name": "ota",
          "project_name": "C12",
          "sw_ver": "01.05.04.00",
          "hw_ver": "OTA",
          "sn": "**REDACTED**",
          "flag": 2
        },
        {
          "name": "esp32",
          "project_name": "C12",
          "sw_ver": "01.08.27.21",
          "hw_ver": "AP04",
          "sn": "**REDACTED**",
          "flag": 0
        },
        {
          "name": "mc",
          "project_name": "P1",
          "sw_ver": "00.00.26.60",
          "loader_ver": "00.00.00.28",
          "hw_ver": "MC07",
          "sn": "**REDACTED**",
          "flag": 0
        },
        {
          "name": "th",
          "project_name": "P1",
          "sw_ver": "00.00.09.95",
          "loader_ver": "00.00.00.14",
          "hw_ver": "TH09",
          "sn": "**REDACTED**",
          "flag": 0
        }
      ],
      "result": "success",
      "reason": ""
    }
  }
}

Log Extracts

No response

Other Information

No response

@cayalag cayalag added the bug Something isn't working label May 1, 2024
@AdrianGarside
Copy link
Collaborator

Can you try updating to v2.0.21 and seeing if this still reproes. If it does, I'll need debug logs to see if that shed light on how the camera sensor has gone AWOL.

@cayalag
Copy link
Author

cayalag commented May 2, 2024 via email

@AdrianGarside
Copy link
Collaborator

On the P1S the image snapshot camera is under controls not sensors. I haven’t found a force home assistant to put it under sensors like the X1 video feed camera.

@AdrianGarside
Copy link
Collaborator

Actually… it’s seemingly not consistent. On my production HA instance camera and cover image are both under controls. But your cover image is under sensors. And on my test instance I think they’re both under sensors too (away from my PC so will have to confirm this).

@AdrianGarside
Copy link
Collaborator

The readme.md file in the root of the source has instructions on how to get debug logs.

@cayalag
Copy link
Author

cayalag commented May 2, 2024

Hey Adrian.

I thing I got the debug log. Let me know if that's not what you need.

Regarding where the camera should appear... the other P1S definitely shows the camera feed under sensors:

Captura de pantalla 2024-05-02 a las 16 20 47

Thanks again !
Carlos

home-assistant_2024-05-02T14-19-38.856Z.log

@AdrianGarside
Copy link
Collaborator

2024-05-01 18:14:46.048 ERROR (P1S-Chamber-112) [custom_components.bambu_lab.pybambu] Socket error: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1000)

Possible that's involved - not an error I've ever seen. One thing that's odd about your log - you said you have two printers but I'm only seeing log output for one?

Looks like I'll need to tweak the logging here since I'm not seeing log output I expect.

@cayalag
Copy link
Author

cayalag commented May 8, 2024

Yeah, both printers with the same firmware. The only difference is one of them has 2 AMS units connected to it, but I guess that's not key to the problem

Captura de pantalla 2024-05-08 a las 9 20 15

Let me know if there is anything I can test on my side.

Thanks !

@nocomment-bln
Copy link

my camera stream is also not working

@honzis1364
Copy link

Heyo everyone, has anyone managed to get P1S camera into HomeBridge? I dont have a problem to watch the camera in Assistant (I also have it under Sensors). But when I try to import everything via HomeBridge, camera won't import.

@marcinbauer85
Copy link

@honzis1364 This is because this integration generates an image.printer_camera entity which is from the image domain, and homekit doesn't allow for image domain publishing. I've just created a ticket for this: #531

@xinux87
Copy link

xinux87 commented Jun 1, 2024

I hade the same problem, the camera feed desapeared but after disabling the integration, restarted HA, and activating it again, it started working...

The camera started to work again.

@muusonos
Copy link

muusonos commented Jun 2, 2024

I have had the same problem for two days. The image.camerafeed has disappeared.
@xinux87: It's not working for me.

@briandye
Copy link

briandye commented Jun 4, 2024

It was working for a bit on my X1C but is no longer working, feels like it stopped after that most recent firmware update? I tried disabling, and re-activating, reinstalling add-in and switching from cloud mode to local ip address mode, none have helped.

@briandye
Copy link

briandye commented Jun 4, 2024

It was working for a bit on my X1C but is no longer working, feels like it stopped after that most recent firmware update? I tried disabling, and re-activating, reinstalling add-in and switching from cloud mode to local ip address mode, none have helped.

Power cycling the Bambu printer seems to have resolved this

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

No branches or pull requests

8 participants