ESPHome 2026.8.2
Loading...
Searching...
No Matches
esphome::api::LightCommandRequest Class Referencefinal

#include <api_pb2.h>

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

Public Member Functions

const LogString * message_name () const override
 
const char * dump_to (DumpBuffer &out) const override
 
- Public Member Functions inherited from esphome::api::ProtoDecodableMessage
void decode (const uint8_t *buffer, size_t length)
 
- Public Member Functions inherited from esphome::api::ProtoMessage
uint8_t * encode (ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
 
uint32_t calculate_size () const
 

Data Fields

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}
 
StringRef effect {}
 
- Data Fields inherited from esphome::api::CommandProtoMessage
uint32_t key {0}
 
uint32_t device_id {0}
 

Static Public Attributes

static constexpr uint8_t MESSAGE_TYPE = 32
 
static constexpr uint8_t ESTIMATED_SIZE = 112
 

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, proto_varint_value_t value) override
 
- Protected Member Functions inherited from esphome::api::CommandProtoMessage
 ~CommandProtoMessage ()=default
 
- Protected Member Functions inherited from esphome::api::ProtoDecodableMessage
 ~ProtoDecodableMessage ()=default
 
- Protected Member Functions inherited from esphome::api::ProtoMessage
 ~ProtoMessage ()=default
 

Additional Inherited Members

- Static Public Member Functions inherited from esphome::api::ProtoDecodableMessage
static uint32_t count_repeated_field (const uint8_t *buffer, size_t length, uint32_t target_field_id)
 Count occurrences of a repeated field in a protobuf buffer.
 

Detailed Description

Definition at line 897 of file api_pb2.h.

Member Function Documentation

◆ decode_32bit()

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

Reimplemented from esphome::api::ProtoDecodableMessage.

Definition at line 771 of file api_pb2.cpp.

◆ decode_length()

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

Reimplemented from esphome::api::ProtoDecodableMessage.

Definition at line 760 of file api_pb2.cpp.

◆ decode_varint()

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

Reimplemented from esphome::api::ProtoDecodableMessage.

Definition at line 700 of file api_pb2.cpp.

◆ dump_to()

const char * esphome::api::LightCommandRequest::dump_to ( DumpBuffer & out) const
overridevirtual

Implements esphome::api::ProtoMessage.

Definition at line 1220 of file api_pb2_dump.cpp.

◆ message_name()

const LogString * esphome::api::LightCommandRequest::message_name ( ) const
inlineoverridevirtual

Reimplemented from esphome::api::ProtoMessage.

Definition at line 902 of file api_pb2.h.

Field Documentation

◆ blue

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

Definition at line 915 of file api_pb2.h.

◆ brightness

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

Definition at line 907 of file api_pb2.h.

◆ cold_white

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

Definition at line 921 of file api_pb2.h.

◆ color_brightness

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

Definition at line 911 of file api_pb2.h.

◆ color_mode

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

Definition at line 909 of file api_pb2.h.

◆ color_temperature

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

Definition at line 919 of file api_pb2.h.

◆ effect

StringRef esphome::api::LightCommandRequest::effect {}

Definition at line 929 of file api_pb2.h.

◆ ESTIMATED_SIZE

uint8_t esphome::api::LightCommandRequest::ESTIMATED_SIZE = 112
staticconstexpr

Definition at line 900 of file api_pb2.h.

◆ flash_length

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

Definition at line 927 of file api_pb2.h.

◆ green

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

Definition at line 914 of file api_pb2.h.

◆ has_brightness

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

Definition at line 906 of file api_pb2.h.

◆ has_cold_white

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

Definition at line 920 of file api_pb2.h.

◆ has_color_brightness

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

Definition at line 910 of file api_pb2.h.

◆ has_color_mode

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

Definition at line 908 of file api_pb2.h.

◆ has_color_temperature

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

Definition at line 918 of file api_pb2.h.

◆ has_effect

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

Definition at line 928 of file api_pb2.h.

◆ has_flash_length

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

Definition at line 926 of file api_pb2.h.

◆ has_rgb

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

Definition at line 912 of file api_pb2.h.

◆ has_state

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

Definition at line 904 of file api_pb2.h.

◆ has_transition_length

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

Definition at line 924 of file api_pb2.h.

◆ has_warm_white

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

Definition at line 922 of file api_pb2.h.

◆ has_white

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

Definition at line 916 of file api_pb2.h.

◆ MESSAGE_TYPE

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

Definition at line 899 of file api_pb2.h.

◆ red

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

Definition at line 913 of file api_pb2.h.

◆ state

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

Definition at line 905 of file api_pb2.h.

◆ transition_length

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

Definition at line 925 of file api_pb2.h.

◆ warm_white

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

Definition at line 923 of file api_pb2.h.

◆ white

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

Definition at line 917 of file api_pb2.h.


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