Skip to content

Instantly share code, notes, and snippets.

View Twanne's full-sized avatar

AntonH Twanne

View GitHub Profile
@Twanne
Twanne / party_lights.yaml
Last active March 20, 2025 23:13
Home Assistant Blueprint: Party Lights
blueprint:
name: Party Lights
author: AntonH
description: |
**Version 3.1**
Lights go to party mode (color loops or fade-in-and-out)
⚠️ **NOTE:** ⚠️
*This automation is triggered by the status of a switch or an input_boolean entity.*
@Twanne
Twanne / party_lights_BETA.yaml
Last active January 6, 2025 19:58
Home Assistant Blueprint: Party Lights (BETA)
#To do:
# [ ] Change lights at random times
# [x] Amended syntax to new guidelines (HA 2024.8 & 2024.10 changes)
# [x] General code simplifications
# [x] Rewrote the saturated color logic. There was an issue with it not working when a light was initially off and the logic has now been simplified somewhat.
blueprint:
name: Party Lights (BETA)
author: AntonH
description: |
@Twanne
Twanne / multi_click_button.yaml
Last active January 19, 2025 20:00
Home Assistant Blueprint: Multi Click Button
blueprint:
name: Multi Click Button
author: AntonH
description: |
**Version 1.2**
Allows multi-click actions to take place on a button.
Upon reaching the number of required clicks, it executes user defined actions.
There are 3 entity types supported:
- button
blueprint:
name: Multi Click Button (BETA)
author: AntonH
description: |
**Version 1.3** **(BETA)**
Allows multi-click actions to take place on a button.
Upon reaching the number of required clicks, it executes user defined actions.
There are 3 entity types supported:
- button
@Twanne
Twanne / the_everything_light_BETA.yaml
Last active March 11, 2025 18:27
Home Assistant Blueprint: The Everything Light BETA
blueprint:
name: The Everything Light (BETA)
author: AntonH
description: |
**Version 2.10** **(BETA)**
The Everything Light: select any trigger and turn on your light in multiple ways:
- just turn the light on in it's default state
- turn it on with a set brightness, color and/or temperature value
- turn it on dynamically with a brightness value that changes according to an ambient light sensor
@Twanne
Twanne / the_everything_light.yaml
Last active March 13, 2025 08:16
Home Assistant Blueprint: The Everything Light
blueprint:
name: The Everything Light
author: AntonH
description: |
**Version 2.10**
The Everything Light: select any trigger and turn on your light in multiple ways:
- just turn the light on in it's default state
- turn it on with a set brightness, color and/or temperature value
- turn it on dynamically with a brightness value that changes according to an ambient light sensor
@Twanne
Twanne / smart_lux_dimmer_BETA.yaml
Last active January 9, 2025 19:30
Home Assistant Blueprint: Smart Lux Dimmer BETA
blueprint:
name: Smart Lux Dimmer (BETA)
author: AntonH
description: |
Version 4.3 (BETA)
Switch or dim lights based on the value of a light sensor.
Light colors or temperature can be set to a fixed value when inside or outside the measuring range (different values are possible).
Settings for brightness, color or temperature outside min and max values of the sensor can be set.
To smoothen out transitions, a time can be set where the light will move from the current to the new brightness.
@Twanne
Twanne / smart_lux_dimmer.yaml
Last active February 5, 2025 13:10
Home Assistant Blueprint: Smart Lux Dimmer
blueprint:
name: Smart Lux Dimmer
author: AntonH
description: |
Version 4.3
Switch or dim lights based on the value of a light sensor.
Light colors or temperature can be set to a fixed value when inside or outside the measuring range (different values are possible).
Settings for brightness, color or temperature outside min and max values of the sensor can be set.
To smoothen out transitions, a time can be set where the light will move from the current to the new brightness.
@Twanne
Twanne / joke_generator.yaml
Last active March 19, 2025 20:46
Home Assistant Blueprint: Joke Generator
blueprint:
name: Joke generator
author: AntonH
description: |
Version 1.1
This blueprint selects a random rude joke from a list.
There are 3 types of jokes to choose from: funny insults, yo momma jokes and dad jokes
It speaks The 9 most common languages in Europe: German, English, French, Italian, Spanish, Dutch, Portuguese, Turkish and Russian.
source_url: https://gist.github.com/Twanne/8c09e6a876befcfda1828dc0829612db
domain: automation
@Twanne
Twanne / light_repeater.yaml
Last active December 20, 2023 15:33
Home assistant script: light repeater
light_repeater:
alias: Light repeater
icon: mdi:lightbulb-auto-outline
description: Repeatedly turn on lights with a variable delay.
fields:
target_lights:
selector:
target:
entity:
domain: light