Looking for some help setting up a snapshot forward to android tv notification.
I am using a ring doorbell via ring mqtt.
the main error I seem to be having is that any snapshot that is saved when accessed displays 401 unauthorised.
alias: Notify Motion Front Doorbell
description: ""
triggers:
- type: motion
device_id: d5bb243d9a1c25ec23d678ca979d49c8
entity_id: 3762aad0fc276265fe0301a0129fb09c
domain: binary_sensor
trigger: device
conditions: []
actions:
- wait_template: >-
as_timestamp((state_attr("automation.notify_motion_front_doorbell",
"last_triggered"))) - (state_attr("camera.front_snapshot", "timestamp" ))
< 3 and
as_timestamp((state_attr("automation.notify_motion_front_doorbell",
"last_triggered"))) - (state_attr("camera.front_snapshot", "timestamp" ))
> -15
timeout: "00:00:15"
continue_on_timeout: true
- choose:
- conditions:
- condition: template
value_template: "{{ not wait.completed }}"
sequence:
- data:
data:
color: black
duration: 5
fontsize: large
interrupt: 0
position: top-right
transparency: 50%
title: Home Assistant
message: Motion detected at the front doorbell camera.
action: notify.nvidia_shield_tv
default:
- entity_id: button.front_door_take_snapshot
data:
filename: >-
/config/tmp/{{
as_local((state_attr("automation.notify_motion_front_doorbell",
"last_triggered"))).strftime("%Y%m%d-%H.%M.%S")
}}_front_doorbell.jpg
action: camera.snapshot
- data:
data:
color: black
duration: 5
fontsize: large
interrupt: 0
position: bottom-right
transparency: 50%
file:
path: >-
/config/tmp/{{
as_local((state_attr("automation.notify_motion_front_doorbell",
"last_triggered"))).strftime("%Y%m%d-%H.%M.%S")
}}_front_doorbell.jpg
title: Home Assistant
message: Motion detected at the front doorbell camera.
action: notify.nvidia_shield_tv
mode: single