Update Frigate Notifications
This commit is contained in:
@@ -14,46 +14,46 @@ homeassistant:
|
|||||||
sensor.jp_presence_status:
|
sensor.jp_presence_status:
|
||||||
entity_picture: https://gravatar.com/avatar/e78e623948f3675cf1c51544f9bec928
|
entity_picture: https://gravatar.com/avatar/e78e623948f3675cf1c51544f9bec928
|
||||||
|
|
||||||
device_tracker.jp_p3a_gps:
|
# device_tracker.jp_p3a_gps:
|
||||||
friendly_name: J.P. Pixel 3a
|
# friendly_name: J.P. Pixel 3a
|
||||||
icon: mdi:map-marker
|
# icon: mdi:map-marker
|
||||||
device_tracker.jp_p3a_ip:
|
# device_tracker.jp_p3a_ip:
|
||||||
friendly_name: J.P. Pixel 3a
|
# friendly_name: J.P. Pixel 3a
|
||||||
icon: mdi:wifi
|
# icon: mdi:wifi
|
||||||
device_tracker.jp_p3a_bt_entry:
|
# device_tracker.jp_p3a_bt_entry:
|
||||||
friendly_name: J.P. Pixel 3a
|
# friendly_name: J.P. Pixel 3a
|
||||||
source_type: bluetooth
|
# source_type: bluetooth
|
||||||
icon: mdi:bluetooth
|
# icon: mdi:bluetooth
|
||||||
|
|
||||||
device_tracker.jp_gs8_ap:
|
# device_tracker.jp_gs8_ap:
|
||||||
friendly_name: J.P. Galaxy S8
|
# friendly_name: J.P. Galaxy S8
|
||||||
icon: mdi:wifi
|
# icon: mdi:wifi
|
||||||
|
|
||||||
device_tracker.jen_iphone_ip:
|
# device_tracker.jen_iphone_ip:
|
||||||
friendly_name: Jen iPhone
|
# friendly_name: Jen iPhone
|
||||||
icon: mdi:wifi
|
# icon: mdi:wifi
|
||||||
device_tracker.jen_iphone_bt_entry:
|
# device_tracker.jen_iphone_bt_entry:
|
||||||
friendly_name: Jen iPhone
|
# friendly_name: Jen iPhone
|
||||||
source_type: bluetooth
|
# source_type: bluetooth
|
||||||
icon: mdi:bluetooth
|
# icon: mdi:bluetooth
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Manual Setup Device Trackers
|
# Manual Setup Device Trackers
|
||||||
device_tracker:
|
# device_tracker:
|
||||||
|
|
||||||
# Ping Platform
|
# # Ping Platform
|
||||||
- platform: ping
|
# - platform: ping
|
||||||
hosts:
|
# hosts:
|
||||||
jp_p3a_ip: !secret jp_p3a_ip
|
# jp_p3a_ip: !secret jp_p3a_ip
|
||||||
jp_gs8_ip: !secret jp_gs8_ip
|
# jp_gs8_ip: !secret jp_gs8_ip
|
||||||
jen_iphone_ip: !secret jen_iphone_ip
|
# jen_iphone_ip: !secret jen_iphone_ip
|
||||||
|
|
||||||
# MQTT Platform (Bluetooth Presence Sensor)
|
# # MQTT Platform (Bluetooth Presence Sensor)
|
||||||
- platform: mqtt
|
# - platform: mqtt
|
||||||
devices:
|
# devices:
|
||||||
jp_gs8_bt_entry: monitor/entry/jp_gs8/device_tracker
|
# jp_gs8_bt_entry: monitor/entry/jp_gs8/device_tracker
|
||||||
jp_p3a_bt_entry: monitor/entry/jp_p3a/device_tracker
|
# jp_p3a_bt_entry: monitor/entry/jp_p3a/device_tracker
|
||||||
jen_iphone_bt_entry: monitor/entry/jen_iphone/device_tracker
|
# jen_iphone_bt_entry: monitor/entry/jen_iphone/device_tracker
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Proximity Sensors for Zones
|
# Proximity Sensors for Zones
|
||||||
@@ -157,32 +157,32 @@ sensor:
|
|||||||
automation:
|
automation:
|
||||||
|
|
||||||
# Run Bluetooth Arrival Scan at Home Assistant startup
|
# Run Bluetooth Arrival Scan at Home Assistant startup
|
||||||
- alias: Startup Arrival Scan
|
# - alias: Startup Arrival Scan
|
||||||
trigger:
|
# trigger:
|
||||||
- platform: homeassistant
|
# - platform: homeassistant
|
||||||
event: start
|
# event: start
|
||||||
mode: queued
|
# mode: queued
|
||||||
action:
|
# action:
|
||||||
- service: mqtt.publish
|
# - service: mqtt.publish
|
||||||
data:
|
# data:
|
||||||
topic: monitor/scan/arrive
|
# topic: monitor/scan/arrive
|
||||||
payload: scan
|
# payload: scan
|
||||||
|
|
||||||
# Run Bluetooth Departure Scan if a Ping Device Tracker goes Away
|
# Run Bluetooth Departure Scan if a Ping Device Tracker goes Away
|
||||||
- alias: Bluetooth Departure Scan
|
# - alias: Bluetooth Departure Scan
|
||||||
trigger:
|
# trigger:
|
||||||
- platform: homeassistant
|
# - platform: homeassistant
|
||||||
event: start
|
# event: start
|
||||||
- platform: state
|
# - platform: state
|
||||||
entity_id: binary_sensor.front_door_sensor
|
# entity_id: binary_sensor.front_door_sensor
|
||||||
- platform: time_pattern
|
# - platform: time_pattern
|
||||||
minutes: "/10"
|
# minutes: "/10"
|
||||||
mode: single
|
# mode: single
|
||||||
action:
|
# action:
|
||||||
- service: mqtt.publish
|
# - service: mqtt.publish
|
||||||
data:
|
# data:
|
||||||
topic: monitor/scan/depart
|
# topic: monitor/scan/depart
|
||||||
payload: scan
|
# payload: scan
|
||||||
|
|
||||||
# Handle Just Arrived/Just Left State Transitions
|
# Handle Just Arrived/Just Left State Transitions
|
||||||
- alias: Mark Person as Just Arrived
|
- alias: Mark Person as Just Arrived
|
||||||
|
|||||||
@@ -294,26 +294,6 @@ automation:
|
|||||||
action:
|
action:
|
||||||
- service: shell_command.doorbell_camera_set_online
|
- service: shell_command.doorbell_camera_set_online
|
||||||
|
|
||||||
- alias: Frigate Doorbell Notification
|
|
||||||
use_blueprint:
|
|
||||||
path: hunterjm/frigate_0.10_notification.yaml
|
|
||||||
input:
|
|
||||||
camera: doorbell
|
|
||||||
notify_device: ce165dc8c682f384b6b0c0f36b72659a
|
|
||||||
base_url: https://hass.kraussnet.com
|
|
||||||
critical: true
|
|
||||||
update_thumbnail: true
|
|
||||||
|
|
||||||
- alias: Frigate Backyard Notification
|
|
||||||
use_blueprint:
|
|
||||||
path: hunterjm/frigate_0.10_notification.yaml
|
|
||||||
input:
|
|
||||||
camera: backyard
|
|
||||||
notify_device: ce165dc8c682f384b6b0c0f36b72659a
|
|
||||||
base_url: https://hass.kraussnet.com
|
|
||||||
critical: true
|
|
||||||
update_thumbnail: true
|
|
||||||
|
|
||||||
- alias: Frigate Event Notification
|
- alias: Frigate Event Notification
|
||||||
trigger:
|
trigger:
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
@@ -328,8 +308,8 @@ automation:
|
|||||||
data:
|
data:
|
||||||
message: "A {{ trigger.payload_json.after.label }} detected on {{ trigger.payload_json.after.camera|title }} camera"
|
message: "A {{ trigger.payload_json.after.label }} detected on {{ trigger.payload_json.after.camera|title }} camera"
|
||||||
data:
|
data:
|
||||||
image: "/api/frigate/notifications/{{ trigger.payload_json.after.id }}/thumbnail.jpg?foramt=android"
|
image: "/api/frigate/notifications/{{ trigger.payload_json.after.id }}/thumbnail.jpg"
|
||||||
clickAction: "https://hass.kraussnet.com/api/frigate/notifications/{{ trigger.payload_json.after.id }}/{{ trigger.payload_json.after.camera }}/clip.mp4"
|
clickAction: "https://hass.kraussnet.com/api/frigate/notifications/{{ trigger.payload_json.after.id }}/clip.mp4"
|
||||||
ttl: 0
|
ttl: 0
|
||||||
priority: high
|
priority: high
|
||||||
tag: "{{ trigger.payload_json.after.id }}"
|
tag: "{{ trigger.payload_json.after.id }}"
|
||||||
@@ -337,7 +317,7 @@ automation:
|
|||||||
actions:
|
actions:
|
||||||
- action: URI
|
- action: URI
|
||||||
title: View Clip
|
title: View Clip
|
||||||
uri: "https://hass.kraussnet.com/api/frigate/notifications/{{ trigger.payload_json.after.id }}/{{ trigger.payload_json.after.camera }}/clip.mp4"
|
uri: "https://hass.kraussnet.com/api/frigate/notifications/{{ trigger.payload_json.after.id }}/clip.mp4"
|
||||||
- action: URI
|
- action: URI
|
||||||
title: View Snapshot
|
title: View Snapshot
|
||||||
uri: "https://hass.kraussnet.com/api/frigate/notifications/{{ trigger.payload_json.after.id }}/snapshot.jpg"
|
uri: "https://hass.kraussnet.com/api/frigate/notifications/{{ trigger.payload_json.after.id }}/snapshot.jpg"
|
||||||
|
|||||||
Reference in New Issue
Block a user