This file contains hidden or 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: Automatic light or switch turn off after time | |
description: 'Given a light entity, watch for it turning on, and then turn it off after a certain period of time. | |
Based on [Turn Off Light After Time](https://gist.github.com/JonTheNiceGuy/5ac636739165dd593030c0fed16eb618) | |
by JonTheNiceGuy' | |
domain: automation | |
input: | |
light_or_switch: | |
name: Light or switch | |
description: Select the light or switch to monitor and control |
This file contains hidden or 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
#!/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 |
This file contains hidden or 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: Appliance has finished | |
description: Do something when an appliance (like a washing machine or dishwasher has finished as detected by a power sensor. | |
domain: automation | |
input: | |
power_sensor: | |
name: Power Sensor | |
description: Power sensor entity (e.g. from a smart plug device). | |
selector: | |
entity: |
This file contains hidden or 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: Turn off Light after Time has elapsed | |
description: Given a light entity, watch for it turning on, and then turn it off after a certain period of time. | |
domain: automation | |
input: | |
light: | |
name: Light | |
description: Select the light to monitor and control | |
selector: | |
entity: |
This file contains hidden or 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
deb https://ftp.debian.org/debian/ stable contrib main non-free non-free-firmware | |
# deb-src https://ftp.debian.org/debian/ stable contrib main non-free non-free-firmware | |
deb https://ftp.debian.org/debian/ stable-updates contrib main non-free non-free-firmware | |
# deb-src https://ftp.debian.org/debian/ stable-updates contrib main non-free non-free-firmware | |
deb https://ftp.debian.org/debian/ stable-proposed-updates contrib main non-free non-free-firmware | |
# deb-src https://ftp.debian.org/debian/ stable-proposed-updates contrib main non-free non-free-firmware | |
deb https://ftp.debian.org/debian/ stable-backports contrib main non-free non-free-firmware |
This file contains hidden or 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
function Get-Basename | |
{ | |
<# | |
.SYNOPSIS | |
Gets the file name or directory portion of a path. | |
Somewhat similar to the POSIX BASENAME(1) command, written in PowerShell. | |
.DESCRIPTION | |
The Get-Basename cmdlet strips any prefix ending with the last slash | |
character present in string (after first stripping trailing slashes), |
This file contains hidden or 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
customElements.whenDefined("ha-quick-bar").then(() => { | |
const fireEvent = (node, type, detail, options) => { | |
options = options || {}; | |
detail = detail === null || detail === undefined ? {} : detail; | |
const event = new Event(type, { | |
bubbles: options.bubbles === undefined ? true : options.bubbles, | |
cancelable: Boolean(options.cancelable), | |
composed: options.composed === undefined ? true : options.composed, | |
}); | |
event.detail = detail; |
This file contains hidden or 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
/* | |
Add a link to the sidebar to any path in Home Assistant | |
Put this file in <config>/www/panel-redirect.js | |
In configuration.yaml: | |
panel_custom: | |
- name: panel-redirect | |
# url_path needs to be unique for each panel_custom config |
This file contains hidden or 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
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular-animate.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular-cookies.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular-aria.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular-messages.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.4/angular-material.min.js"></script> |
This file contains hidden or 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
/** | |
* 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); |
NewerOlder