-
-
Save TimBroddin/230bb7674a7171ced76286797d4f1a4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esphome: | |
name: kerst | |
platform: ESP8266 | |
board: nodemcuv2 | |
esp8266_restore_from_flash: true | |
wifi: | |
ssid: "xxx" | |
password: "xxx" | |
# Enable fallback hotspot (captive portal) in case wifi connection fails | |
ap: | |
ssid: "Kerstlights Fallback Hotspot" | |
password: "Co8xSqZhd3bG" | |
time: | |
- platform: homeassistant | |
id: esptime | |
captive_portal: | |
# Enable logging | |
logger: | |
# Enable Home Assistant API | |
api: | |
ota: | |
binary_sensor: | |
- platform: gpio | |
pin: | |
number: D0 | |
mode: INPUT_PULLDOWN_16 | |
name: "Button" | |
on_press: | |
then: | |
- homeassistant.event: | |
event: esphome.button_pressed | |
data: | |
title: Button was pressed | |
light: | |
- platform: fastled_clockless | |
chipset: WS2811 | |
pin: D4 | |
num_leds: 250 | |
rgb_order: RGB | |
name: "Xmas Leds" | |
restore_mode: RESTORE_DEFAULT_ON | |
effects: | |
# Use default parameters: | |
- random: | |
- strobe: | |
# Customize parameters | |
- random: | |
name: "Slow Random Effect" | |
transition_length: 30s | |
update_interval: 30s | |
- random: | |
name: "Fast Random Effect" | |
transition_length: 4s | |
update_interval: 5s | |
- addressable_color_wipe: | |
- addressable_scan: | |
- addressable_twinkle: | |
- addressable_random_twinkle: | |
twinkle_probability: 20% | |
- addressable_fireworks: | |
spark_probability: 80% | |
use_random_color: false | |
fade_out_rate: 120 | |
- addressable_fireworks: | |
name: "Random fireworks" | |
spark_probability: 80% | |
use_random_color: true | |
fade_out_rate: 120 | |
- addressable_rainbow: | |
name: Rainbow | |
speed: 10 | |
width: 1 | |
- addressable_rainbow: | |
name: Rainbow fast | |
speed: 30 | |
width: 1 | |
- addressable_flicker: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment