Skip to content

Instantly share code, notes, and snippets.

View bubba925's full-sized avatar

Ryan K bubba925

View GitHub Profile
@bubba925
bubba925 / smart-mailbox.yaml
Last active July 9, 2025 02:49 — forked from eroak/smart-mailbox.yaml
HomeAssistant blueprint - Smart mailbox
blueprint:
name: 📬 Smart mailbox
description: >
# 📬 Smart mailbox `v1.0.1`
This Blueprint detects mail deposits and collections in your mailbox using a motion sensor, confirmation entities, and optional counters or datetime entities.
## ✨ Key features
- Use a **mail counter** ([Create a counter](https://my.home-assistant.io/redirect/config_flow_start?domain=counter)) to track the number of mails in the mailbox.
- Record the **date and time** ([Create an input_datetime](https://my.home-assistant.io/redirect/config_flow_start?domain=input_datetime)) of the last mail deposit and collection with datetime entities.
@bubba925
bubba925 / notify-discord.sh
Created July 31, 2023 21:51
NUT Notification via discord webhook script
#!/bin/sh
# Discord webhook URL
WEBHOOK_URL="https://discord.com/api/webhooks/YOUR_WEBHOOK_ID/YOUR_WEBHOOK_TOKEN"
# The name of the bot
BOT_USERNAME="UPS Monitor"
# The title of the embed
EMBED_TITLE="UPS Status Update"