ESPHome
2024.12.2
|
#include <light_effect.h>
Public Member Functions | |
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... | |
virtual void | apply ()=0 |
Apply this effect. Use the provided state for starting transitions, ... 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 | |
LightState * | state_ {nullptr} |
std::string | name_ |
Definition at line 12 of file light_effect.h.
|
inlineexplicit |
Definition at line 14 of file light_effect.h.
|
pure virtual |
Apply this effect. Use the provided state for starting transitions, ...
Implemented in esphome::light::FlickerLightEffect, esphome::light::StrobeLightEffect, esphome::light::AutomationLightEffect, esphome::light::LambdaLightEffect, esphome::light::RandomLightEffect, esphome::light::AddressableLightEffect, and esphome::light::PulseLightEffect.
|
inline |
Definition at line 27 of file light_effect.h.
|
inlinevirtual |
Internal method called by the LightState when this light effect is registered in it.
Definition at line 30 of file light_effect.h.
|
inline |
Definition at line 32 of file light_effect.h.
|
inlinevirtual |
Initialize this LightEffect. Will be called once after creation.
Reimplemented in esphome::light::AddressableFireworksEffect, esphome::light::LambdaLightEffect, esphome::light::AddressableLambdaLightEffect, esphome::wled::WLEDLightEffect, esphome::e131::E131AddressableLightEffect, and esphome::adalight::AdalightLightEffect.
Definition at line 17 of file light_effect.h.
|
inlinevirtual |
Reimplemented in esphome::light::AddressableLightEffect.
Definition at line 19 of file light_effect.h.
|
inlinevirtual |
Called when this effect is about to be removed.
Reimplemented in esphome::light::AutomationLightEffect, esphome::light::AddressableLightEffect, esphome::wled::WLEDLightEffect, esphome::e131::E131AddressableLightEffect, and esphome::adalight::AdalightLightEffect.
Definition at line 22 of file light_effect.h.
|
protected |
Definition at line 39 of file light_effect.h.
|
protected |
Definition at line 38 of file light_effect.h.