šŸ“ø Send camera snapshot notification on motion

At first I wasnā€™t seeing the image in the notification on my iPhone. After I upgraded to IOS 15, all is well. Thanks for the blueprint!

It would be nice if a condition was added (optional of course) that if someone is home or not :slight_smile:

1 Like

Great job. Blueprint works flawlessly.

Now I just have to find out, how to send the snapshot to two or more iPhones? Can I simple group them (like group.parentsphone) and select group.parentsphone as the device?

Great blueprint!

The only ā€œproblemā€ is that I get the snapshot but when I click the notification (Android) it closes and the app is shown (not the actual snapshot). Are the snapshots saved somewhere? Would disk usage be an issue?

TIA

1 Like

Hi
I ask for help

HA is installed on a raspberry p4 with hassio 2021.12.7
i am inexperienced with MQTT so i dont know if i am wrong something

I was following your guide to send motion alert from motioneye but not function motioneye side, this is my last command : ā€œmosquitto_pub -h 127.0.0.1 -p 8883 -u user -P pw -t motion / gate -m ONā€

I did a manual test
If I give command from MQTT

immagine

I see that the entity changes my state

immagine

maybe what i am wrong is the address i give to MQTT.
I tried to give the address:
del raspberry -h 192.x.x.x -p 1883
of the brocker -h 127.0.0.1 -p 1883
of the brocker -h 127.0.0.1 -p 8883
but it doesnā€™t answer me when it detects movement.

Hmmā€¦
@Subia75, @TwoPuncakes I think it is a lot easier to use a webhook from MotionEye :wink:
image
I use this POST address: https://192.168.1.2:8123/api/webhook/doormotion from MotionEye
and then I catch it with an automation
In my config, Iā€™m setting an input helper boolean to true for 30 secs (but only between 22:00 and 07:00):
My automation yaml:

alias: Front Doorcam motion detected
description: Notify when motion is detected between 22:00 and 07:00
trigger:
  - platform: webhook
    webhook_id: doormotion
condition:
  - condition: time
    after: '22:00'
    before: '07:00'
action:
  - service: input_boolean.turn_on
    target:
      entity_id: input_boolean.doormotion
  - delay:
      hours: 0
      minutes: 0
      seconds: 30
      milliseconds: 0
  - service: input_boolean.turn_off
    target:
      entity_id: input_boolean.doormotion
mode: single
initial_state: true

And with the input_boolean.doormotion I make other things happenā€¦, but if you only require one trigger, just use your own action :wink:

2 Likes

Thanks for the reply.
Iā€™ll do this automation test to see if it responds to motion.
I need that when I have an HA movement I warn me that there is an event to watch.
But what I donā€™t understand is where I am wrong to give the address to me seems right.
It occurs to me that it is motioneye addon that he is unable to send messages to HA

I donā€™t think there is anything wrong with the used urlā€™s.
You could test with mqtt-explorer and monitor what is going on :wink:

But I suspect youā€™re running Mosquito and MotionEye with HA addons (dockers)?
And that makes me doubt whether ā€˜mosquitto_pubā€™ is available within the MotionEye docker :face_with_raised_eyebrow:
Maybe someone can confirm my suspicion?

Nevertheless, I think using a web-hook is easier (and skips the usage of MQTT ;))

Hi guys, could use a little help here.

Iā€™m running HA Core, modified the snapshot_create_file_path so the picture is created with movement.
I do get notifications with movement, so that part is OK as well.
But, I donā€™t get to see the picture in the companion app (android).

I can open the snapshot in the browser on my desktop as well on mobile - restarted HA and the app.

What am I missing?

EDIT: this is all on LAN, not using https

@Nick4. I can add to that.

My stuff used to run flawlessly (I did not change the file path). However, for the last couple of days, I only get the notification without the picture. That is on iOS. \config\www\tmp shows a current JPG. Oddā€¦

Hello,
Could you please help me to configure this Blueprint to send notifications only if a sensor value is ā€œperson detected in watch areaā€? (which is a sensor message from the camera itself) Otherwise I receive notifications every time the vacuum cleaner is triggering the motion sensorā€¦
Thanks

Hi, would it be possible to change the sensor in this blueprint?
instead of device_class motion i would like to have a binary_sensor for a door/window.

Edit: it works if you put the sensor name manually.

Hello, blueprint stopped saving snapshots. Any solution?

Hit the debugger in the automation??

@swa72 try holding the notification and the snapshot/actions should show up. Iā€™ve had this issue recently too and not sure what caused it or how to fix.

1 Like

Did you find a awnser to this?

Nope.

Didnā€™t try again either, but will post my findings here if I do

I found the following blueprint and used it in combination with this one:

1 Like

Is there a way to change the notification even more? For example the notification_icon: , or put actionable buttons.

1 Like

How can I send the notification to multiple devices?