This code is usable only if you are on Home Assistant 0.114 or older
For Home Assistant 0.115 and newer please go to: https://github.com/AdamNaj/ZWaveGraphHA
# 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. |
Cypress.Commands.add('loginOkta', () => { | |
const optionsSessionToken = { | |
method: 'POST', | |
url: Cypress.env('session_token_url'), | |
body: { | |
username: Cypress.env('username'), | |
password: Cypress.env('password'), | |
options: { | |
warnBeforePasswordExpired: 'true' | |
} |
This code is usable only if you are on Home Assistant 0.114 or older
For Home Assistant 0.115 and newer please go to: https://github.com/AdamNaj/ZWaveGraphHA
- alias: holiday_lights | |
initial_state: True | |
trigger: | |
platform: time | |
at: "20:40:00" | |
# platform: sun | |
# event: sunset | |
action: | |
service: input_select.select_option | |
entity_id: input_select.holiday |
"http://download.kiwix.org/zim/wikipedia_ab_all.zim.torrent" | |
"http://download.kiwix.org/zim/wikipedia_ab_all_nopic.zim.torrent" | |
"http://download.kiwix.org/zim/wikipedia_ace_all.zim.torrent" | |
"http://download.kiwix.org/zim/wikipedia_ace_all_nopic.zim.torrent" | |
"http://download.kiwix.org/zim/wikipedia_ady_all.zim.torrent" | |
"http://download.kiwix.org/zim/wikipedia_ady_all_nopic.zim.torrent" | |
"http://download.kiwix.org/zim/wikipedia_af_all.zim.torrent" | |
"http://download.kiwix.org/zim/wikipedia_af_all_nopic.zim.torrent" | |
"http://download.kiwix.org/zim/wikipedia_ak_all.zim.torrent" | |
"http://download.kiwix.org/zim/wikipedia_ak_all_nopic.zim.torrent" |
{{ $associateId := "YOUR_ASSOCIATE_ID" }} | |
{{ $itemId := index .Params 0 }} | |
{{ $json := getJSON "http://example.com/amazon/lookup.php?item=" $itemId }} | |
<div class="amazon-shortcode-box"> | |
<div class="amazon-shortcode-image"> | |
<a href="http://www.amazon.co.jp/exec/obidos/ASIN/{{ $itemId }}/{{ $associateId }}/" name="amazon-shortcode" target="\_blank"> | |
<img src="{{ $json.image_url }}" alt="{{ $json.title }}" /> | |
</a> | |
</div> |
I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).
Use ssh keys and define host aliases in ssh config file (each alias for an account).
/** | |
* App Endpoint API Access Example | |
* | |
* Author: SmartThings | |
*/ | |
preferences { | |
section("Allow Endpoint to Control These Things...") { | |
input "switches", "capability.switch", title: "Which Switches?", multiple: true | |
input "locks", "capability.lock", title: "Which Locks?", multiple: true |