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. |
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()) |
NewerOlder