-
Notifications
You must be signed in to change notification settings - Fork 98
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] EXTERNAL: Error opening camera streams due to X1 firmware issues #221
Comments
Has the IP of your printer changed by any chance? |
No, I checked and the IPs of all the printers are still the same. All of the other sensors are working properly (I'm assuming those would be broken too, if the IP changed?). |
Ah yeah you're right. I got the logic mixed up with something else I did. Can you access the stream via VLC? |
Hello, I have the same problem. Error from stream worker: Error opening stream (EXIT, Immediate exit requested) rtsps://:@us.mqtt.bambulab.com/streaming/live/1 |
Ohhh ok, I know the cause of this now. The URL is populated from the config flow, not the MQTT. Will revert |
Thank you for your work ! |
Can you try the latest pre-release please: https://github.com/greghesp/ha-bambulab/releases/tag/v1.7.1-dev1 |
Hello, Still does not work. Tried to install locally, without success. I am attaching error logs, but I am not sure that they correspond to this problem. Logger: aiohttp.server Error handling request |
Oops, minor issue. You might need to reload the integration |
Hello, I can't find the version on HACS. |
Have you go the Beta toggle ticked? |
Yes, i see v1.7.1-dev1 |
Odd. I just checked my production instance and it's there. Maybe try toggling it? Sometimes its in the drop-down, but you have to select off if and then back into it for it to select |
I will try to uninstall completely and download again |
Ahhhh, I'd created the tag but not the release. Oops! Try again now |
Upload the file directly to home assistant, unfortunately it still doesn't work Logger: homeassistant.components.stream.stream.camera.x1c_00m09a371200619_camera Error from stream worker: Error opening stream (PROTOCOL_NOT_FOUND, Protocol not found) ://bblp:edc1d6f5@disable |
Oh - you don't have RTSP enabled on your printer. After the @ sign in that URL should have the IP address, but its reporting disabled instead |
My fault, I forgot to reactivate live. It works, thank you very much! |
Seems I've also got the same issue as OP I'm not sure this is an issue with the integration, as VLC cannot access the stream either. @bubbleytea - Have you got Timelapse on? I've never had this issue before, and I've just turned timelapse on and now have this issue |
Hello, New problem it seems, my timelaps is activate Logger: homeassistant.components.stream.stream.camera.x1c_00m09a371200619_camera Error from stream worker: Error opening stream (INVALIDDATA, Invalid data found when processing input) rtsps://:@192.168.68.140/streaming/live/1 |
This looks like it's been disabled again |
Reactivate..., this printer likes to play jokes on me... Logger: homeassistant.components.stream.stream.camera.x1c_00m09a371200619_camera Error from stream worker: Error opening stream (ERRORTYPE_5, I/O error) rtsps://:@192.168.68.140/streaming/live/1 |
I'm also getting this issue as well. It's nothing to do with HA from what I can tell, as I'm also unable to access the stream from VLC. Must be a bug in the firmware |
I can get a camera stream after first boot on an X1C using HA. After that it drops off. I'm not sure when, or why, though diffing the i/o could provide a clue. Does the FW just drop multiple streams? Does it fallback on trusted domains? Anyways please take some time for the holidays, we'll always be here :) |
The RTSP support in the firmware is just very buggy unfortunately. |
It hasn't bothered me much, it seems like a finicky problem to solve. Everything else works great :) |
I was having the same right after I upgraded to firmware 1.7.01.00. I played with it for a while, but after I hard rebooted the printer it started working. I am having some timestamp differences errors but it seems to be working well. I will add another comment if it stops working or has any issues. So far seems pretty stable. I am also starting to play with WebRTC and streaming it through that to see if it makes a difference. |
What I’m finding is that with webrtc and pointing both my production and test instance of home assistant at the same go2rtc instance then I have a reliable connection. But if I restart home assistant (and with my docker based setup that restarts go2rtc) then the connection is broken until I restart the printer. |
While when I had two separate go2rtc instances the connection I think was not reliable even if I didn’t restart my production home assistant instance but I’m not certain. |
Oh interesting, I haven't had time to try the a webrtc server yet. What are you using for the docker container? I was thinking of throwing it on my k8s cluster. |
go2rtc is one I've used outside of HA before, but think it's actually bundled in HA too IIRC |
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. |
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. |
Is there a guide on how to setup WebRTC/go2rtc for this integration? |
This is so annoying, is Bambu doing anything about this? |
Stale issue message |
Hello, I have with my X1C and Home Assistant integration same problem = in the log is error Error from stream worker: Error opening stream. Exist a solution? |
Logger: homeassistant.components.stream.stream.camera.bambu_lab_x1c_camera Error from stream worker: Error opening stream (ERRORTYPE_5, I/O error, rtsps://:@192.168.0.228:322/streaming/live/1) I have this issue, is this being looked at by anyone I would really appreciate a response. |
Having same issue with my X1C firmware version 01.08.02.00. Get a VLC stream error as well when i use the RTSPS url. Log attached |
Restarting your printer will help briefly. There is nothing this integration can do to make the video feed work reliably due to bugs in the printer implementation that have gone unfixed. |
Thanks for the response. What specifically is the issue on the firmware side. Do you have any references to it? |
If the issue was specifically understood Bambu would probably have fixed it by now. There’s a link above to the Bambu studio GitHub. |
Ok so I don't know if its been discovered before but I am just going to throw it out here. Since before and after posting my comment 5 days ago I have been really trying to get this working all the way to docker containers and elaborate command line. Nothing seemed to work even on reboot of the X1 I could not get the stream to ever show. So i stumble onto this post and figure why not, I hope its that easy. Upon configuring I get the Home Assistant error message _"The stream integration is not set up. Please ensure that you have 'default_config:' or 'stream:' in your configuration.yaml". First google result brought me here. With my configuration I just added stream: to me HA configuration.yaml and restarted. After reboot my camera on my X1 has been working as expected. The logs no long output the stream error. I have had my printer up for about 3 days now without a reboot and camera images are still working. I did notice it might take 2-5 seconds for the image to start streaming and there is some skipping in the frame rate but i will take it! I have also removed the stream: in my configuration to see if it would go back to giving me the error and sure enough it went back to the camera not working. |
Describe the bug
Camera streams stopped working and I see this error in the logs:
Camera streams time out:
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 (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
Other Information
I don't see any other errors in the logs. Is there anything else I can do to help debug?
The text was updated successfully, but these errors were encountered: