esphome-api-client 0.5.0
Modern C++17 client for the ESPHome native API (plaintext + Noise)
Loading...
Searching...
No Matches
Public Attributes | List of all members
esphome::api::FanCommand Struct Reference

A command to mutate a fan. Each optional field is sent only when engaged. More...

#include <fan.hpp>

Public Attributes

std::uint32_t key = 0
 
std::optional< bool > state
 
std::optional< bool > oscillating
 
std::optional< FanDirectiondirection
 
std::optional< std::int32_t > speed_level
 
std::optional< std::string > preset_mode
 

Detailed Description

A command to mutate a fan. Each optional field is sent only when engaged.

Member Data Documentation

◆ direction

std::optional<FanDirection> esphome::api::FanCommand::direction

◆ key

std::uint32_t esphome::api::FanCommand::key = 0

◆ oscillating

std::optional<bool> esphome::api::FanCommand::oscillating

◆ preset_mode

std::optional<std::string> esphome::api::FanCommand::preset_mode

◆ speed_level

std::optional<std::int32_t> esphome::api::FanCommand::speed_level

◆ state

std::optional<bool> esphome::api::FanCommand::state

The documentation for this struct was generated from the following file: