Skip to content

Instantly share code, notes, and snippets.

View Phando's full-sized avatar

Joe Phando

View GitHub Profile
@C0ntroller
C0ntroller / rainbow.yaml
Last active February 13, 2025 20:21
ESPHome RGB-LED Rainbow effect
# Import this effect in your light module to use it
# You have to change the id in line 15 and/or set an id for your LED module
# The time-variable exist to make multiple ESPs start from 0 even if they ran the effect before so they are in sync
# You can delete it if you only have one LED Strip
- lambda:
name: Rainbow
update_interval: 3s # If you change this, also have to edit line 11 for correct time handling
lambda: |-
static int state = 0;
static uint32_t time = millis();