Войти

Connecting an Ordinary Logitech Webcam to the Creality Ender-3 V3 KE – Part 2: Home Assistant

B Автор Bisonar Team · 3 min · 2026-11-05

Connecting an Ordinary Logitech Webcam to the Creality Ender-3 V3 KE – Part 2: Home Assistant

Türkçe versiyonu

In Part 1 I got an 8-year-old Logitech C310 working with the Ender-3 V3 KE's own camera service. The picture is now streamed on the printer's port 8080. In this part I bring that same picture into Home Assistant, so the printer sits on the same dashboard as my ESP32 voice assistant, the robot vacuum and the air purifier.

This part is much shorter than Part 1, because the hard work was done there.

Home Assistant main dashboard on an Android phone: live picture in the 3D printer card

Which integration?

The printer already runs an mjpg_streamer that offers two addresses:

  • Live stream: http://<printer-ip>:8080/?action=stream
  • Single frame: http://<printer-ip>:8080/?action=snapshot

Home Assistant's built-in MJPEG IP Camera integration asks for exactly these two. No add-on, no HACS and no YAML needed.

Setup

  1. Settings > Devices & services > Add integration.
  2. I searched for "MJPEG" and picked MJPEG IP Camera.
  3. I filled in the fields like this:
  4. Name: Ender-3 V3 KE Kamera
  5. MJPEG URL: http://<printer-ip>:8080/?action=stream
  6. Still image URL: http://<printer-ip>:8080/?action=snapshot
  7. Username and password empty. The printer's stream has no password.
  8. I pressed Submit and confirmed the device name.

Home Assistant created a camera entity called camera.ender_3_v3_ke_kamera.

A dashboard card

I added the camera to my main dashboard in a new "3D Yazıcı" (3D printer) section. The card type is Picture entity with the live camera view:

type: picture-entity
entity: camera.ender_3_v3_ke_kamera
camera_view: live
show_state: false
name: Ender-3 V3 KE

First test: dark again

When I first opened the card, the picture was pitch black. Part 1 had taught me not to panic. I downloaded the frame Home Assistant served: a valid 1280×720 JPEG with an average brightness of 2 out of 255. The camera was working, the room was dark again. With the light on, the picture came through. The screenshot above is from the Home Assistant app on an Android phone. The camera now sits in front of the bed and sees the whole printer.

The Huffman table again

In Part 1 I explained that the Logitech's MJPEG frames have no Huffman table (DHT), which is why Safari and macOS couldn't open them. Home Assistant passes frames through as they come from the camera. The frame I downloaded from HA's camera URL had no table either:

200 image/jpeg bytes=21818 dht=0

That is no problem in Chrome or in the Home Assistant app on Android, as both fill in the missing table themselves. Browsers and apps built on Safari's WebKit engine (Safari on the Mac, iPhone and iPad) will most likely show a broken image. I have no iPhone at home, so I couldn't test that. If you run into it, Home Assistant's FFmpeg camera platform may help: FFmpeg re-encodes the frames and adds the standard table. I haven't tried it, so I'm not giving step-by-step instructions here.

Result

  • After the patch from Part 1, the Home Assistant side is a single built-in integration: MJPEG IP Camera, two URLs, that's it.
  • The camera shows live on the main dashboard and works in the Android app.
  • Because the frames have no Huffman table, Safari-based clients may have trouble. I couldn't test that.

What's next

Right now the camera is just placed by hand. In the next part I'll print a mount that holds it on the printer: the model on Printables. It's out now: Part 3: Camera Mount.

💻 Code and images on GitHub: https://github.com/justicemilitia/bisonar-ai/tree/main/creality-usb-webcam

AI Automationn8nBusiness
Поделиться:
← Все статьи