Skip to content

Instantly share code, notes, and snippets.

View blizzrdof77's full-sized avatar

Ben Wagner blizzrdof77

View GitHub Profile
@blizzrdof77
blizzrdof77 / zha-moes-zigbee-rotary-smart-knob.yaml
Last active February 21, 2024 05:53
ZHA - Moes Tuya Smart Knob (TS004F) controller for lights
blueprint:
name: ZHA - Moes Tuya Smart Knob (TS004F) controller for lights
description: Control lights with a Moes Tuya smart knob (the spinny ones). You can set functions for single press, and rotating left/right will change the brightness smoothly of the selected light.
domain: automation
source_url: https://gist.github.com/blizzrdof77/0f686e66db30c871e362e24388c3f8fa
input:
remote:
name: Remote
description: Moes Tuya Smart Knob Device to use
selector:
@blizzrdof77
blizzrdof77 / binary-sensor-light-switch-controller.yaml
Last active January 13, 2024 23:46
Binary Sensor-activated Light Switch Controller Blueprint
blueprint:
name: Binary Sensor-activated Light Switch Controller
description: Turn on/off a light when binary sensor value turns on/off.
domain: automation
source_url: https://gist.github.com/blizzrdof77/07417204379764fd76fd8b8226190e4b
input:
trigger_entity:
name: Binary Sensor
selector:
entity:
@blizzrdof77
blizzrdof77 / automatic-turn-off.yaml
Last active January 12, 2024 03:08 — forked from tdiekel/automatic-turn-off.yaml
Automatic light or switch turn off after time
blueprint:
name: Automatic light or switch turn off after timeout
description: >
Given a switchable entity, when it is turned on, it will automatically turn off after a set timeout period off after a certain period of time.
Based on:
- [Turn Off Light After Time](https://gist.github.com/JonTheNiceGuy/5ac636739165dd593030c0fed16eb618) by [JonTheNiceGuy](https://gist.github.com/JonTheNiceGuy)
- [Automatic light or switch turn off after time](https://gist.github.com/tdiekel/88ac0967cf6d3002aa91e65e3768eb45) by [tdiekel](https://gist.github.com/tdiekel)
domain: automation
input:
entity:
@blizzrdof77
blizzrdof77 / zha-moes-zigbee-rotary-smart-knob-remote-control.yaml
Last active December 20, 2023 06:35
ZHA - Moes Tuya Smart Knob (TS004F) controller for remote control devices
blueprint:
name: ZHA - Moes Tuya Smart Knob (TS004F) controller for remote control devices
description: Control remotes (e.g. volume up/down) with a Moes Tuya smart knob (the spinny ones). You can set functions for single press, rotating left, and rotating right.
domain: automation
source_url: https://gist.github.com/blizzrdof77/c30c388ca5f4ce7ed72752296767417d
input:
remote:
name: Smart Knob Device
description: Moes Tuya Smart Knob Device to use
selector:
This file is used to be tracked and identified by https://lrc-maker.github.io
@blizzrdof77
blizzrdof77 / zha-lutron-aurora-smart-area-blueprint.yaml
Last active September 12, 2023 19:33 — forked from bjpetit/zha_lutron_aurora_blueprint.yaml
HASS Blueprint | ZHA - Lutron Aurora Smart Area with Night-Light Dimmer
blueprint:
name: ZHA - Lutron Aurora Smart Area with Night-Light Dimmer (v2.1)
description: Control lights of a provided area 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. Also supports late-night light groups.
domain: automation
source_url: https://gist.github.com/blizzrdof77/a0d048e58b8462748017e081bf3b9099
input:
remote:
name: Lutron Aurora Dimmer Switch
description: Lutron Aurora Z3-1BRL
selector:
This file is used to be tracked and identified by https://lrc-maker.github.io
@blizzrdof77
blizzrdof77 / strmod
Last active August 26, 2023 21:41
String Modification Utility
#!/usr/bin/env bash
script_name='strmod'
script_title='String Modification Utility'
version=0.44.0
updated='2023-08-25'
if [ -f "$(which batcat)" ] && [ ! -z "$(which batcat)" ] && [ -z "$(which bat)" ]; then
BatCat="$(command -v batcat) --language=Manpage"
elif [ -f "$(which bat)" ] && [ ! -z "$(which bat)" ]; then
@blizzrdof77
blizzrdof77 / go-upc-barcode-api-definition.yaml
Created January 30, 2023 20:29
Go-UPC Barcode API: Open API 3.0 Definition
openapi: 3.0.0
servers:
- description: Go-UPC Barcode-Lookup API
url: https://go-upc.com/api/v1
info:
version: 1.0.0
title: Go-UPC Barcode-Lookup API
description: Find information on products from around the globe. The API supports UPC, EAN, and ISBN barcode numbers, and info returned includes product name, description, brand, image URL, and more.
paths:
/code/{code}:
@blizzrdof77
blizzrdof77 / String.prototypeHelpers.js
Last active September 19, 2022 20:02
Javascript String Prototype Helper Methods
/**
* Helper String Methods/Extensions to the JS String Object
*
* @param String search
* @return Bool
*/
/* Easier way to check if a string contains a substring */
String.prototype.contains = String.prototype.contains || function(search) {
return (this.indexOf(search) !== -1);