s60sc / ESP32-CAM_MJPEG2SD

ESP32 Camera motion capture application to record JPEGs to SD card as AVI files and stream to browser as MJPEG. If a microphone is installed then a WAV file is also created. Files can be uploaded via FTP or downloaded to browser.
GNU Affero General Public License v3.0
888 stars 209 forks source link

Stream in Home Assistant App #431

Closed BeHappyYou closed 4 months ago

BeHappyYou commented 4 months ago

Hello,

Is it possible to use a (picture) card to have a stream of the ESP32 camera visible in the Home Assistant App. When I use http://IP_ADDRESS/sustain?stream=0 I see the stream when I am at home.

I would like to see it also in the Home Assistant App when I am not at home. Anyone an idea how to solve this issue?

Thanks!

s60sc commented 4 months ago

port forward

BeHappyYou commented 4 months ago

@s60sc Thank you!

I did look further into it to see if it is possible to prevent ‘port forward’.

I did the following: 1) At the camera's webpage I activated ‘Edit Config -> Motion -> "Enable NVR Video stream: /sustain?video=1"’ 2) At the Home Assistant I added ‘Devices & Services -> Add integration -> Generic Camera: rtsp stream: http://IP_ADDRESS/sustain?video=1 and selected HTTP.’ 3) I added the "Frigate Lovelace Card" under HACS. 4) In the Overview section I added the Frigate Lovelace Card and selected the Generic Camera.

That’s it.

You don't need to install Frigate of Go2RTC or any other addidtional add-on.

Hope this helps and thanks a lot for the excellent work you are doing! 😊