Skip to content

Instantly share code, notes, and snippets.

@KenGrinder
KenGrinder / test_notify_selector.yaml
Last active December 21, 2024 23:52
Notify_Test
blueprint:
name: Test Notify Selector
domain: automation
description: >
Minimal example using a service selector that should list all notify.* services.
input:
notify_service:
name: Notification Service
description: "Pick a notify.* service from the dropdown"
selector:
@KenGrinder
KenGrinder / low_battery.yaml
Last active December 22, 2024 01:07 — forked from modularTaco/report_zigbee_zwave_devices_gone_offline.yaml
Home Assistant Blueprint: Low battery level detection & notification for all battery sensors
blueprint:
name: Low battery detection (using state.name)
description: >
Checks battery sensors daily at a specified time on selected days.
Numeric sensors below a threshold or binary sensors with state='on'
are considered low. Excludes specified devices/areas/entities.
Calls a user-specified notify service with a custom message, and
uses state.name if available (just like your Dev Tools test),
falling back to entity_id if needed.
domain: automation
@KenGrinder
KenGrinder / blacklist.sh
Last active February 22, 2021 02:57 — forked from alex-red/blacklist.sh
Geo-IP Block for Edgerouter
#Backup previous list
rm -f BLACKLIST_OLD.txt
mv BLACKLIST.txt BLACKLIST_OLD.txt
touch BLACKLIST.txt
#Download the file from PGL.YOYO
curl -O https://pgl.yoyo.org/as/iplist.php
#Download the file from emerging threats
curl -O https://rules.emergingthreats.net/fwrules/emerging-Block-IPs.txt
#Download the first file from SpamHaus
curl -O https://www.spamhaus.org/drop/drop.txt