Failure to send hikvision snapshot in telegram

Hi all,

I used to have a script that sent a picture from a IP camera to my telegram. Then I changed my cameras to Hikvision cameras and it doesn’t work anylonger. I have read lots of threads here but none of the suggestions work for me.

I have figured out that the url to the picture is here, and I can see the picture in Firefox if I use that url:
http://user:[email protected]/ISAPI/Streaming/channels/101/picture

my script is like this:

  alias: test to send picture
    - service: notify.telegram
        title: Picture from camera 1
        message: 'message'
            - url: http://user:[email protected]/ISAPI/Streaming/channels/101/picture
  • If I trigger the script from home assistant, I only get a message but without the picture. Sometimes I don’t even get the message at all.

  • If I remove the three last rows, so the message will be without the image, it never fails.

  • The image size from the camera is 2560*1440 px. In some thread someone suggested to use another channel e.g. 201 instead of 101 to get a lower resolution. I tried that but then nothing happens when I trigger the script. I also tried to set the camera to the lowest resolution, but it still doesn’t work.

If anyone can help me with this, it would be great!



        - url:
          username: user
          password: mypassword

thanks for a quick answer! I tried what you suggested but it still doesn’t work. Now I get no message at all.

I also tried to put username and passwords in quotation marks but that didn’t work either.

I’m running out of ideas now and have no clue on how to solve this :slight_smile:

One interesting thing I noticed is that I can’t see the picture in google chrome with that url, but it works in Firefox. Is it perhaps something with the hikvision file format?