ESPHome  2022.9.1
Public Member Functions | Data Fields | Protected Member Functions
esphome::api::LightStateResponse Class Reference

#include <api_pb2.h>

Inheritance diagram for esphome::api::LightStateResponse:
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 state {false}
 
float brightness {0.0f}
 
enums::ColorMode color_mode {}
 
float color_brightness {0.0f}
 
float red {0.0f}
 
float green {0.0f}
 
float blue {0.0f}
 
float white {0.0f}
 
float color_temperature {0.0f}
 
float cold_white {0.0f}
 
float warm_white {0.0f}
 
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 485 of file api_pb2.h.

Member Function Documentation

◆ decode_32bit()

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

Reimplemented from esphome::api::ProtoMessage.

Definition at line 1581 of file api_pb2.cpp.

◆ decode_length()

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

Reimplemented from esphome::api::ProtoMessage.

Definition at line 1571 of file api_pb2.cpp.

◆ decode_varint()

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

Reimplemented from esphome::api::ProtoMessage.

Definition at line 1557 of file api_pb2.cpp.

◆ dump_to()

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

Implements esphome::api::ProtoMessage.

Definition at line 1643 of file api_pb2.cpp.

◆ encode()

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

Implements esphome::api::ProtoMessage.

Definition at line 1627 of file api_pb2.cpp.

Field Documentation

◆ blue

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

Definition at line 494 of file api_pb2.h.

◆ brightness

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

Definition at line 489 of file api_pb2.h.

◆ cold_white

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

Definition at line 497 of file api_pb2.h.

◆ color_brightness

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

Definition at line 491 of file api_pb2.h.

◆ color_mode

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

Definition at line 490 of file api_pb2.h.

◆ color_temperature

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

Definition at line 496 of file api_pb2.h.

◆ effect

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

Definition at line 499 of file api_pb2.h.

◆ green

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

Definition at line 493 of file api_pb2.h.

◆ key

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

Definition at line 487 of file api_pb2.h.

◆ red

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

Definition at line 492 of file api_pb2.h.

◆ state

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

Definition at line 488 of file api_pb2.h.

◆ warm_white

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

Definition at line 498 of file api_pb2.h.

◆ white

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

Definition at line 495 of file api_pb2.h.


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