Skip to content

Instantly share code, notes, and snippets.

View bjpetit's full-sized avatar

Brent Petit bjpetit

View GitHub Profile
@bjpetit
bjpetit / schlage-zwave-js-lock-user-actions.yaml
Last active March 10, 2024 20:18
ZWave-JS - Schlage Lock User Code Actions
blueprint:
name: Schlage Lock Actions
description: Perform action based on code slot that unlocked door
domain: automation
input:
schlage_lock:
name: Schlage Lock
description: List of available Schlage Locks
selector:
device:
@bjpetit
bjpetit / direwolf.service
Last active August 5, 2024 15:09
Simple systemd file for direwolf
[Unit]
Description=Direwolf Sound Card-based AX.25 TNC
After=network.target
After=sound.target
[Service]
Type=simple
User=pi
Group=pi
WorkingDirectory=/opt/direwolf/
@bjpetit
bjpetit / direwolf@.service
Created November 22, 2023 17:28
Systemd file for direwolf
[Unit]
Description=Direwolf %i Service
Documentation=https://github.com/wb2osz/direwolf/blob/dev/doc/README.md
After=network-online.target
Requires=rigctld.service
After=rigctld.service
[Service]
Type=simple
User=pi
@bjpetit
bjpetit / update_linbpq.sh
Last active November 4, 2021 12:58
Update linbpq on the raspberry pi
#!/bin/bash
# Download latest RPi BPQ binaries
# If arg 1 is beta then make beta binary active
# If arg 1 is anything else, release or NULL then make
# release binary active
# If arg 2 is Y then restart linbpq after updates
# otherwise prompt for restart
# Location of linbpq install. Modify this path if
# linbpq is running out of a different directory.
@bjpetit
bjpetit / zha_lutron_aurora_blueprint.yaml
Last active June 9, 2024 20:37
Blueprint for Lutron Aurora automations in ZHA
blueprint:
name: ZHA - Lutron Aurora Dimmer v1.3
description: 'Control lights with a Lutron Aurora Dimmer
Pressing in the dimmer button will toggle between turning lights on
to full brightness, and turning the lights off.
Rotating the dimmer will increase and decrease the light brightness.
Adjust the sensitivity if updates from the dimmer are being sent too quickly
'
domain: automation