Skip to content

I wanted a blueprint that would facilitate sending a notification upon motion being detected with a snapshot from the camera as attached data. None of the solutions out and about satisfied my needs so I made some adjustments to a blueprint originally created by apollo1220, check out them out here: https://github.com/apollo1220/

Notifications You must be signed in to change notification settings

ock666/camera-motion-blueprint

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 

Repository files navigation

Camera Motion Blueprint

forked from https://github.com/apollo1220/blueprints

This blueprint allows you to capture timestamped snapshots from a camera in your home assistant, attach that snapshot to a notification, there is a person feature which will block the automation when the assigned person is home.

The only setup required for this blueprint to work is to make sure you have a directory created in the /config/www folder to match what you set within the blueprint.

It's not required but strongly recommended to have an additional automation in place to take care of cleaning up old files which will eventually accumulate over time. This can be accomplished by adding the following to your configuration.yaml file.

shell_command:
  erase_images: find /config/www/%YOUR_DIRECTORY_NAME% -mtime +7 -exec rm -fr {} +

with the example above, 7 being the age in days of files to delete, upon restarting home assistant a new service will appear called:

shell_command.erase_images

you can use this in a time based automation to periodically clean up old images

About

I wanted a blueprint that would facilitate sending a notification upon motion being detected with a snapshot from the camera as attached data. None of the solutions out and about satisfied my needs so I made some adjustments to a blueprint originally created by apollo1220, check out them out here: https://github.com/apollo1220/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published