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
CmdUtils.CreateCommand({ | |
name: "lmgtfy", | |
synonyms: ["letmegooglethatforyou"], | |
takes: {"words to google": noun_arb_text}, | |
icon: "http://letmegooglethatforyou.com/favicon.ico", | |
description: "Replaces the selected words with a <a href=\"http://www.tinyurl.com\">TinyUrl</a> of the <a href=\"\">Let Me Google That For You</a> link", | |
preview: function( pblock, urlToShorten ){ | |
pblock.innerHTML = "Replaces the selected URL with a tiny LMGTFY url."; | |
var baseUrl = "http://tinyurl.com/api-create.php?url=http://letmegooglethatforyou.com/?q="; | |
pblock.innerHTML = "Replaces the selected URL with ", |
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: Aqara Wireless Switch (single, double, hold) | |
description: 'Control anything using Aqara Wireless Switch. | |
Customizable actions for each press. | |
This version of the blueprint is for buttons supporting single, double and hold actions. | |
' | |
domain: automation |
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
CmdUtils.makeSearchCommand({ | |
name: "craigslist-sandiego", | |
url: "http://sandiego.craigslist.org/search/sss?query={QUERY}", | |
icon: "http://sandiego.craigslist.org/favicon.ico", | |
description: "Searches sandiego.craigslist.org" | |
}); | |
//Note: This command was automatically generated by the create-new-search-command command. |
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
# Calculation References: | |
# https://nathanfiscus.github.io/inovelli-notification-calc/ | |
# https://community.inovelli.com/t/home-assistant-2nd-gen-switch-rgb-working/168/62 | |
# https://docs.google.com/spreadsheets/u/1/d/1SGJrJHCUtz8AzznWL_mLCTJjjr2U0IpltcUkRr7N_6M/edit?usp=sharing | |
# | |
# Changes: | |
# July 22, 2020: Incorporating some changes from Kevin Schlichter. | |
# https://github.com/kschlichter/Home-Assistant-Inovelli-Red-Dimmer-Switch | |
# | |
# August 6, 2020: Converting `zwave` service to `ozw` service due to the new Z-Wave integration. |
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
service: script.inovelli_led | |
data: | |
entity_id: zwave.dimmer_family_room | |
color: purple | |
dimmer: "true" # Set to "false" for the non-dimmable switch. | |
duration: 10 seconds | |
effect: chase | |
level: 10 |
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
--- | |
alias: front_door_locked | |
initial_state: true | |
trigger: | |
- platform: state | |
entity_id: lock.front_door | |
from: 'unlocked' | |
to: 'locked' | |
action: | |
# Return the Status LED to normal. |
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
{% macro add_time(time, add_minutes) %} | |
{% if time|lower != 'unavailable' %} | |
{% set time = time.split(':') %} | |
{% set hour = time[0]|int %} | |
{% set minutes = time[1]|int %} | |
{% if (minutes + add_minutes) < 60 %} | |
{{ "%0.02d:%0.02d"|format(hour, minutes + add_minutes) }} | |
{% else %} | |
{{ "%0.02d:%0.02d"|format(hour + 1, (minutes + add_minutes) - 60) }} | |
{% endif %} |
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
hass-cli --columns=ENTITY="entity_id,state,attributes[duration],attributes[remaining]" --no-headers --table-format tsv state list ^timer \ | |
| grep active \ | |
| sed -e 's/timer.//g' \ | |
| sed -e 's/\<active\>//g' \ | |
| sed -e 's/\t/,/g' \ | |
| sed -e 's/,,/,/g' \ | |
| sed -e 's/ //g' \ | |
www/data/active_timers_snapshot.csv | |
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
# Sonoff S31 Power Monitoring Plug | |
# | |
substitutions: | |
devicename: sonoff_s31_01 | |
upper_devicename: Sonoff S31 01 | |
esphome: | |
name: ${devicename} | |
platform: ESP8266 | |
board: esp01_1m |
NewerOlder