Smart Lighting Automation with WLED and Home Assistant

I’ve been diving into the world of smart lighting automation with WLED and Home Assistant, and it’s been an absolute blast! I’ve got a string of LEDs controlled by an ESP8266 running WLED 0.14.0, and I’ve set up an automation to turn them on and off daily at sunset and 11 PM, respectively. But where it gets really exciting is the preset patterns and effects I’ve programmed into the system. :star2:

The challenge I wanted to tackle was making the preset selection dynamic based on the time of year. For example, in December, I want a random Christmas preset to kick in, and in October, something spooky. I initially set up a JSON map with entries for each month and corresponding presets, but the automation felt a bit clunky. I knew there had to be a cleaner, more efficient way to handle this.

After some research and experimentation, I found that using templates and conditions in Home Assistant allowed me to streamline the process. Now, the system automatically selects the appropriate preset based on the current month. It’s so much smoother and easier to update, especially as I add more seasonal themes to the mix. :tada:

One thing I’d love to explore further is integrating voice commands to manually override the presets or adjust the timing. But for now, the system is running like clockwork, and it’s been a fantastic way to add some festive flair to my home throughout the year. If anyone has tips for making this even more seamless or adding new features, I’d love to hear them! Happy automating! :rocket: