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

#include <api_pb2.h>

Inheritance diagram for esphome::api::FanCommandRequest:
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_oscillating {false}
 
bool oscillating {false}
 
bool has_direction {false}
 
enums::FanDirection direction {}
 
bool has_speed_level {false}
 
int32_t speed_level {0}
 
bool has_preset_mode {false}
 
std::string preset_mode {}
 
- 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 = 31
 
static constexpr uint8_t ESTIMATED_SIZE = 38
 

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

Member Function Documentation

◆ decode_32bit()

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

Reimplemented from esphome::api::ProtoDecodableMessage.

Definition at line 438 of file api_pb2.cpp.

◆ decode_length()

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

Reimplemented from esphome::api::ProtoDecodableMessage.

Definition at line 428 of file api_pb2.cpp.

◆ decode_varint()

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

Reimplemented from esphome::api::ProtoDecodableMessage.

Definition at line 389 of file api_pb2.cpp.

◆ dump_to()

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

Implements esphome::api::ProtoMessage.

Definition at line 860 of file api_pb2_dump.cpp.

◆ message_name()

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

Reimplemented from esphome::api::ProtoMessage.

Definition at line 746 of file api_pb2.h.

Field Documentation

◆ direction

enums::FanDirection esphome::api::FanCommandRequest::direction {}

Definition at line 753 of file api_pb2.h.

◆ ESTIMATED_SIZE

uint8_t esphome::api::FanCommandRequest::ESTIMATED_SIZE = 38
staticconstexpr

Definition at line 744 of file api_pb2.h.

◆ has_direction

bool esphome::api::FanCommandRequest::has_direction {false}

Definition at line 752 of file api_pb2.h.

◆ has_oscillating

bool esphome::api::FanCommandRequest::has_oscillating {false}

Definition at line 750 of file api_pb2.h.

◆ has_preset_mode

bool esphome::api::FanCommandRequest::has_preset_mode {false}

Definition at line 756 of file api_pb2.h.

◆ has_speed_level

bool esphome::api::FanCommandRequest::has_speed_level {false}

Definition at line 754 of file api_pb2.h.

◆ has_state

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

Definition at line 748 of file api_pb2.h.

◆ MESSAGE_TYPE

uint8_t esphome::api::FanCommandRequest::MESSAGE_TYPE = 31
staticconstexpr

Definition at line 743 of file api_pb2.h.

◆ oscillating

bool esphome::api::FanCommandRequest::oscillating {false}

Definition at line 751 of file api_pb2.h.

◆ preset_mode

std::string esphome::api::FanCommandRequest::preset_mode {}

Definition at line 757 of file api_pb2.h.

◆ speed_level

int32_t esphome::api::FanCommandRequest::speed_level {0}

Definition at line 755 of file api_pb2.h.

◆ state

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

Definition at line 749 of file api_pb2.h.


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