ESPHome 2025.10.0-dev
|
#include <base_light_effects.h>
Public Member Functions | |
StrobeLightEffect (const std::string &name) | |
void | apply () override |
void | set_colors (const std::vector< StrobeLightEffectColor > &colors) |
![]() | |
LightEffect (std::string name) | |
virtual void | start () |
Initialize this LightEffect. Will be called once after creation. | |
virtual void | start_internal () |
virtual void | stop () |
Called when this effect is about to be removed. | |
const std::string & | get_name () |
virtual void | init () |
Internal method called by the LightState when this light effect is registered in it. | |
void | init_internal (LightState *state) |
uint32_t | get_index () const |
Get the index of this effect in the parent light's effect list. | |
bool | is_active () const |
Check if this effect is currently active. | |
LightState * | get_light_state () const |
Get a reference to the parent light state. | |
Protected Attributes | |
std::vector< StrobeLightEffectColor > | colors_ |
uint32_t | last_switch_ {0} |
size_t | at_color_ {0} |
![]() | |
LightState * | state_ {nullptr} |
std::string | name_ |
Additional Inherited Members | |
![]() | |
uint32_t | get_index_in_parent_ () const |
Internal method to find this effect's index in the parent light's effect list. | |
Definition at line 164 of file base_light_effects.h.
|
inlineexplicit |
Definition at line 166 of file base_light_effects.h.
|
inlineoverridevirtual |
Implements esphome::light::LightEffect.
Definition at line 167 of file base_light_effects.h.
|
inline |
Definition at line 191 of file base_light_effects.h.
|
protected |
Definition at line 196 of file base_light_effects.h.
|
protected |
Definition at line 194 of file base_light_effects.h.
|
protected |
Definition at line 195 of file base_light_effects.h.