greghesp / ha-bambulab

A Home Assistant Integration for Bambu Lab Printers
856 stars 69 forks source link

[Bug] EXTERNAL: Error opening camera streams due to X1 firmware issues #221

Open bubbleytea opened 1 year ago

bubbleytea commented 1 year ago

Describe the bug

Camera streams stopped working and I see this error in the logs:

2023-09-19 21:17:18.749 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.x1c_****_camera] Error from stream worker: Error opening stream (ERRORTYPE_5, I/O error) rtsps://****:****@192.168.1.168/streaming/live/1

Camera streams time out: image

They were working before when I first set up the integration.

To Reproduce

Install integration and add devices. Eventually the streams just stop loading.

Expected Behaviour

Camera stream loads

What device are you using?

X1C

Firmware Version

01.06.03.00

Home Assistant Version

2023.9.2

Component Version

1.5.0

Log Extracts

2023-09-19 21:17:18.749 ERROR (streamworker) [homeassistant.components.stream.stream.camera.x1c*_camera] Error from stream worker: Error opening stream (ERRORTYPE_5, I/O error) rtsps://**:****@192.168.1.168/streaming/live/1

Other Information

I don't see any other errors in the logs. Is there anything else I can do to help debug?

jmwaldrip commented 9 months ago

Yeah, its bundled in HA. But I have HA running in my K8s cluster. I was going to put it on its own deployment etc so I didn't have to deal with the ingress complexity.

AdrianGarside commented 9 months ago

It's part of the included webrtc integration I think - not sure if there's other copies of go2rtc but each of my HA instances starts it's own copy of go2rtc as part of the webrtc integration. Initially I had both my production and test instances webrtc pointing at their own go2rtc so each of those was separately connecting to the printer. And that seems to be the source of some of the reliability issues I was seeing. Only having one instance pointed at the printer seems to have made things much more reliable - as long as that instance never gets restarted.

anoblet commented 7 months ago

Is there a guide on how to setup WebRTC/go2rtc for this integration?

AdrianGarside commented 7 months ago

https://github.com/greghesp/ha-bambulab/discussions/453#discussioncomment-8267217

mateuszdrab commented 7 months ago

This is so annoying, is Bambu doing anything about this? I was hoping last firmware release would fix it but it's still barely ever working.

github-actions[bot] commented 5 months ago

Stale issue message

lukbe commented 2 months ago

Hello, I have with my X1C and Home Assistant integration same problem = in the log is error Error from stream worker: Error opening stream. Integration version 2.0.21 Home assistant 2024.6.4

Exist a solution?