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
export ZSH="$HOME/.oh-my-zsh" | |
ZSH_THEME="robbyrussell" | |
zstyle ':omz:update' mode auto | |
plugins=(git history zsh-autosuggestions zsh-syntax-highlighting ohmyzsh-full-autoupdate) | |
source $ZSH/oh-my-zsh.sh | |
export LANG=en_US.UTF-8 |
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 Temperature Notification | |
description: Send a notification to open/close the windows | |
domain: automation | |
input: | |
outdoor_temp: | |
name: Outdoor Temperature | |
description: The outdoor temperature 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
import asyncio | |
class RateLimiter: | |
def __init__(self, max_calls: int = 100, interval: int = 60): | |
self.max_calls = max_calls | |
self.interval = interval | |
self.queue = asyncio.Queue(max_calls) | |
self.worker = asyncio.run_coroutine_threadsafe(self.queue_handler()) |
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
@ECHO OFF | |
CLS | |
:Initialize | |
@REM Iterate over all files in the current folder | |
ECHO: | |
SET "_ME=%~f0" | |
SET "_7z=C:\Program Files\7-Zip\7z.exe" |
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
--- | |
# This automation takes a binary_sensor and sets the light to the sames state. | |
blueprint: | |
source_url: https://github.com/niro1987/homeassistant-config/blob/main/blueprints/automation/niro1987/binary_sensor_sync_light.yaml | |
name: Sync a light with a binary sensor | |
description: >- | |
This automation keeps a light in sync with a binary 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
--- | |
# This automation takes a binary_sensor to toggle a light. | |
blueprint: | |
source_url: https://github.com/niro1987/homeassistant-config/blob/main/blueprints/automation/niro1987/binary_sensor_toggle_light.yaml | |
name: Toggle a light with a binary sensor | |
description: >- | |
This automation takes a binary_sensor to toggle a light. |
NewerOlder