Skip to content

Instantly share code, notes, and snippets.

View robertbeal's full-sized avatar

Robert Beal robertbeal

View GitHub Profile
@robertbeal
robertbeal / offline-devices-notifier.yaml
Last active January 27, 2025 23:57 — forked from Tahutipai/report_zigbee_zwave_devices_gone_offline.yaml
Home Assistant Blueprint: Low battery level detection & notification for all battery sensors
blueprint:
name: Offline Devices Notifier
description: Notifies for switches, sensors, and binary sensors
#By Tahutipai 2024-02-21
#Originally Based on the work of Sybx @ https://community.home-assistant.io/t/low-battery-level-detection-notification-for-all-battery-sensors/258664
#Note: This has been upgraded to report only the Device that is offline, not multiple individual sensors within one Device
domain: automation
input:
time:
name: Time to test on
@robertbeal
robertbeal / yet_another_motion_automation.yaml
Last active July 26, 2024 06:00 — forked from networkingcat/yet_another_motion_automation.yaml
Homeassistant blueprint for motion-activated light scene
blueprint:
name: Yet Another Motion Automation Beta
description: >
# YAMA V10
Turn on lights or scenes when motion is detected.
Four different scenes can be defined depending on time of day.
### Keybase proof
I hereby claim:
* I am robertbeal on github.
* I am bealer (https://keybase.io/bealer) on keybase.
* I have a public key ASBpibcpVmh3GPqf5Iw6Iv6b9sc4iXTXcVc1DcS7GY52wwo
To claim this, I am signing this object:
@robertbeal
robertbeal / gitlab-backup.sh
Created September 11, 2018 08:04
GitLab bash backup script
#!/bin/bash
# summary:
# backup script that keeps the last 14 (16-2) days worth of gitlab backups
# usage:
# backup.sh {backup-folder-path} {gitlab-access-token}
# backup.sh /mnt/backups AF56VBJJ660PF
cd "$1" || exit
@robertbeal
robertbeal / install.sh
Last active January 4, 2018 14:30
arch-base-install
#!/bin/bash
# Command for setting up a fully disk encrypted (including /boot) install with EFI partition with crypto_keyfile.bin (so the passphrase only needs to be entered once)
# Not yet automated, I still need to 'sed' some of the comment entries.
USER=foo
HOSTNAME=foo-linux
# Connect to wifi...
wifi-menu