Hi! I’m newbie to Hass. I managed to setup image processing with TensorFlow and notifications via Telegram when it detects objects. But I also want to send an image with detection result. I defined a file_out option of tensorflow configuration and store resulting images locally, I know how to send images using Telegram but I can’t figure out how can I create trigger that will take right images whenTensorFlow detects objects and send them via telegram. I’d appretiate any help. Thanks!
I know this is a year old, but I was just trying to do the same thing so since I figured it out I thought I’d share for anyone who comes looking after this.
Running hassio 0.103.2
So I had to do two things.
First I had to whitelist the source folder as mentioned here and referred to in the telegram docs.
Second I used the notify service. Some people use telegram send photo, but I didn’t here.
The action in my notification is:
action:
- data:
data:
photo:
- caption: Motion In Driveway
file: /config/www/tmp/frontyard_latest.jpg
message: Motion in Driveway
service: notify.telegram