Skip to content

Instantly share code, notes, and snippets.

View hunterjm's full-sized avatar

Jason Hunter hunterjm

View GitHub Profile
@hunterjm
hunterjm / actionable_notification.yaml
Last active July 25, 2023 07:42
Actionable Notification Blueprint
blueprint:
name: Acknowledge Alert Notification
description: |
## Acknowledge Alert Notification
This blueprint will repeatedly send a notification to your device at a pre-defined interval until it has been acknowledged via the actionable notification.
domain: automation
source_url: https://gist.github.com/hunterjm/fb0d6fc49df910193cf61317149074ee
input:
@hunterjm
hunterjm / frigate_0.10_notification.yaml
Last active March 7, 2024 21:19
Frigate 0.10 Notifications
blueprint:
name: Frigate Notification (0.10.0)
description: |
## Frigate Mobile App Notification
This blueprint will send a notification to your device when a Frigate event for the selected camera is fired. The notification will initially include the thumbnail of the detection, but include an actionable notification allowing you to view the clip and snapshot.
With this blueprint, you may send the notification to multiple devices by leaving "Device" blank and instead use a [notification group][1].
### Software Version Requirements
# Mirror on/off & brightness for dimmer <-> light bulb(s)
- id: 23ef3887-7eb4-4496-8ba5-54f7d0a7be2d
alias: Mirror Downstairs Hallway Lights
mode: single
max_exceeded: silent
variables:
light_1: light.downstairs_hallway_light
light_2: light.downstairs_hallway_dimmer
trigger:
- platform: state
@hunterjm
hunterjm / frigate_notification.yaml
Last active April 27, 2024 23:54
Frigate Notification Blueprint
blueprint:
name: Frigate Notification
description: |
## Frigate Mobile App Notification
This blueprint will send a notification to your device when a Frigate event for the selected camera is fired. The notification will initially include the thumbnail of the detection, but will update to include actionable notifications allowing you to view the saved clip/snapshot when available, or silence the notification for a configurable amount of time.
With this blueprint, you may send the notification to multiple devices by leaving "Device" blank and instead use a [notification group][1].
### Required entities:
@hunterjm
hunterjm / tensorflow_camera_automations.yaml
Created April 7, 2019 03:38
TensorFlow and Camera Automations
- alias: Tensorflow Scan
trigger:
- platform: state
entity_id:
- binary_sensor.backyard_field_detection
- binary_sensor.driveway_field_detection
- binary_sensor.foyer_field_detection
- binary_sensor.garage_field_detection
- binary_sensor.backyard_line_crossing
- binary_sensor.driveway_line_crossing
@hunterjm
hunterjm / camera.py
Last active March 21, 2019 04:02
Generic IP Camera modification with preload_stream option
"""
Support for IP Cameras.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/camera.generic/
"""
import asyncio
import logging
import aiohttp
@hunterjm
hunterjm / hls.py
Created February 3, 2019 05:06
Very dirty POC for HLS streams in Home Assistant
"""
Support for HLS camera streaming.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/camera.hls/
"""
import asyncio
from contextlib import suppress
import logging
import io
@hunterjm
hunterjm / tensorflow_setup.sh
Last active July 20, 2020 17:11
TensorFlow Object Detection Setup (Linux)
# Change this path to your config directory
CONFIG_DIR="/home/homeassistant/.homeassistant"
cd /tmp
# Clone the latest code from GitHub
git clone --depth 1 https://github.com/tensorflow/models.git tensorflow-models
# download protobuf 3.4
curl -OL https://github.com/google/protobuf/releases/download/v3.4.0/protoc-3.4.0-linux-x86_64.zip