This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Wallpanel Battery Management | |
description: 'Control the charger for a permanently mounted tablet control panel.' | |
domain: automation | |
input: | |
battery: | |
name: Battery | |
description: This is the battery sensor for the device. | |
selector: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Toilet light control | |
description: Turn on a light when motion is detected or when the door opens. And turn off once closing again. | |
There are also two timers, on for daytime and one for nighttime. | |
domain: automation | |
input: | |
motion_entity: | |
name: Motion Sensor | |
selector: | |
entity: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Motion-activated Light with illuminance, nightmode and dimmable | |
description: Turn on a light when motion is detected and illuminance is below a | |
set Lux level. The light will dim before it is turned off to signal that it has | |
not detected motion in quite a while. There is also two timers, on for daytime | |
and one for nighttime. | |
domain: automation | |
input: | |
motion_entity: | |
name: Motion Sensor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Alert when cooling devices are off too long | |
description: Many of my devices do have a power metering including the option to turn off the device. This is nice but we want to avoid turning off a fridge for hours accidentally. | |
domain: automation | |
input: | |
switch: | |
name: Switch Entity | |
description: The switch we want to monitor. | |
selector: | |
entity: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Window Open Warning | |
description: Inform users when windows are open and the temperature is dropping too much. | |
domain: automation | |
input: | |
temp_sensor: | |
name: Temperature Sensor | |
description: Temperature Sensor to check. | |
selector: | |
entity: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Heating Control | |
description: Control your heating with options if temp is below a specific value, | |
set temp, and heating between specific times. | |
domain: automation | |
input: | |
heating: | |
name: Climate Switch | |
description: The climate switch to use. | |
selector: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Simple Bash script to fix a merge conflict with either mine or yours as option | |
# | |
# @author R. Sonke | |
# | |
bold=$(tput bold) | |
normal=$(tput sgr0) | |
doTheMerge () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
############################################# | |
## Bash script to cleanup git repositories ## | |
## Author: Rob Sonke ## | |
############################################# | |
# To execute this in all subdirs of the current dir: | |
# for d in ./* | |
# do | |
# (cd $d && ~/Downloads/removeOldBranches.sh) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import getpass | |
import json | |
import re | |
import requests | |
client_id = re.compile(',client_id:"(.*?)"').search(requests.get(re.compile('src="https://a-v2.sndcdn.com/assets/app-.*.js"').search(requests.get('https://soundcloud.com/').text).group()[5:-1]).text).group()[12:-1] | |
username = raw_input('Username: ') | |
password = getpass.getpass() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Given a collection of image files, this function will resize | |
# the images in the current folder and saves them in the subfolder resized | |
# | |
# Usage: resize-images | |
# Note: the read command is specific for ZSH shells, for Bash, use -p param. Same for the setopt, it's shopt for bash. | |
# | |
## Resize and rename images in the current directory and writes them to a resized subfolder | |
function resize-images() { | |
read "filename?What would you like the filename to be started with? []: " | |
read "width?What max width in pixels would you like your images? [1024]: " |
NewerOlder