Skip to content

Instantly share code, notes, and snippets.

@erkr
erkr / persistent_sunset_elevation_actions.yaml
Last active September 10, 2025 22:39
Home Assistant Blueprint for 'persistent' Sunset elevation triggered actions
# Author Eric Kreuwels, Copyright 2022, publiced under the free MIT license conditions
blueprint:
name: Actions at Sunset elevation
description: Persistant elevation based actions around sunset. These actions can be any sequence including checking additional conditions if you like
domain: automation
input:
elevation_shift:
name: Elevation Shift
description: Using an elevation angle of the sun relative to the horizon; a positive angle is above the horizon. Angles between 0 and -3 degrees are in the twilight zone
default: 0.0
@DannyQuah
DannyQuah / 2022.01-D.Quah-Syncthing-Setup.md
Last active August 5, 2026 04:08
Setting up syncthing

Setting up syncthing

by Danny Quah. Jan 2022

Software syncthing runs on Linux, Windows, and Android. It "replaces proprietary sync and cloud services with something open, trustworthy and decentralized.": syncthing syncs not to any commercial or public Cloud but purely between my machines. This note describes how I set up syncthing to synchronize folders across my Linux, Windows, and Android devices.

A lead syncthing use-case for me is to synchronize Obsidian vaults across all my machines, including smartphones.

  1. Install syncthing on at least two machines.
  2. Run syncthing on desired machines. On Windows look in Task Manager to make sure syncthing is present and chugging away. On Linux check if syncthing is running by going to a shell and doing ps aux | grep syncthing. (On Windows, run the syncthing app if it's not already executing. On Linux if sycnthing isn't running, you might need to do something like /usr/bin/syncthing -no-browser &, or however it is you l
@aneeshd
aneeshd / heating-cooling.yaml
Last active July 20, 2025 02:33 — forked from f45tb00t/heating.yaml
Home Assistant Blueprint For Heating/Cooling
blueprint:
name: Heating/Cooling Control and Window Sensor
description: Control your heating and cooling with options for group home, if temp is below
a specific value, set temp, and heating between specific times.
homeassistant:
min_version: "2024.6.0"
domain: automation
input:
main_controls:
name: Main controls
@Resinchem
Resinchem / dryer.yaml
Created September 11, 2021 12:45
Dryer Notifications
# =====================================
# DRYER State and Notifications
# =====================================
- alias: "Dryer Start"
trigger:
platform: numeric_state
entity_id: sensor.dryer_indicator_on #Top photoresistor
above: 0.75
condition:
condition: template
;*******************************************************
; Want a clear path for learning AutoHotkey; Take a look at our AutoHotkey Udemy courses. They're structured in a way to make learning AHK EASY
; Right now you can get a coupon code here: https://the-Automator.com/Learn
;*******************************************************
Text:="|<YouTube Skip Ads>*89$62.zzzzzzzzzzy7btzzyTyTzStyTzzbzbzbaTzzzkztztzb9cTwDUQDTtiNnzPnaNlyHaQzaRtjT7VtbjtbSNzyMSNvyxrb3zqHaSz0BtyNxatbDrvSPrSNaNnxynaRsCQa1yTa5kzzzzbzzzzzzzzztzzzzzzzzzyTzzzzzs"
loop { ;keep looping over
Sleep,500 ;sleep for 1/2 a second
ok:=FindText(0,0,150000,150000,0,0,Text) ;See if can find the image
if Ok ;if it is found, do the next line
FindText_Control_Click(Ok,X_Adj:=0,Y_Adj:=0,ahkEXE:="chrome.exe") ;Send control click to the position (note, doesn't move mouse)
@Resinchem
Resinchem / washer.yaml
Created January 2, 2021 02:13
Washer Notification
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# Washing Machine Start/Finish
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# input_boolean.notify_washer: turns voice notifications off/on - auto-off from 11 pm - 8 am
# sensor.washer_watts from Sonoff S31 w/Tasmota
- alias: 'Washer State - Start'
trigger:
platform: numeric_state
entity_id: sensor.washer_watts
@r3mcos3
r3mcos3 / heating.yaml
Created December 24, 2020 07:27
Home Assistant Blueprint For Heating
blueprint:
name: Heating Control
description: Control your heating with options for person home, if temp is below a specific value, set temp, and heating between specific times.
domain: automation
input:
heating:
name: Climate Device
description: The climate device to use.
selector:
entity:
@quallenbezwinger
quallenbezwinger / motion_controlled_scenes_enhanced.yaml
Last active January 11, 2025 16:33
Homeassistant blueprint for motion-activated light scene with surrounding light level check
blueprint:
name: Motion-activated light scene with surrounding light level check and optional ambient scene
description: Turn on a light scene when motion is detected. Three different scenes can be defined depending on time of day. Furthermore a source for checking sourrounding light can be defined to enable light only if it is dark enough.
domain: automation
source_url: https://gist.github.com/dirkk1980/3e5c23acb05fb639bafdc5036b91aae6
input:
motion_entity:
name: Motion Sensor
selector:
entity:
##
# Copyright (c) 2020 Valentin Weber
#
# After some minor modifications (as marked below) this EventGhost
# Python script provides a method to send requests to devices
# registered with the Join API <https://joaoapps.com/join/api/> from
# any EventGhost Python Script or Command.
#
# EventGhost usage: `eg.globals.JoinPushDevice(text="hello_world")`
##
@ctrl-freak
ctrl-freak / apk_zipalign_resign.md
Created July 24, 2020 02:01
Modifying Android APK and Resign on Windows