5#include <initializer_list>
41 ESPDEPRECATED(
"Call set_supported_preset_modes() on the Fan entity instead. Removed in 2026.11.0",
"2026.5.0")
47 ESPDEPRECATED(
"Call set_supported_preset_modes() on the Fan entity instead. Removed in 2026.11.0",
"2026.5.0")
74 for (
const char *
mode : modes) {
BedjetMode mode
BedJet operating mode.
void set_direction(bool direction)
Set whether this fan supports changing direction.
bool supports_preset_modes() const
Return if preset modes are supported.
void set_speed(bool speed)
Set whether this fan supports speed levels.
int supported_speed_count() const
Return how many speed levels the fan has.
const char * find_preset_mode(const char *preset_mode, size_t len) const
std::vector< const char * > compat_preset_modes_
void set_supported_preset_modes_(const std::vector< const char * > *preset_modes)
Set the preset modes pointer (only Fan::wire_preset_modes_() should call this).
void set_supported_speed_count(int speed_count)
Set how many speed levels this fan has.
const std::vector< const char * > * preset_modes_
bool supports_direction() const
Return if this fan supports changing direction.
void set_oscillation(bool oscillation)
Set whether this fan supports oscillation.
void set_supported_preset_modes(const std::vector< std::string > &preset_modes)=delete
bool supports_speed() const
Return if this fan supports speed modes.
FanTraits(bool oscillation, bool speed, bool direction, int speed_count)
void set_supported_preset_modes(std::initializer_list< std::string > preset_modes)=delete
ESPDEPRECATED("Call set_supported_preset_modes() on the Fan entity instead. Removed in 2026.11.0", "2026.5.0") void set_supported_preset_modes(const std
const std::vector< const char * > & supported_preset_modes() const
ESPDEPRECATED("Call set_supported_preset_modes() on the Fan entity instead. Removed in 2026.11.0", "2026.5.0") void set_supported_preset_modes(std
const char * find_preset_mode(const char *preset_mode) const
Find and return the matching preset mode pointer from supported modes, or nullptr if not found.
bool supports_oscillation() const
Return if this fan supports oscillation.
Providing packet encoding functions for exchanging data with a remote host.