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 30, 2024 11:48
Home Assistant Blueprint: Party Lights
blueprint:
name: Party Lights
author: AntonH
description: |
**Version 1.3**
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 26, 2024 07:54
Home Assistant Blueprint: Party Lights (BETA)
#To do:
# - Change lights at random times
# - Effects
# - Return to original state after turn-off
blueprint:
name: Party Lights (BETA)
author: AntonH
description: |
**Version 1.3** **(BETA)**
@Twanne
Twanne / multi_click_button.yaml
Last active February 1, 2024 17:04
Home Assistant Blueprint: Multi Click Button
blueprint:
name: Multi Click Button
author: AntonH
description: |
**Version 1.1**
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.1 (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 January 23, 2024 07:39
Home Assistant Blueprint: The Everything Light BETA
blueprint:
name: The Everything Light (BETA)
author: AntonH
description: |
**Version 2.5** **(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 January 23, 2024 07:39
Home Assistant Blueprint: The Everything Light
blueprint:
name: The Everything Light
author: AntonH
description: |
**Version 2.5**
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 7, 2024 07:46
Home Assistant Blueprint: Smart Lux Dimmer BETA
blueprint:
name: Smart Lux Dimmer (BETA)
author: AntonH
description: |
Version 4.1 (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 / joke_generator.yaml
Last active January 5, 2024 13:56
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