Skip to content

Instantly share code, notes, and snippets.

View kdorff's full-sized avatar

Kevin Dorff kdorff

View GitHub Profile
@kdorff
kdorff / distance-sensor-0.yaml
Last active March 3, 2024 16:11
Break beam sensor using VL53L0X for Home Assistant using ESPHome
##
## A standard "break beam sensor" uses a laser or LED with a device on both
## sides of an opening and is triggered when something breaks the beam
## (such as a customer walking through the beam). Some garage doors use them.
## Stores often use them at the entrace to ring a chime when a customer enters
## or leaves.
##
## This is my attempt at using a VL53L0X i2c Time of Flight sensor
## as a break beam sensor in Home Assistant using ESPHome.
##
@kdorff
kdorff / automations-partial.yml
Created March 8, 2022 19:20
Home Assistant Automations for WLED on my stairs
##
## Motion detected upstairs
## -----------------------------
## If (timer.stairs_motion_timer is not active AND
## input_boolean.wled_stairs_auto_enabled is on),
## this will configure and turn on the lights and
## set timer.stairs_motion_timer to 15 seconds.
##
## The lights will be turned off by the
## expiration of timer.stairs_motion_timer in the
@kdorff
kdorff / last_diff.groovy
Last active October 31, 2021 15:27
Groovy script to perform diff against the last two autorestic snapshots for a list of backends.
#!/usr/bin/env groovy
import groovy.yaml.YamlSlurper
/**
*
* Script to perform a diff from latest:latest to latest on the
* list of autorestic backends passed in as command line arguments.
*
* REQUIREMENTS