Send Hikvision Camera Photo with Telegram

Hi guys.

I would like to receive a Photo from my camera when someone rings the doorbell.

I can get the picture in browser with this url:
http://admin:[email protected]/ISAPI/Streaming/channels/102/picture

Thats my config which does not work:

  • action:
    • data:
      title: Test
      message: This is a test
      data:
      photo:
      - url: http://admin:[email protected]/ISAPI/Streaming/channels/102/picture
      username: admin
      password: password
      service: notify.homeassistant35bot
      alias: New Automation
      condition: []
      id: ‘151722xxxxx’
      trigger:
    • entity_id: binary_sensor.motion_sensor_158d0001xxxxx
      from: ‘off’
      platform: state
      to: ‘on’

Any help appreciated

018-01-29 20:54:25 ERROR (SyncWorker_4) [homeassistant.components.telegram_bot] Can't load photo into ByteIO: HTTPConnectionPool(host='192.168.100.65', port=80): Max retries exceeded with url: /ISAPI/Streaming/channels/102/picture (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x70323190>, 'Connection to 192.168.100.65 timed out. (connect timeout=15)'))
2018-01-29 20:54:25 ERROR (SyncWorker_4) [homeassistant.components.telegram_bot] Can't send file with kwargs: {'title': 'Test', 'message': 'This is a test', 'url': 'http://admin:[email protected]/ISAPI/Streaming/channels/102/picture', 'caption': 'Es hat an der Tür geklingelt'}

did you ever get it to work?

lots of examples in this thread:

thanks!
this works for me:

- id: '1577388515247'
  alias: motion send picture 01
  description: ''
  trigger:
  - entity_id: binary_sensor.elexa_consumer_products_inc_dome_motion_detector_sensor
    from: 'off'
    platform: state
    to: 'on'
  condition: []
  action:
  - data:
      caption: Motion Detected
      target: 5464xxxx
      url: http://admin:[email protected]/ISAPI/Streaming/channels/102/picture
    service: telegram_bot.send_photo

hope that helps others with Hikvision cameras

1 Like