Camera record and send to telegram

Hi there!

I’m trying to record a video from my yi dome 1089p cam (yi-hack-MStar) and send it to my telegram bot but so far I haven’t been able to solve it.

The MStar hack automatically records when detects a motion event and stores the videos in the following path
http://192.168.1.x:8080/record/2020Y08M27D23H/48M00S60.mp4.

So, I’m unable to template the path for the video. Can someone help?

- id: '111111111111'
  alias: 1 Test security cam record sent via telegram
  description: ''
  trigger:
  - entity_id: alarm_control_panel.alarm
    platform: state
    to: triggered
  condition: []
  action:
  - data_template:
      data:
        video:
        - password: mypassword
          url: http://192.168.1.x:8080/record/xxxxxxxxxx/xxxxxxxxx.mp4
          username: myusername
      message: This is a test for sendig video with telegram.
      title: Video test
    service: notify.telegram
  mode: single

Hi. I am testing a telegram bot to upload video and other files from camera or other devices to telegram through FTP without any additional software or hardware. t.me/ftp2bot

1 Like

Did you get it to work?

That interesting. Can you provide the config instructions?

1 Like

Yes, you can register ftp account through telegram bot and configure camera ftp settings for the camera to upload records automatically. The bot will do the rest.

You don’t need any additional software such as home assistant or hardware for this to work. Just register an account or separate accounts for every camera and configure ftp uploads on cameras.
P.S. Create a group with the bot to create multiple accounts

It does not work for me. I created the account but the camera does not upload files and I am not able to connect to the server. Any more instructions?

Could you, please, retry? I made some fixes. If errors, please, let me know.

It works perfect, wonderful! Thanks for this great job.

Does this still work? Those bots do not respond.