From fcbd1953a3a7f7b0159a8e919a337b5d4058eb8c Mon Sep 17 00:00:00 2001 From: valentinfrlch Date: Sat, 19 Oct 2024 11:04:28 +0200 Subject: [PATCH] 'camera motion summary' now supports previews --- blueprints/camera_motion_summary.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/blueprints/camera_motion_summary.yaml b/blueprints/camera_motion_summary.yaml index 78faf09..3880128 100644 --- a/blueprints/camera_motion_summary.yaml +++ b/blueprints/camera_motion_summary.yaml @@ -123,9 +123,10 @@ action: domain: mobile_app type: notify device_id: !input notify_device - title: '{{ trigger.entity_id.replace("camera.", "").replace("_", " ")|capitalize }} detected motion' - message: "{{ response.response_text }}" - data: + title: "Motion detected" + message: '{{ trigger.entity_id.replace("camera.", "").replace("_", " ")|capitalize }}' + data: + image: "{{'/api/camera_proxy/' + trigger.entity_id}}" tag: "{{tag}}" group: "{{group}}" @@ -155,5 +156,6 @@ action: data: tag: "{{tag}}" group: "{{group}}" + image: "{{'/api/camera_proxy/' + trigger.entity_id}}" push: interruption-level: passive \ No newline at end of file