ESPHome
2024.10.2
|
#include <base_light_effects.h>
Public Member Functions | |
FlickerLightEffect (const std::string &name) | |
void | apply () override |
void | set_alpha (float alpha) |
void | set_intensity (float intensity) |
Public Member Functions inherited from esphome::light::LightEffect | |
LightEffect (std::string name) | |
virtual void | start () |
Initialize this LightEffect. Will be called once after creation. More... | |
virtual void | start_internal () |
virtual void | stop () |
Called when this effect is about to be removed. More... | |
const std::string & | get_name () |
virtual void | init () |
Internal method called by the LightState when this light effect is registered in it. More... | |
void | init_internal (LightState *state) |
Protected Attributes | |
float | intensity_ {} |
float | alpha_ {} |
Protected Attributes inherited from esphome::light::LightEffect | |
LightState * | state_ {nullptr} |
std::string | name_ |
Definition at line 191 of file base_light_effects.h.
|
inlineexplicit |
Definition at line 193 of file base_light_effects.h.
|
inlineoverridevirtual |
Implements esphome::light::LightEffect.
Definition at line 195 of file base_light_effects.h.
|
inline |
Definition at line 222 of file base_light_effects.h.
|
inline |
Definition at line 223 of file base_light_effects.h.
|
protected |
Definition at line 227 of file base_light_effects.h.
|
protected |
Definition at line 226 of file base_light_effects.h.