Skip to content

Instantly share code, notes, and snippets.

@kpine
kpine / configuration.yaml
Created March 23, 2023 05:29
Z-Wave Statistics Sensors
# /config/configuration.yaml
homeassistant:
packages: !include_dir_named packages
@kpine
kpine / ge_double_tap_auto_dimmer.yaml
Last active January 3, 2024 22:15
GE/Jasco Double Tap Auto-dimming Blueprint
blueprint:
name: GE Light Switch Double Taps with Auto Brightness
description: Auto-dim GE/Jasco/Honeywell light switches that support double taps.
domain: automation
input:
device:
name: Light Switch Device
description: A light switch that supports double taps.
selector:
@kpine
kpine / ge_double.yaml
Last active December 5, 2023 22:33
GE/Jasco Double Tap Generic Blueprint
blueprint:
name: GE Switch Double Taps
description: Create automations to react to double taps from supporting GE, Honeywell and Jasco switches.
domain: automation
input:
device:
name: Switch Device
description: A GE switch that supports double taps.
selector:
@kpine
kpine / wireguard.sh
Created September 15, 2019 06:16 — forked from pstadler/wireguard.sh
WireGuard on Vyatta
#!/bin/bash -e
# vyatta-wireguard
#
# Usage: `./wireguard.sh [upgrade|uninstall]`.
#
# When called without arguments, the latest version will be fetched and installed.
#
# To automatically install the latest version of WireGuard after Firmware upgrades,
# this script should be placed in `/config/scripts/post-config.d/wireguard.sh`.
#!/bin/sh
function install_wireguard () {
echo "Downloading Wireguard ($RELEASE)..."
FILENAME="wireguard-$BOARD-$RELEASE.deb"
DEB_URL="https://github.com/Lochnair/vyatta-wireguard/releases/download/$RELEASE/$FILENAME"
if (/usr/bin/curl -s -L -o /tmp/$FILENAME $DEB_URL); then
echo "Installing $FILENAME..."
dpkg -i /tmp/$FILENAME
rm -f /tmp/$FILENAME