ESPHome  2024.4.1
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 562 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 1925 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 1915 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 1901 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 1987 of file api_pb2.cpp.

◆ encode()

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

Implements esphome::api::ProtoMessage.

Definition at line 1971 of file api_pb2.cpp.

Field Documentation

◆ blue

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

Definition at line 571 of file api_pb2.h.

◆ brightness

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

Definition at line 566 of file api_pb2.h.

◆ cold_white

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

Definition at line 574 of file api_pb2.h.

◆ color_brightness

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

Definition at line 568 of file api_pb2.h.

◆ color_mode

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

Definition at line 567 of file api_pb2.h.

◆ color_temperature

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

Definition at line 573 of file api_pb2.h.

◆ effect

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

Definition at line 576 of file api_pb2.h.

◆ green

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

Definition at line 570 of file api_pb2.h.

◆ key

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

Definition at line 564 of file api_pb2.h.

◆ red

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

Definition at line 569 of file api_pb2.h.

◆ state

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

Definition at line 565 of file api_pb2.h.

◆ warm_white

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

Definition at line 575 of file api_pb2.h.

◆ white

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

Definition at line 572 of file api_pb2.h.


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