Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doismellburning/a306826cb4c9ac9de56130f6fd535d75 to your computer and use it in GitHub Desktop.
Save doismellburning/a306826cb4c9ac9de56130f6fd535d75 to your computer and use it in GitHub Desktop.
bed-light-button-kristian.yaml
light:
- platform: fastled_clockless
chipset: SK6812
name: "LED"
pin: GPIO27
id: led
num_leds: 1
binary_sensor:
- platform: gpio
name: "Goodnight"
pin: GPIO39
filters:
- invert:
on_click:
then:
- light.turn_on:
id: led
brightness: 50%
red: 0%
green: 100%
blue: 0%
on_double_click:
then:
- light.turn_on:
id: led
brightness: 50%
red: 100%
green: 0%
blue: 0%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment