Telegram bot and camera_proxy

Hello

I’m trying to send a notification to the telegram with the snapshot of a camera. I’m doing this:

trigger:
- platform: state
entity_id: input_boolean.quarto_ac_automode
to: ‘on’
action:
service: notify.all
data:
message: “Movimento Teste”
title: “Home Assistant”
data:
photo:
- url: https://XXXXXXXX:8123/api/camera_proxy/camera.camera_tablet?api_password=XXXXX

If not put the photo works, but when I put the photo ha gives the following error:

Can't load data into ByteIO: HTTPSConnectionPool(host='xxxxxxxxx', port=8123): Max retries exceeded with url: /api/camera_proxy/camera.camera_tablet?api_password=xxxxx (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:720)'),))

If opening the url by the browser works correctly

ha: 0.68.1
ssl: letsencrypt expires in June 28, 2018

What am I doing wrong?

Thanks for help

Check the config to send url with telegram from here at 9:33

Hello my config is the same… if i change URL the automation works, the problem is with letencrypt and api…Is possivel to pass through the ssl validation?

Can you access the camera directly using http://cameraipaddress:port ?

Yes without problems or ssl errors, e access through homeassistant API

Change the url to camera directly. Don’t need api then.