Skip to content

Instantly share code, notes, and snippets.

View dale3h's full-sized avatar

Dale Higgs dale3h

View GitHub Profile
@dale3h
dale3h / motion_lights_off.yaml
Created April 27, 2018 18:43
Delay and transition lights off after motion is no longer detected
################################################################
## Packages / Motion Lights Off
##
## @description Delay and transition lights off after motion is no longer detected
## @component automation, binary_sensor, input_number, light, sensor
## @license MIT
## @author @Vasiley, Dale Higgs <@dale3h>
################################################################
homeassistant:
@dale3h
dale3h / toggle_with_brightness.yaml
Last active April 26, 2018 01:31
Light Toggle w/ Brightness (@MattW)
################################################################
## Packages / Light Toggle with Brightness
##
## @description Toggle lights with a brightness based on time
## @component automation, binary_sensor, light
## @license MIT
## @author @mattlward, Dale Higgs <@dale3h>
################################################################
automation:
@dale3h
dale3h / pkg-x
Last active December 4, 2018 21:22
Ensure Alpine packages are installed and then run a command
#!/bin/bash
################################################################
## @usage pkg-x node=nodejs node /my/node-script.js "arg1" "arg2"
## @usage pkg-x expect,telnet=busybox-extras /path/to/telnet.sh "uptime"
## @description Ensure Alpine packages are installed and then run a command
## @license MIT
## @author Dale Higgs <@dale3h>
################################################################
@dale3h
dale3h / clog
Created April 19, 2018 19:03
[Hass.io] Colored Log Viewer for Home Assistant
#!/bin/bash
################################################################
## @usage clog folder_watcher=magenta,system_log=red
## @colors https://www.npmjs.com/package/colors#text-colors
## @license MIT
## @author Dale Higgs <@dale3h>
################################################################
[[ -n "$(command -v apk)" ]] \
@dale3h
dale3h / telnet-wrapper.sh
Created April 19, 2018 03:24
[Home Assistant] Hass.io - Install Packages and Execute Telnet Command
#!/bin/bash
################################################################
## @usage telnet-wrapper.sh "uptime"
## @usage telnet-wrapper.sh "ping -c1 10.0.0.2"
## @description Install Alpine packages and run telnet command
## @license MIT
## @author Dale Higgs <@dale3h>
################################################################
@dale3h
dale3h / dimmer_test.yaml
Created April 6, 2018 19:18
I2C based light with dimming
################################################################
## Packages / Dimmer Test
##
## @description I2C based light with dimming
## @component input_number, light, shell_command
## @license MIT
## @author Dale Higgs <@dale3h>
################################################################
################################################
@dale3h
dale3h / boys_room_light.yaml
Created April 6, 2018 00:13
Time and button restricted light control
################################################################
## Packages / Boy's Room Brightness
##
## @description Time and button restricted light control
## @component input_datetime, input_number, light, script
## @license MIT
## @author Dale Higgs <@dale3h>
################################################################
################################################
@dale3h
dale3h / custom_components--automation--mqtt.py
Last active April 3, 2018 15:53
Parse Modbus MQTT Data with Home Assistant
# File: custom_components/automation/mqtt.py
"""
Offer MQTT listening automation rules.
For more details about this automation rule, please refer to the documentation
at https://home-assistant.io/docs/automation/trigger/#mqtt-trigger
"""
import asyncio
import json
@dale3h
dale3h / hassio_rpi3bp
Last active June 12, 2019 18:52
Hass.io Installer for Raspberry Pi 3 B+
#!/bin/bash
###########################################################
###########################################################
## ##
## THIS SCRIPT SHOULD ONLY BE RUN ON A RASPBERRY PI 3 B+ ##
## ##
###########################################################
###########################################################
@dale3h
dale3h / find.xml
Last active October 20, 2017 18:40
unRAID Docker Template for FIND
<?xml version="1.0"?>
<Container version="2">
<Beta>False</Beta>
<Category>HomeAutomation:</Category>
<Name>FIND</Name>
<Overview>High-precision indoor positioning framework for most wifi-enabled devices.</Overview>
<Project>https://www.internalpositioning.com/</Project>
<Support>https://github.com/schollz/find/issues</Support>
<Description>High-precision indoor positioning framework for most wifi-enabled devices.</Description>
<Registry>https://hub.docker.com/r/schollz/find/</Registry>