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

#include <api_pb2.h>

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

Public Member Functions

const char * message_name () const override
 
void dump_to (std::string &out) const override
 
- Public Member Functions inherited from esphome::api::CommandProtoMessage
 ~CommandProtoMessage () override=default
 
- 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
virtual ~ProtoMessage ()=default
 
virtual void encode (ProtoWriteBuffer buffer) const
 
virtual void calculate_size (ProtoSize &size) const
 
std::string dump () 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}
 
std::string 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, ProtoVarInt value) override
 
- Protected Member Functions inherited from esphome::api::ProtoDecodableMessage

Detailed Description

Definition at line 816 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 602 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 592 of file api_pb2.cpp.

◆ decode_varint()

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

Reimplemented from esphome::api::ProtoDecodableMessage.

Definition at line 532 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 920 of file api_pb2_dump.cpp.

◆ message_name()

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

Reimplemented from esphome::api::ProtoMessage.

Definition at line 821 of file api_pb2.h.

Field Documentation

◆ blue

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

Definition at line 834 of file api_pb2.h.

◆ brightness

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

Definition at line 826 of file api_pb2.h.

◆ cold_white

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

Definition at line 840 of file api_pb2.h.

◆ color_brightness

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

Definition at line 830 of file api_pb2.h.

◆ color_mode

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

Definition at line 828 of file api_pb2.h.

◆ color_temperature

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

Definition at line 838 of file api_pb2.h.

◆ effect

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

Definition at line 848 of file api_pb2.h.

◆ ESTIMATED_SIZE

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

Definition at line 819 of file api_pb2.h.

◆ flash_length

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

Definition at line 846 of file api_pb2.h.

◆ green

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

Definition at line 833 of file api_pb2.h.

◆ has_brightness

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

Definition at line 825 of file api_pb2.h.

◆ has_cold_white

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

Definition at line 839 of file api_pb2.h.

◆ has_color_brightness

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

Definition at line 829 of file api_pb2.h.

◆ has_color_mode

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

Definition at line 827 of file api_pb2.h.

◆ has_color_temperature

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

Definition at line 837 of file api_pb2.h.

◆ has_effect

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

Definition at line 847 of file api_pb2.h.

◆ has_flash_length

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

Definition at line 845 of file api_pb2.h.

◆ has_rgb

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

Definition at line 831 of file api_pb2.h.

◆ has_state

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

Definition at line 823 of file api_pb2.h.

◆ has_transition_length

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

Definition at line 843 of file api_pb2.h.

◆ has_warm_white

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

Definition at line 841 of file api_pb2.h.

◆ has_white

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

Definition at line 835 of file api_pb2.h.

◆ MESSAGE_TYPE

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

Definition at line 818 of file api_pb2.h.

◆ red

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

Definition at line 832 of file api_pb2.h.

◆ state

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

Definition at line 824 of file api_pb2.h.

◆ transition_length

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

Definition at line 844 of file api_pb2.h.

◆ warm_white

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

Definition at line 842 of file api_pb2.h.

◆ white

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

Definition at line 836 of file api_pb2.h.


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