I have made myself a fluxcapacitor with various light effects (idle, time travelling, disco…) using three 10 LED WS2812 strips and the FastLED library.
I’m using the custom platform where I instantiate my custom (included in a header using includes:
) class in a lambda. Within the write_state()
function of my class I switch the effect-state for the main loop()
function.
At the moment it’s just a light with a list of effects in HomeAssistant. I was thinking about adding a template button or switch for each of the effects because I want to use the device in HomeKit (through HomeAssistant) and the custom effects are not passed through to Homekit unfortunately.
But what’s your suggestion, how would you expose the custom effects to Home Assistant?
Thanks for your input!