[Bug] Camera feeding missing
cayalag opened this issue · comments
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](https://private-user-images.githubusercontent.com/125193492/327122894-3120e687-eaeb-4855-97ee-d00370475c8a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2MTUzNDEsIm5iZiI6MTcyMDYxNTA0MSwicGF0aCI6Ii8xMjUxOTM0OTIvMzI3MTIyODk0LTMxMjBlNjg3LWVhZWItNDg1NS05N2VlLWQwMDM3MDQ3NWM4YS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxMFQxMjM3MjFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mOWM0MDJkY2JlODU1ZjBmNzA1ZGFlMzBjZjFmMTYwMjY5NjQ2MmQ2YzhhMWQ0ZWI1NGE5NGU3ZWM4NTU4Yzc4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.nIMkhtosAP3vG-UO0pB05dU2xFT5mAKsPhcutpcHRb0)
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
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.
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.
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).
The readme.md file in the root of the source has instructions on how to get debug logs.
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.
my camera stream is also not working
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.
@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
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.
I have had the same problem for two days. The image.camerafeed has disappeared.
@xinux87: It's not working for me.
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.
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