Hey guys, I have Hikvision NVR with 5 x IP cameras, an Aeotec multi-sensor outside the front door. I have setup iOS notification for when the sensor picks up a motion. That works well. Is it possible to add a photo from my front door camera in the notification?
I’ve added the Hikvision motion sensor binary, and that works fine. But I haven’t added any video streams or photos
My sensor motion detection automation
- alias: iOS notification - Motion detected at front door!
trigger:
platform: state
entity_id: sensor.aeotec_zw100_multisensor_6_burglar
from: ‘0’
to: ‘8’
action:
service: notify.ios_devices
data:
message: “Motion detected at the front door!”
I’m using this code to send a notification with a live stream from my Hikvision camera when someone press the doorbell. Maybe it can help you to create what you want…
I wanted to do the same and also played with the live stream options discussed above. However it did not meet my needs. Reasons are twofold 1) the ios notifications just disappears once looked at (so no history) 2) as it is a live stream it’s useless if you dont look at the notification right away.
If you are fine with losing the notifications (so stick with ios app) you can also use the following code:
# Code om via de IOS app een alert te sturen als een sensort van status veranderd
- alias: propertylinecrossed
trigger:
platform: state
entity_id: binary_sensor.voordeurh_field_detection
to: 'on'
action:
- service: notify.ios_iphone_name
data_template:
title: 'Bezoeker!'
message: >
‘Bezoeker gedetecteerd om {{now().strftime("%H:%M %d-%m-%Y")}}’
data:
attachment:
url: http://username:password@ipaddress:port/Streaming/channels/1/picture
content-type: jpeg
I also have code using pushover that sends a snapshot as an attachment, this is what I use as it saves the notifications send+you can access on different platforms (ie a browser)