ESPHome 2025.6.3
Loading...
Searching...
No Matches
esphome::api::LightCommandRequest Class Reference

#include <api_pb2.h>

Inheritance diagram for esphome::api::LightCommandRequest:
esphome::api::ProtoMessage

Public Member Functions

void encode (ProtoWriteBuffer buffer) const override
 
void calculate_size (uint32_t &total_size) 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
 

Static Public Member Functions

static constexpr const char * message_name ()
 

Data Fields

uint32_t key {0}
 
bool has_state {false}
 
bool state {false}
 
bool has_brightness {false}
 
float brightness {0.0f}
 
bool has_color_mode {false}
 
enums::ColorMode color_mode {}
 
bool has_color_brightness {false}
 
float color_brightness {0.0f}
 
bool has_rgb {false}
 
float red {0.0f}
 
float green {0.0f}
 
float blue {0.0f}
 
bool has_white {false}
 
float white {0.0f}
 
bool has_color_temperature {false}
 
float color_temperature {0.0f}
 
bool has_cold_white {false}
 
float cold_white {0.0f}
 
bool has_warm_white {false}
 
float warm_white {0.0f}
 
bool has_transition_length {false}
 
uint32_t transition_length {0}
 
bool has_flash_length {false}
 
uint32_t flash_length {0}
 
bool has_effect {false}
 
std::string effect {}
 

Static Public Attributes

static constexpr uint16_t MESSAGE_TYPE = 32
 
static constexpr uint16_t ESTIMATED_SIZE = 107
 

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 751 of file api_pb2.h.

Member Function Documentation

◆ calculate_size()

void esphome::api::LightCommandRequest::calculate_size ( uint32_t & total_size) const
overridevirtual

Implements esphome::api::ProtoMessage.

Definition at line 2496 of file api_pb2.cpp.

◆ decode_32bit()

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

Reimplemented from esphome::api::ProtoMessage.

Definition at line 2421 of file api_pb2.cpp.

◆ decode_length()

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

Reimplemented from esphome::api::ProtoMessage.

Definition at line 2411 of file api_pb2.cpp.

◆ decode_varint()

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

Reimplemented from esphome::api::ProtoMessage.

Definition at line 2341 of file api_pb2.cpp.

◆ dump_to()

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

Implements esphome::api::ProtoMessage.

Definition at line 2526 of file api_pb2.cpp.

◆ encode()

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

Implements esphome::api::ProtoMessage.

Definition at line 2467 of file api_pb2.cpp.

◆ message_name()

static constexpr const char * esphome::api::LightCommandRequest::message_name ( )
inlinestaticconstexpr

Definition at line 756 of file api_pb2.h.

Field Documentation

◆ blue

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

Definition at line 770 of file api_pb2.h.

◆ brightness

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

Definition at line 762 of file api_pb2.h.

◆ cold_white

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

Definition at line 776 of file api_pb2.h.

◆ color_brightness

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

Definition at line 766 of file api_pb2.h.

◆ color_mode

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

Definition at line 764 of file api_pb2.h.

◆ color_temperature

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

Definition at line 774 of file api_pb2.h.

◆ effect

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

Definition at line 784 of file api_pb2.h.

◆ ESTIMATED_SIZE

uint16_t esphome::api::LightCommandRequest::ESTIMATED_SIZE = 107
staticconstexpr

Definition at line 754 of file api_pb2.h.

◆ flash_length

uint32_t esphome::api::LightCommandRequest::flash_length {0}

Definition at line 782 of file api_pb2.h.

◆ green

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

Definition at line 769 of file api_pb2.h.

◆ has_brightness

bool esphome::api::LightCommandRequest::has_brightness {false}

Definition at line 761 of file api_pb2.h.

◆ has_cold_white

bool esphome::api::LightCommandRequest::has_cold_white {false}

Definition at line 775 of file api_pb2.h.

◆ has_color_brightness

bool esphome::api::LightCommandRequest::has_color_brightness {false}

Definition at line 765 of file api_pb2.h.

◆ has_color_mode

bool esphome::api::LightCommandRequest::has_color_mode {false}

Definition at line 763 of file api_pb2.h.

◆ has_color_temperature

bool esphome::api::LightCommandRequest::has_color_temperature {false}

Definition at line 773 of file api_pb2.h.

◆ has_effect

bool esphome::api::LightCommandRequest::has_effect {false}

Definition at line 783 of file api_pb2.h.

◆ has_flash_length

bool esphome::api::LightCommandRequest::has_flash_length {false}

Definition at line 781 of file api_pb2.h.

◆ has_rgb

bool esphome::api::LightCommandRequest::has_rgb {false}

Definition at line 767 of file api_pb2.h.

◆ has_state

bool esphome::api::LightCommandRequest::has_state {false}

Definition at line 759 of file api_pb2.h.

◆ has_transition_length

bool esphome::api::LightCommandRequest::has_transition_length {false}

Definition at line 779 of file api_pb2.h.

◆ has_warm_white

bool esphome::api::LightCommandRequest::has_warm_white {false}

Definition at line 777 of file api_pb2.h.

◆ has_white

bool esphome::api::LightCommandRequest::has_white {false}

Definition at line 771 of file api_pb2.h.

◆ key

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

Definition at line 758 of file api_pb2.h.

◆ MESSAGE_TYPE

uint16_t esphome::api::LightCommandRequest::MESSAGE_TYPE = 32
staticconstexpr

Definition at line 753 of file api_pb2.h.

◆ red

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

Definition at line 768 of file api_pb2.h.

◆ state

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

Definition at line 760 of file api_pb2.h.

◆ transition_length

uint32_t esphome::api::LightCommandRequest::transition_length {0}

Definition at line 780 of file api_pb2.h.

◆ warm_white

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

Definition at line 778 of file api_pb2.h.

◆ white

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

Definition at line 772 of file api_pb2.h.


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