Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95409

Telegram send video file (Ring)

$
0
0

@jeroen.nijssen wrote:

Hello,

i’m trying to let ha. send a video to my telegram channel but i’m always greeted with an error:


Can't send file with kwargs: {'message': 'Last Ring Video', 'file': 'test.mp4'}

2:41 PM components/telegram_bot/__init__.py (ERROR)

'test.mp4' are not secure to load data from!

2:41 PM components/telegram_bot/__init__.py (WARNING

this is my config:

- id: ring_video_download
  alias: Ring Video Download
  hide_entity: true
  trigger:
  - entity_id: binary_sensor.ring_front_door_motion
    from: 'off'
    to: 'on'
    platform: state
  condition: []
  action:
  - service: downloader.download_file
    data_template:
      url: '{{ states.camera.front_door.attributes.video_url }}'
      filename: test.mp4
      overwrite: true
  - service: notify.oneplus
    data:
      message: Last Ring Video
      data:
        video:
        - file: test.mp4

i also added this to my configuration:

  download_dir: /share
python_script:

  whitelist_external_dirs:
    - /share

can anyone spot an error ?!?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95409

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>