ESPHome 2025.9.0-dev
Loading...
Searching...
No Matches
esphome::api::LightStateResponse Class Reference

#include <api_pb2.h>

Inheritance diagram for esphome::api::LightStateResponse:
esphome::api::StateResponseProtoMessage esphome::api::ProtoMessage

Public Member Functions

const char * message_name () const override
 
void set_effect (const StringRef &ref)
 
void encode (ProtoWriteBuffer buffer) const override
 
void calculate_size (ProtoSize &size) const override
 
void dump_to (std::string &out) const override
 
- Public Member Functions inherited from esphome::api::StateResponseProtoMessage
 ~StateResponseProtoMessage () override=default
 
- Public Member Functions inherited from esphome::api::ProtoMessage
virtual ~ProtoMessage ()=default
 
std::string dump () const
 

Data Fields

bool state {false}
 
float brightness {0.0f}
 
enums::ColorMode color_mode {}
 
float color_brightness {0.0f}
 
float red {0.0f}
 
float green {0.0f}
 
float blue {0.0f}
 
float white {0.0f}
 
float color_temperature {0.0f}
 
float cold_white {0.0f}
 
float warm_white {0.0f}
 
StringRef effect_ref_ {}
 
- Data Fields inherited from esphome::api::StateResponseProtoMessage
uint32_t key {0}
 
uint32_t device_id {0}
 

Static Public Attributes

static constexpr uint8_t MESSAGE_TYPE = 24
 
static constexpr uint8_t ESTIMATED_SIZE = 67
 

Detailed Description

Definition at line 788 of file api_pb2.h.

Member Function Documentation

◆ calculate_size()

void esphome::api::LightStateResponse::calculate_size ( ProtoSize & size) const
overridevirtual

Reimplemented from esphome::api::ProtoMessage.

Definition at line 514 of file api_pb2.cpp.

◆ dump_to()

void esphome::api::LightStateResponse::dump_to ( std::string & out) const
overridevirtual

Implements esphome::api::ProtoMessage.

Definition at line 901 of file api_pb2_dump.cpp.

◆ encode()

void esphome::api::LightStateResponse::encode ( ProtoWriteBuffer buffer) const
overridevirtual

Reimplemented from esphome::api::ProtoMessage.

Definition at line 496 of file api_pb2.cpp.

◆ message_name()

const char * esphome::api::LightStateResponse::message_name ( ) const
inlineoverridevirtual

Reimplemented from esphome::api::ProtoMessage.

Definition at line 793 of file api_pb2.h.

◆ set_effect()

void esphome::api::LightStateResponse::set_effect ( const StringRef & ref)
inline

Definition at line 807 of file api_pb2.h.

Field Documentation

◆ blue

float esphome::api::LightStateResponse::blue {0.0f}

Definition at line 801 of file api_pb2.h.

◆ brightness

float esphome::api::LightStateResponse::brightness {0.0f}

Definition at line 796 of file api_pb2.h.

◆ cold_white

float esphome::api::LightStateResponse::cold_white {0.0f}

Definition at line 804 of file api_pb2.h.

◆ color_brightness

float esphome::api::LightStateResponse::color_brightness {0.0f}

Definition at line 798 of file api_pb2.h.

◆ color_mode

enums::ColorMode esphome::api::LightStateResponse::color_mode {}

Definition at line 797 of file api_pb2.h.

◆ color_temperature

float esphome::api::LightStateResponse::color_temperature {0.0f}

Definition at line 803 of file api_pb2.h.

◆ effect_ref_

StringRef esphome::api::LightStateResponse::effect_ref_ {}

Definition at line 806 of file api_pb2.h.

◆ ESTIMATED_SIZE

uint8_t esphome::api::LightStateResponse::ESTIMATED_SIZE = 67
staticconstexpr

Definition at line 791 of file api_pb2.h.

◆ green

float esphome::api::LightStateResponse::green {0.0f}

Definition at line 800 of file api_pb2.h.

◆ MESSAGE_TYPE

uint8_t esphome::api::LightStateResponse::MESSAGE_TYPE = 24
staticconstexpr

Definition at line 790 of file api_pb2.h.

◆ red

float esphome::api::LightStateResponse::red {0.0f}

Definition at line 799 of file api_pb2.h.

◆ state

bool esphome::api::LightStateResponse::state {false}

Definition at line 795 of file api_pb2.h.

◆ warm_white

float esphome::api::LightStateResponse::warm_white {0.0f}

Definition at line 805 of file api_pb2.h.

◆ white

float esphome::api::LightStateResponse::white {0.0f}

Definition at line 802 of file api_pb2.h.


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