ESPHome  2023.5.5
Public Member Functions | Data Fields | Protected Member Functions
esphome::api::LightCommandRequest Class Reference

#include <api_pb2.h>

Inheritance diagram for esphome::api::LightCommandRequest:

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

Member Function Documentation

◆ decode_32bit()

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

Reimplemented from esphome::api::ProtoMessage.

Definition at line 1949 of file api_pb2.cpp.

◆ decode_length()

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

Reimplemented from esphome::api::ProtoMessage.

Definition at line 1939 of file api_pb2.cpp.

◆ decode_varint()

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

Reimplemented from esphome::api::ProtoMessage.

Definition at line 1869 of file api_pb2.cpp.

◆ dump_to()

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

Implements esphome::api::ProtoMessage.

Definition at line 2025 of file api_pb2.cpp.

◆ encode()

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

Implements esphome::api::ProtoMessage.

Definition at line 1995 of file api_pb2.cpp.

Field Documentation

◆ blue

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

Definition at line 552 of file api_pb2.h.

◆ brightness

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

Definition at line 544 of file api_pb2.h.

◆ cold_white

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

Definition at line 558 of file api_pb2.h.

◆ color_brightness

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

Definition at line 548 of file api_pb2.h.

◆ color_mode

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

Definition at line 546 of file api_pb2.h.

◆ color_temperature

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

Definition at line 556 of file api_pb2.h.

◆ effect

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

Definition at line 566 of file api_pb2.h.

◆ flash_length

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

Definition at line 564 of file api_pb2.h.

◆ green

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

Definition at line 551 of file api_pb2.h.

◆ has_brightness

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

Definition at line 543 of file api_pb2.h.

◆ has_cold_white

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

Definition at line 557 of file api_pb2.h.

◆ has_color_brightness

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

Definition at line 547 of file api_pb2.h.

◆ has_color_mode

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

Definition at line 545 of file api_pb2.h.

◆ has_color_temperature

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

Definition at line 555 of file api_pb2.h.

◆ has_effect

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

Definition at line 565 of file api_pb2.h.

◆ has_flash_length

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

Definition at line 563 of file api_pb2.h.

◆ has_rgb

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

Definition at line 549 of file api_pb2.h.

◆ has_state

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

Definition at line 541 of file api_pb2.h.

◆ has_transition_length

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

Definition at line 561 of file api_pb2.h.

◆ has_warm_white

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

Definition at line 559 of file api_pb2.h.

◆ has_white

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

Definition at line 553 of file api_pb2.h.

◆ key

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

Definition at line 540 of file api_pb2.h.

◆ red

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

Definition at line 550 of file api_pb2.h.

◆ state

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

Definition at line 542 of file api_pb2.h.

◆ transition_length

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

Definition at line 562 of file api_pb2.h.

◆ warm_white

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

Definition at line 560 of file api_pb2.h.

◆ white

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

Definition at line 554 of file api_pb2.h.

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