send it to telegram !
Why send to Telegram when you can send to your phone direct in the HA app?
You will be left with a history in Telegram, which you can consult even after a long time
in my case, I have a snapshot and also a 30 second video
You can share frigate.yaml and automation? I need to compare it with mine, for some reason the videos are not coming.
alias: "your name "
description: |
TEST
trigger:
- type: opened
platform: device
device_id: ##########
entity_id: ##########
domain: binary_sensor
- type: opened
platform: device
device_id: ##########
entity_id: ##########
domain: binary_sensor
- type: opened
platform: device
device_id: ##########
entity_id: ##########
domain: binary_sensor
condition: []
action:
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
enabled: false
- service: camera.record
data:
duration: 30
lookback: 5
filename: /media/webcam/test.mp4
target:
device_id: ##########
- service: telegram_bot.send_video
data:
authentication: digest
file: //media/webcam/test.mp4
caption: "test "
timeout: 30
mode: single
SOLVED: in the setting up of the automation you have to set a value for Delay even though it says optional. as soon as I set it to 1 it works.
Getting the same. Any luck figuring that out?
Is it possible to add an action to point the notification to a specific view on the mobile application using :
actions:
- action: "URI"
title: "Open Cameras"
uri: "/lovelace/cameras"
I managed to add that action manually into the blueprint, and it worked fine:
{"attachment":{"url":"%s","content_type":"JPEG","actions":[{"action":"URI","title":"Open Cameras","uri":"/lovelace/snap"}]}}
I think it will be very useful if joined with what @Viss did in his post https://community.home-assistant.io/t/send-camera-snapshot-notification-on-motion/254565/231?u=hatemzidi
this is handy! Iāll try and implement it! I would really love to find a way to touch the android notification for these and have it show me the whole, full resolution image, versus take me to a view where i still just see a thumbnail. No idea how to do that.
My current related issue is that the axis integration is outdated and has stopped functioning for certain M models of axis camera. They changed the API and didnt tell anybody (i have learned this by watching my camera motion sensor notifications just outright fail). I have an axis m3206-lve camera with a zooz motion sensor right next to it, and when the motion sensor detects motion, I use this technique to grab a snapshot from the camera, and lob it to several android phones. But one day the m3206-lve ājust stopped producing imagesā.
the issue is that at some point last year they pushed new firmware that changed what happens under the hood for amberealla SoC based cameras, claiming the cpu doesnt have enough oomph, and not permitting the camera to take a jpg snapshot from the same stream as a video is currently being taken - however if you specify āhalf the sensors resolutionā (1280x960) it will still produce a picture. I have been trying to work with the developer of the axis plugin (Axis Camera Integration needs a refresh Ā· Issue #89967 Ā· home-assistant/core Ā· GitHub) in an attempt to get him to reconfigure the code allowing users to specify a resolution for the snapshotting of images, and I have also spent a full year talking to axis and begging them to change the api for the M series cameras so that if users request an image, and the camera cant fulfil it, to produce a half-resolution image, so that we get SOMETHING BACK instead of an error.
Neither of these pursuits have yet bore fruit, but I am open to hacking the axis integration myself to include a default resolution for snapshots so that this works again. Happy to take any help I can get here!
Hi,
Great work with this blueprint!!! Its amaizng tool
-Is it possible to add more devices to send a same notification in one automation?
-Could you upgrade your blueprint to add several motion sensors and connect them with camera?
In that case I want to send a notification to 3 devices. I have 8 cameraās and 14 motion detection. I had to created 24 automations with your blueprint and I only solved 8 motion detectionā¦
It would be great to have one blueprint for many devices, many motion detections and many cameras.
Something like:
-Choose how many cameras do you have?
-Put a list of sensors for each camera
-Put a list of devices for notification for each camera
-Put title and text for notification for each camera
-Put a conditional (if alarm set or time is between sunrise/sunset) for each camera
Thank you in advance for respond.
Hello,
Thank you very much for your blueprint. I have also installed it in my Home Assistant. Unfortunately, it does not work as desired. I have integrated my cameras via onvif. Normally i use synology surveillance station. There it detect motion.
I have tested āInputCellMotion Detectionā and āInputMotionAlarmā as motion sensors. Unfortunately, I do not receive a notification when motion is detected. If I run through the automation as a test, it works. Here is my automation. I use my outdoor cameras from Anke (Hikvision). Does anyone have an idea what the problem is and can they help me?
Same problem here.
Nope. Not using Telegram at all.
There is a media folder in HA, shouldnt it be possible to save it there?
Yes, they are saved in /media, but every time the event is triggered the image is replaced (there is a way to save them with time and date, so as not to rewrite it, but I donāt use this function)
I am using Tplink tapo c200.
I have used this code to send video to telegram, but i have following two issues.
- Audio is not recorded.
- The video recording starts a litlle late after the motion is detected.
Am i doing sometging wrong?
Kindly guide how to fix this.
Does anyone use this with iOS?
The picture does not show up for me in the notificationā¦ only the text. Am I doing anything wrong?
Hi, difficult to say with what youāre sharing.
Did you conduct a search: Search results for 'ios snapshot camera' - Home Assistant Community
I didā¦
Hmmm, I think I figured it out though. For whatever strange reason, a SECOND device for my iPhone was created ā¦ the first one was āiPhoneā and the second one was āiPhone (5)ā. Crazy.
Both pointed to the same iPhone but had different information (e.g. battery level was different). Sending a message to both worked. But images only worked with the former one.
I deleted both devices and when restarting the app the device was re-created.
Hi all
first off I wanted to thank the author for this awesome blueprint. It worked right away for me. Secondly, Iād like to ask if thereās a way to reduce the number of notifications it sends somehow. I noticed that the camera motion sensor detects persons continuosly (like every 3 seconds or so), so if someone stands just under the camera for a while, it is continuosly monitored, therefore I receive a loooot of notifications (an unmanageable number).
Is there a way to reduce these notifications? I was thinking to use the delay setting, but I donāt want that to impact the time it detects somebody and I receive the notification for the first timeā¦ any suggestions?
This blueprint worked like a charm for me on my reolink E1.
Could someone please tell me which exact lines of code are used to retrieve and then save the image, Iād like to use them elsewhere as my usual snapshot method does not seem to work on this camera.
Also, is there any way to save the image to my phone?