diff --git a/automation/facebox_detection.yaml b/automation/facebox_detection.yaml new file mode 100644 index 00000000..1fc61a94 --- /dev/null +++ b/automation/facebox_detection.yaml @@ -0,0 +1,36 @@ +alias: Kyle recognised +trigger: + platform: event + event_type: image_processing.detect_face + event_data: + name: 'Kyle Gordon' +action: + - service: camera.snapshot + data: + entity_id: {{ trigger.event.data.entity_id }} + filename: /tmp/{{ trigger.event.data.entity_id }}_snapshot.jpg + - service: notify.email_kyle + data_template: + title: "Face detected on camera" + message: Kyle Gordon recognised on {{ trigger.event.data.entity_id }} with probability {{ trigger.event.data.confidence }} + data: + images: + - /tmp/{{ trigger.event.data.entity_id }}_snapshot.jpg + html: > + + + + + + + Cameras snapshot + + + +

UPS Triggered

+ Image from driveway camera + \ No newline at end of file diff --git a/configuration.yaml b/configuration.yaml index 635a9286..df4a7c81 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -289,7 +289,7 @@ camera: !include cameras.yaml zone: !include zones/places.yaml shell_command: !include shell_commands.yaml climate: !include climate.yaml -#image_processing: !include openalpr.yaml +image_processing: !include image_processing.yaml # Merged Includes automation: !include_dir_list automation diff --git a/image_processing.yaml b/image_processing.yaml new file mode 100644 index 00000000..553f90b8 --- /dev/null +++ b/image_processing.yaml @@ -0,0 +1,12 @@ +#- platform: openalpr_local +# region: eu +# confidence: 80.0 +# source: +# - entity_id: camera.driveway + +- platform: facebox + ip_address: 172.24.32.13 + port: 8080 + source: + - entity_id: camera.driveway + - entity_id: camera.backdoor diff --git a/openalpr.yaml b/openalpr.yaml deleted file mode 100644 index 89c7c135..00000000 --- a/openalpr.yaml +++ /dev/null @@ -1,5 +0,0 @@ -- platform: openalpr_local - region: eu - confidence: 80.0 - source: - - entity_id: camera.driveway