I’m trying to add a city camera on my Home Assistant. The URL for it is:
https://bemtevi.segurancapublica.sc.gov.br:6351/Interface/Cameras/GetJPEGStream?Camera=FNS_STM_061&width=1920&height=1312&AuthUser=camerasonline&AuthPass=camerasonline
If I open it on Chrome or on VLC it works fine. VLC says that it is a MJPEG stream. So I tried to add it to Home Assistant with this config:
camera:
- platform: mjpeg
mjpeg_url: https://bemtevi.segurancapublica.sc.gov.br:6351/Interface/Cameras/GetJPEGStream?Camera=FNS_STM_061&width=1920&height=1312&AuthUser=camerasonline&AuthPass=camerasonline
still_image_url: https://bemtevi.segurancapublica.sc.gov.br:6351/Interface/Cameras/GetSnapshot?Camera=FNS_STM_061&width=1920&height=1312&AuthUser=camerasonline&AuthPass=camerasonline
name: Camera Lauro Linhares - Predio
But after a restart, it doesn’t work and it shows this log:
Logger: homeassistant.components.mjpeg.camera
Source: components/mjpeg/camera.py:128
Integration: mjpeg (documentation, issues)
First occurred: 12:25:35 PM (15 occurrences)
Last logged: 12:26:19 PM
Error getting new camera image from Camera Lauro Linhares - Predio: Cannot connect to host bemtevi.segurancapublica.sc.gov.br:6351 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1125)')]
It says that the certificate is not valid, but Chrome doesn’t seem to have any issues with it.
If I use a ffmpeg
camera instead, the snapshot loads, but the Stream fails to load.
Is there anything I can do to tell Home Assistant that this certificate is valid? Or is it a bug?