Browny1995
(Peter Brown)
October 15, 2024, 12:36am
1
Hi all,
Would be great to get some assistance, I am trying to create an automation for HA to send a ring doorbell snapshot to Nvidia Shield TV and announce that some is at the door.
I have setup MQTT for ring and so far the notification is pushing the correct text over to tv but no picture is being saved , with some previous attempts all the images generated in HA say 401 unrecognised.
Browny1995
(Peter Brown)
October 15, 2024, 12:42am
2
id: '1728951920161'
alias: New automation
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:05'
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