ESPHome  2024.2.0
Public Member Functions | Protected Attributes
esphome::light::FlickerLightEffect Class Reference

#include <base_light_effects.h>

Inheritance diagram for esphome::light::FlickerLightEffect:

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
LightStatestate_ {nullptr}
std::string name_

Detailed Description

Definition at line 190 of file base_light_effects.h.

Constructor & Destructor Documentation

◆ FlickerLightEffect()

esphome::light::FlickerLightEffect::FlickerLightEffect ( const std::string &  name)

Definition at line 192 of file base_light_effects.h.

Member Function Documentation

◆ apply()

void esphome::light::FlickerLightEffect::apply ( )

Implements esphome::light::LightEffect.

Definition at line 194 of file base_light_effects.h.

◆ set_alpha()

void esphome::light::FlickerLightEffect::set_alpha ( float  alpha)

Definition at line 221 of file base_light_effects.h.

◆ set_intensity()

void esphome::light::FlickerLightEffect::set_intensity ( float  intensity)

Definition at line 222 of file base_light_effects.h.

Field Documentation

◆ alpha_

float esphome::light::FlickerLightEffect::alpha_ {}

Definition at line 226 of file base_light_effects.h.

◆ intensity_

float esphome::light::FlickerLightEffect::intensity_ {}

Definition at line 225 of file base_light_effects.h.

The documentation for this class was generated from the following file: