Skip to content

Instantly share code, notes, and snippets.

View haberda's full-sized avatar

Daniel Haber haberda

  • Las Vegas, NV
View GitHub Profile
@haberda
haberda / periodic_lights_XY.yaml
Last active May 9, 2024 12:17
Periodic Lights XY
blueprint:
name: Periodic lights RGB
description: "Dim and adjust color of lights progressively throughout the evening (RGB bulbs only). This is indexed to the midpoint between sunset and sunrise and fit to a sin function, so the midpoint will be minimum brightness and midpoint +12hr will be maximum brightness. The midpoint can be offset by a fixed amount if lights are too dim or bright at the desired time."
domain: automation
source_url: https://gist.github.com/haberda/a43a40d8b2e734036b1575e1e6df7a59
input:
light:
name: Light(s)
description: The light(s) to control
selector:
@haberda
haberda / fan_occupancy_temperature.yaml
Last active August 27, 2022 13:58
Fan Blueprint - with occupancy and temperature
blueprint:
name: Fan - with occupancy and temperature
description: Turn on a fan when occupancy is detected and temperature is above a set level.
domain: automation
input:
occupancy_entity:
name: Occupancy Sensor
selector:
entity:
domain: binary_sensor
@haberda
haberda / periodic_lights.yaml
Last active July 28, 2024 23:02
Periodic lights
blueprint:
name: Periodic lights
description: "Dim and adjust color temperature of lights progressively throughout the evening (RGB bulbs probably won't change temperature). This is indexed to the midpoint between sunset and sunrise and fit to a sin function, so the midpoint will be minimum brightness and midpoint +12hr will be maximum brightness. The midpoint can be offset by a fixed amount if lights are too dim or bright at the desired time."
domain: automation
source_url: https://gist.github.com/haberda/f17694969a6de15d75267667b7c955ac
input:
light:
name: Light(s)
description: The light(s) to control
selector: