Handle to a Fan entity.
More...
#include <entity_handles.hpp>
◆ command()
| void esphome::api::FanEntity::command |
( |
FanCommand |
c | ) |
const |
|
inline |
Send a fully-specified command (its key is set automatically).
◆ direction()
◆ info()
| std::optional< FanInfo > esphome::api::FanEntity::info |
( |
| ) |
const |
|
inline |
◆ oscillating()
| bool esphome::api::FanEntity::oscillating |
( |
| ) |
const |
|
inline |
◆ preset_mode()
| std::string esphome::api::FanEntity::preset_mode |
( |
| ) |
const |
|
inline |
◆ set_power()
| void esphome::api::FanEntity::set_power |
( |
bool |
on | ) |
const |
|
inline |
Set on/off power (used by turn_on/turn_off/toggle).
◆ set_speed()
| void esphome::api::FanEntity::set_speed |
( |
std::int32_t |
level | ) |
const |
|
inline |
◆ speed_level()
| std::int32_t esphome::api::FanEntity::speed_level |
( |
| ) |
const |
|
inline |
◆ state()
| std::optional< FanState > esphome::api::FanEntity::state |
( |
| ) |
const |
|
inline |
◆ supported_preset_modes()
| std::vector< std::string > esphome::api::FanEntity::supported_preset_modes |
( |
| ) |
const |
|
inline |
◆ supported_speed_count()
| std::int32_t esphome::api::FanEntity::supported_speed_count |
( |
| ) |
const |
|
inline |
◆ supports_direction()
| bool esphome::api::FanEntity::supports_direction |
( |
| ) |
const |
|
inline |
◆ supports_oscillation()
| bool esphome::api::FanEntity::supports_oscillation |
( |
| ) |
const |
|
inline |
◆ supports_speed()
| bool esphome::api::FanEntity::supports_speed |
( |
| ) |
const |
|
inline |
◆ type()
| static constexpr EntityType esphome::api::FanEntity::type |
( |
| ) |
|
|
inlinestaticconstexpr |
The documentation for this class was generated from the following file: