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
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
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: |
OlderNewer