I am trying to get a picture from the my camera to the telegram via xiaomi sensor has opened.
1.I have all motificat to telegram set.
2.All my Notifications form xiaomi sensor work with a telegram .
3.i have the URL of my camera to get the image.
alias: 'Alert Movement At Front Door '
trigger:
- entity_id: binary_sensor.door_window_sensor_158d0002d7b41e
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
entity_id: camera.front_camera
filename: /config/pics/entrance.jpg
service: camera.snapshot
service: notify.telegram_cam
data:
title: Send an images
message: "That's an example that sends an image."
data:
photo:
- file: /config/pics/entrance.jpg
caption: Picture Title xy