ESPHome  2024.11.0
Public Member Functions | Data Fields | Protected Member Functions
esphome::api::LightStateResponse Class Reference

#include <api_pb2.h>

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

Public Member Functions

void encode (ProtoWriteBuffer buffer) const override
 
void dump_to (std::string &out) const override
 
- Public Member Functions inherited from esphome::api::ProtoMessage
virtual ~ProtoMessage ()=default
 
void decode (const uint8_t *buffer, size_t length)
 
std::string dump () const
 

Data Fields

uint32_t key {0}
 
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}
 
std::string effect {}
 

Protected Member Functions

bool decode_32bit (uint32_t field_id, Proto32Bit value) override
 
bool decode_length (uint32_t field_id, ProtoLengthDelimited value) override
 
bool decode_varint (uint32_t field_id, ProtoVarInt value) override
 
- Protected Member Functions inherited from esphome::api::ProtoMessage
virtual bool decode_64bit (uint32_t field_id, Proto64Bit value)
 

Detailed Description

Definition at line 582 of file api_pb2.h.

Member Function Documentation

◆ decode_32bit()

bool esphome::api::LightStateResponse::decode_32bit ( uint32_t  field_id,
Proto32Bit  value 
)
overrideprotectedvirtual

Reimplemented from esphome::api::ProtoMessage.

Definition at line 1981 of file api_pb2.cpp.

◆ decode_length()

bool esphome::api::LightStateResponse::decode_length ( uint32_t  field_id,
ProtoLengthDelimited  value 
)
overrideprotectedvirtual

Reimplemented from esphome::api::ProtoMessage.

Definition at line 1971 of file api_pb2.cpp.

◆ decode_varint()

bool esphome::api::LightStateResponse::decode_varint ( uint32_t  field_id,
ProtoVarInt  value 
)
overrideprotectedvirtual

Reimplemented from esphome::api::ProtoMessage.

Definition at line 1957 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 2043 of file api_pb2.cpp.

◆ encode()

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

Implements esphome::api::ProtoMessage.

Definition at line 2027 of file api_pb2.cpp.

Field Documentation

◆ blue

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

Definition at line 591 of file api_pb2.h.

◆ brightness

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

Definition at line 586 of file api_pb2.h.

◆ cold_white

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

Definition at line 594 of file api_pb2.h.

◆ color_brightness

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

Definition at line 588 of file api_pb2.h.

◆ color_mode

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

Definition at line 587 of file api_pb2.h.

◆ color_temperature

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

Definition at line 593 of file api_pb2.h.

◆ effect

std::string esphome::api::LightStateResponse::effect {}

Definition at line 596 of file api_pb2.h.

◆ green

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

Definition at line 590 of file api_pb2.h.

◆ key

uint32_t esphome::api::LightStateResponse::key {0}

Definition at line 584 of file api_pb2.h.

◆ red

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

Definition at line 589 of file api_pb2.h.

◆ state

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

Definition at line 585 of file api_pb2.h.

◆ warm_white

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

Definition at line 595 of file api_pb2.h.

◆ white

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

Definition at line 592 of file api_pb2.h.


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