It seems with other installs of HA, you need to specifically specify the /media directory in the config. The /www directory is unsecured but will work as a fallback.
Hmm, I MAY have had a typo, but I thought it was working on my end. Update to 2.2.9 and see if that works.
EDIT: But that isn’t working either. When I went to test it by using actions in Dev Tools, it only sent it to 1 of the devices I had, instead of all. When doing it separately, the notifications sent as intended. I wonder if some change in HA broke this. I’ll take a closer look into it.
Erro:Error generating content: 404 Gemini 1.0 Pro Vision has been deprecated on July 12, 2024. Consider switching to different model, for example gemini-1.5-flash.
Im trying to use ur blueprint, but, getting this error message. =/ Can u help me?
I’m trying to reference the “last_motion.jpg” in a Picture Card so I can just see the last motion snapshot as a stand-alone, but I can’t get the path right to display the image of the image in the card.
Any pointers?
I’m tried several iterations of local/snapshots/front_doorbell_fluent/last_motion.jpg, etc. etc. etc. but no dice
If I open “Media” from the sidebar, search for the picture and open it, I can do an right click and do an “open picture in new tab”, I can see the path to the picture in the adressbar. But it only work if I ad the authSig string.
Here’s my code snippet for my Last Motion picture entity. I’m saving the images in /media as /www is not secured. The default for the blueprint is using /media so if you’ve changed that in the blueprint, replace /media with /local. Otherwise, try adding your URL to your HA URL like this: homeassistant.local:8123/local/snapshots/front_doorbell_fluent/last_motion.jpg and see if the image loads. If so, URL is correct. If not, URL is not correct.
Doing this using /media will give a 401 authorization error.
show_state: true
show_name: true
camera_view: auto
type: picture-entity
entity: binary_sensor.front_house_camera_person_occupancy
image: /media/snapshots/front_house_camera/last_motion.jpg
camera_image: camera.front_house_last_motion
name: Front of House
tap_action:
action: call-service
service: camera.snapshot
data:
entity_id: camera.front_house_camera
filename: /media/snapshots/front_house_camera/last_motion.jpg
hold_action:
action: more-info
state_filter:
"on": brightness(100%)
"off": brightness(100%)
Also made a camera for the Last Motion image:
camera:
- platform: local_file
file_path: /media/snapshots/front_house_camera/last_motion.jpg
name: Front House Last Motion
If I open “Media” from the sidebar, search for the picture and open it, I can do an right click and do an “open picture in new tab”, I can see the path to the picture in the adressbar. But it only work if I ad the authSig string.
Yes, that is b/c files stored in /media are secured, need authorization to view them. To get around this, you can store them in /www (using /local when referencing the file) without authorization. But keep in mind, files in that folder are not secured and can be accessed anywhere with the right URL.
Hello,
thanks for this great blueprint, it works very well. I have rotated my camera orientation 90° as I want to shoot a long hallway. The section of the notification unfortunately only shows a small part on the cell phone and not the whole picture. I don’t necessarily need the whole picture as a cell phone notification, but I do need the upper part with the door. Is there any way to manually set the part of the image that is sent to the cell phone?
Many thanks for your efforts and help
you could try making an action. You’ll need to do it manually for now but I added default options in the Experimental section. I may look into making that action in the future
Has anyone manged to make the notification run an intent to open an app? In this example reolink
I have used this config but i get un unknown error, this works in a normal notification:
alias: Test alrmed nioght garage detected with ai
description: >-
Person detected in garage when alarm is armed night sends me a notification ai
powerded
use_blueprint:
path: TheRealFalseReality/send_snapshot_conditional.yaml
input:
sensor: binary_sensor.hue_motion_sensor_staircase_1st_floor
camera: camera.garage_fluent
notify_device: device_nr
delay_notification: 60
notification_title: Camera
notification_message: Person detected
notification_color: "#f44336"
data_clickaction_url: " /lovelace/snapshots"
action_uri: >-
intent:#Intent;launchFlags=0x14000000;component=com.mcu.reolink/com.android.bc.login.WelcomeActivity;S.UID=redacted;S.ALMTIME={{
now().isoformat()
}};S.ALMNAME=Detection;S.DEVNAME=DontCare;S.ALMTYPE=PEOPLE;S.ALMCHN=1;end
action_title: Intent Scheme
action_type: URI
Hello, how can you set up an alarm entity to check arm states in this BP.
Alarm arm states when the notifications should work. Required if alarm entity is selected