ESPHome  2024.11.0
Public Member Functions | Data Fields | Protected Member Functions
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 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 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 {}
 

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 607 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::ProtoMessage.

Definition at line 2190 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 2180 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 2110 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 2266 of file api_pb2.cpp.

◆ encode()

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

Implements esphome::api::ProtoMessage.

Definition at line 2236 of file api_pb2.cpp.

Field Documentation

◆ blue

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

Definition at line 621 of file api_pb2.h.

◆ brightness

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

Definition at line 613 of file api_pb2.h.

◆ cold_white

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

Definition at line 627 of file api_pb2.h.

◆ color_brightness

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

Definition at line 617 of file api_pb2.h.

◆ color_mode

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

Definition at line 615 of file api_pb2.h.

◆ color_temperature

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

Definition at line 625 of file api_pb2.h.

◆ effect

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

Definition at line 635 of file api_pb2.h.

◆ flash_length

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

Definition at line 633 of file api_pb2.h.

◆ green

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

Definition at line 620 of file api_pb2.h.

◆ has_brightness

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

Definition at line 612 of file api_pb2.h.

◆ has_cold_white

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

Definition at line 626 of file api_pb2.h.

◆ has_color_brightness

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

Definition at line 616 of file api_pb2.h.

◆ has_color_mode

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

Definition at line 614 of file api_pb2.h.

◆ has_color_temperature

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

Definition at line 624 of file api_pb2.h.

◆ has_effect

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

Definition at line 634 of file api_pb2.h.

◆ has_flash_length

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

Definition at line 632 of file api_pb2.h.

◆ has_rgb

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

Definition at line 618 of file api_pb2.h.

◆ has_state

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

Definition at line 610 of file api_pb2.h.

◆ has_transition_length

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

Definition at line 630 of file api_pb2.h.

◆ has_warm_white

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

Definition at line 628 of file api_pb2.h.

◆ has_white

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

Definition at line 622 of file api_pb2.h.

◆ key

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

Definition at line 609 of file api_pb2.h.

◆ red

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

Definition at line 619 of file api_pb2.h.

◆ state

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

Definition at line 611 of file api_pb2.h.

◆ transition_length

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

Definition at line 631 of file api_pb2.h.

◆ warm_white

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

Definition at line 629 of file api_pb2.h.

◆ white

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

Definition at line 623 of file api_pb2.h.


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