Skip to content

Instantly share code, notes, and snippets.

@marcan
marcan / bloom.py
Last active February 29, 2024 19:55
Simple Bloom filter implementation in Python 3 (for use with the HIBP password list)
#!/usr/bin/python3
#
# Simple Bloom filter implementation in Python 3
# Copyright 2017 Hector Martin "marcan" <marcan@marcan.st>
# Licensed under the terms of the MIT license
#
# Written to be used with the Have I been pwned? password list:
# https://haveibeenpwned.com/passwords
#
# Download the pre-computed filter here (968MB, k=11, false positive p=0.0005):
@sbyx
sbyx / wake-up-light-alarm-with-sunrise-effect.yaml
Last active June 30, 2024 06:16
Home Assistant Blueprint: Wake-up light alarm with sunrise effect
blueprint:
name: Wake-up light alarm with sunrise effect
description: 'A wake-up light alarm with a brightness and color temperature sunrise
effect. Note: Requires date_time_iso sensor in configuration, not manually executable!'
domain: automation
input:
light_entity:
name: Wake-up light entity
description: The light to control. Turning it off during the sunrise will keep
it off. Color temperature range is auto-detected.
@quallenbezwinger
quallenbezwinger / set_climate_on_time.yaml
Last active January 15, 2022 16:34
Set thermostat temperature at specific time - homeassistant blueprint
blueprint:
name: Set thermostat temperature at specific time
description: Sets a climate entity to a specifc temperature at a set time everyday. If climate entity is off, it is normally not accepting temperature updated. This blueprints checks if climate entity is off and the temperature update will be set when thermostat is going back in heating mode.
domain: automation
source_url: https://gist.github.com/dirkk1980/d3a60a5ebc7c58b1c56024cb447bef3c
input:
time_to_set:
name: Time
description: When should the temperature be set
selector:
@quallenbezwinger
quallenbezwinger / set_climate_on_different_times.yaml
Last active January 26, 2022 02:02
Homeassistant Blueprint - Sets a climate entity to a specifc temperatures at a set time everyday. If climate entity is off, it is normally not accepting temperature updated. This blueprints checks if climate entity is off and the temperature update will be set when thermostat is going back in heating mode.
blueprint:
name: Set thermostat temperature at specific times a day
description: Sets a climate entity to a specifc temperatures at a set time everyday. If climate entity is off, it is normally not accepting temperature updated. This blueprints checks if climate entity is off and the temperature update will be set when thermostat is going back in heating mode.
domain: automation
source_url: https://gist.github.com/dirkk1980/70097f1a1e3cea543c3b0fa029754725
input:
time_to_set_morning:
name: Time for morning
description: When should the temperature be set
selector: