This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |