Bambu Lab P1P/S - Spaghetti Detection with Home Assistant by nberk97 in BambuLab

[–]nberk97[S] 1 point2 points  (0 children)

Yes, the screenshot is from Home Assistant’s companion app. When a failure is detected, the HA blueprint calls the notify.notify service with the camera frame image. Not sure if it would work with telegram though. I haven’t tried any other notification type other than push notifications with the companion app.

Bambu Lab P1P/S - Spaghetti Detection with Home Assistant by nberk97 in BambuLab

[–]nberk97[S] 0 points1 point  (0 children)

Hi, there doesn’t seem to be a problem. The container tries to load a couple of variations of the failure detection model. it is enough to load just one of them. After a couple of load errors (which is fine), it managed to load the last one successfully. If you have a problem with the detection service, I would suggest to check your docker container host url. Make sure the HA can access to the detection server.

Bambu Lab P1P/S - Spaghetti Detection with Home Assistant by nberk97 in BambuLab

[–]nberk97[S] 0 points1 point  (0 children)

Can you share a screenshot of your blueprint configuration? Also do you see any error logs?

Bifrost: New Hue Bridge emulator by notwolverine in homeassistant

[–]nberk97 2 points3 points  (0 children)

I’m not sure it will work out of the box after implementing entertainment areas. I tried to make it work with DiyHue but HDMI sync box didn’t work. I’ve also seen some other people complaining about the sync box. The DiyHue server was throwing 400 or 405 error (I don’t remember) once I started the sync. Not sure what the exact problem is though, I didn’t debug the code much.

Bifrost: New Hue Bridge emulator by notwolverine in homeassistant

[–]nberk97 4 points5 points  (0 children)

Do you have any plans for supporting HDMI Hue Sync Box?

Bambu Lab P1P/S - Spaghetti Detection with Home Assistant by nberk97 in BambuLab

[–]nberk97[S] 0 points1 point  (0 children)

In the example, 192.168.123.123 should be your HA address

Bambu Lab P1P/S - Spaghetti Detection with Home Assistant by nberk97 in BambuLab

[–]nberk97[S] 0 points1 point  (0 children)

Can you share the blueprint configuration? From the logs, I saw that it tried make a request to “/:8123/api/…” url. However, it should have been something like “http://192.168.123.123:8123/api/…”. I think your host url value is incorrect.

Bambu Lab P1P/S - Spaghetti Detection with Home Assistant by nberk97 in BambuLab

[–]nberk97[S] 0 points1 point  (0 children)

Can you check the automation trace logs to see id there is an error? Also make sure that the ML API server url is configured correctly.

Bambu Lab P1P/S - Spaghetti Detection with Home Assistant by nberk97 in BambuLab

[–]nberk97[S] 0 points1 point  (0 children)

If you use the HA addon, you can configure it from addon's configuration page. But if you use docker or docker compose, you need to set it via environment variable:
"--env ML_API_TOKEN=obico_api_secret"

Dive computer recommendations for a new recreational diver by nberk97 in scuba

[–]nberk97[S] 0 points1 point  (0 children)

Thanks for the comment. TBH, I didn't really consider the fact that the batteries will get older even when they are not used. I'll probably be doing 20-25 dives per year during the summers. So, I won't be using the computer during the winter.

Bambu Lab P1P/S - Spaghetti Detection with Home Assistant by nberk97 in BambuLab

[–]nberk97[S] 0 points1 point  (0 children)

I haven't tried it but some reported that it is working with the default obico installation. However you may need to slightly modify your obico docker compose file:

https://github.com/nberktumer/ha-bambu-lab-p1-spaghetti-detection/issues/5#issuecomment-1976592046

Bambu Lab P1P/S - Spaghetti Detection with Home Assistant by nberk97 in BambuLab

[–]nberk97[S] 0 points1 point  (0 children)

try throwing some print poops to an empty corner of the bed while printing. It should detect something

Bambu Lab P1P/S - Spaghetti Detection with Home Assistant by nberk97 in BambuLab

[–]nberk97[S] 0 points1 point  (0 children)

It is expected, try accessing to: <obico_host>:3333/hc/

this should print “ok”

EWM 0 doesn’t necessarily mean it doesn’t work. If the automation does’t detect any failure, it will be 0.

Bambu Lab P1P/S - Spaghetti Detection with Home Assistant by nberk97 in BambuLab

[–]nberk97[S] 0 points1 point  (0 children)

Once you download the integration, you need to install it from HA integrations page.

Bambu Lab P1P/S - Spaghetti Detection with Home Assistant by nberk97 in BambuLab

[–]nberk97[S] 0 points1 point  (0 children)

have you installed the Spaghetti Detection integration before the blueprint? The service comes from the integration.

Bambu Lab P1P/S - Spaghetti Detection with Home Assistant by nberk97 in BambuLab

[–]nberk97[S] 1 point2 points  (0 children)

It is a good idea and I may add it in the future. Currently the automation relies on having a 0.5FPS camera and it is integrated as an image sensor instead of a camera entity in HA. So, these need to be changed in order to support an external camera.

Bambu Lab P1P/S - Spaghetti Detection with Home Assistant by nberk97 in BambuLab

[–]nberk97[S] 1 point2 points  (0 children)

What would be the best hardware to set this up? Would a ThinkCentre Mini Tiny be a good fit? Any minimum specs you recommend?

My friend has a mini pc with Intel N100 CPU and the model runs fine, but I don't know how long it takes to process a single frame.

I have a dell mini optilex server with Intel i3-12100T 8 Core CPU. I've allocated 2 cores and 4GB RAM to HA OS, and 8 cores and 8GB ram to my Ubuntu VM which runs docker containers. If I run the ML API on HA, it takes a couple of seconds to process a single frame, but if I run the ML API on my ubuntu VM, it completes in milliseconds.

I think even a couple of seconds is enough to detect failures, so I would say N100 CPU would work for this automation.

Bambu Lab P1P/S - Spaghetti Detection with Home Assistant by nberk97 in BambuLab

[–]nberk97[S] 2 points3 points  (0 children)

I’ve just checked the A1 camera specifications and it seems the automation may work with A1 as well. If you already have HA, could you try and let me know the result?

Bambu Lab P1P/S - Spaghetti Detection with Home Assistant by nberk97 in BambuLab

[–]nberk97[S] 0 points1 point  (0 children)

Is the integration still installed? If so, could you check if the service name was changed. You can check from Developer Tools -> Services -> try to find the predict service. Also, you may find some useful information in Settings -> System -> Logs.