ESPHome 2026.3.0-dev
Loading...
Searching...
No Matches
esphome::water_heater::WaterHeaterTraits Class Reference

#include <water_heater.h>

Public Member Functions

void add_feature_flags (uint32_t flags)
 Get/set feature flags (see WaterHeaterFeature enum)
 
void clear_feature_flags (uint32_t flags)
 
bool has_feature_flags (uint32_t flags) const
 
uint32_t get_feature_flags () const
 
bool get_supports_current_temperature () const
 
void set_supports_current_temperature (bool supports)
 
bool get_supports_away_mode () const
 
void set_supports_away_mode (bool supports)
 
bool get_supports_two_point_target_temperature () const
 
void set_supports_two_point_target_temperature (bool supports)
 
void set_min_temperature (float min_temperature)
 
float get_min_temperature () const
 
void set_max_temperature (float max_temperature)
 
float get_max_temperature () const
 
void set_target_temperature_step (float target_temperature_step)
 
float get_target_temperature_step () const
 
void set_supported_modes (WaterHeaterModeMask modes)
 
const WaterHeaterModeMaskget_supported_modes () const
 
bool supports_mode (WaterHeaterMode mode) const
 

Protected Attributes

uint32_t feature_flags_ {0}
 
float min_temperature_ {0.0f}
 
float max_temperature_ {0.0f}
 
float target_temperature_step_ {0.0f}
 
WaterHeaterModeMask supported_modes_
 

Detailed Description

Definition at line 135 of file water_heater.h.

Member Function Documentation

◆ add_feature_flags()

void esphome::water_heater::WaterHeaterTraits::add_feature_flags ( uint32_t flags)
inline

Get/set feature flags (see WaterHeaterFeature enum)

Definition at line 138 of file water_heater.h.

◆ clear_feature_flags()

void esphome::water_heater::WaterHeaterTraits::clear_feature_flags ( uint32_t flags)
inline

Definition at line 139 of file water_heater.h.

◆ get_feature_flags()

uint32_t esphome::water_heater::WaterHeaterTraits::get_feature_flags ( ) const
inline

Definition at line 141 of file water_heater.h.

◆ get_max_temperature()

float esphome::water_heater::WaterHeaterTraits::get_max_temperature ( ) const
inline

Definition at line 178 of file water_heater.h.

◆ get_min_temperature()

float esphome::water_heater::WaterHeaterTraits::get_min_temperature ( ) const
inline

Definition at line 175 of file water_heater.h.

◆ get_supported_modes()

const WaterHeaterModeMask & esphome::water_heater::WaterHeaterTraits::get_supported_modes ( ) const
inline

Definition at line 186 of file water_heater.h.

◆ get_supports_away_mode()

bool esphome::water_heater::WaterHeaterTraits::get_supports_away_mode ( ) const
inline

Definition at line 154 of file water_heater.h.

◆ get_supports_current_temperature()

bool esphome::water_heater::WaterHeaterTraits::get_supports_current_temperature ( ) const
inline

Definition at line 143 of file water_heater.h.

◆ get_supports_two_point_target_temperature()

bool esphome::water_heater::WaterHeaterTraits::get_supports_two_point_target_temperature ( ) const
inline

Definition at line 163 of file water_heater.h.

◆ get_target_temperature_step()

float esphome::water_heater::WaterHeaterTraits::get_target_temperature_step ( ) const
inline

Definition at line 183 of file water_heater.h.

◆ has_feature_flags()

bool esphome::water_heater::WaterHeaterTraits::has_feature_flags ( uint32_t flags) const
inline

Definition at line 140 of file water_heater.h.

◆ set_max_temperature()

void esphome::water_heater::WaterHeaterTraits::set_max_temperature ( float max_temperature)
inline

Definition at line 177 of file water_heater.h.

◆ set_min_temperature()

void esphome::water_heater::WaterHeaterTraits::set_min_temperature ( float min_temperature)
inline

Definition at line 174 of file water_heater.h.

◆ set_supported_modes()

void esphome::water_heater::WaterHeaterTraits::set_supported_modes ( WaterHeaterModeMask modes)
inline

Definition at line 185 of file water_heater.h.

◆ set_supports_away_mode()

void esphome::water_heater::WaterHeaterTraits::set_supports_away_mode ( bool supports)
inline

Definition at line 155 of file water_heater.h.

◆ set_supports_current_temperature()

void esphome::water_heater::WaterHeaterTraits::set_supports_current_temperature ( bool supports)
inline

Definition at line 146 of file water_heater.h.

◆ set_supports_two_point_target_temperature()

void esphome::water_heater::WaterHeaterTraits::set_supports_two_point_target_temperature ( bool supports)
inline

Definition at line 166 of file water_heater.h.

◆ set_target_temperature_step()

void esphome::water_heater::WaterHeaterTraits::set_target_temperature_step ( float target_temperature_step)
inline

Definition at line 180 of file water_heater.h.

◆ supports_mode()

bool esphome::water_heater::WaterHeaterTraits::supports_mode ( WaterHeaterMode mode) const
inline

Definition at line 187 of file water_heater.h.

Field Documentation

◆ feature_flags_

uint32_t esphome::water_heater::WaterHeaterTraits::feature_flags_ {0}
protected

Definition at line 191 of file water_heater.h.

◆ max_temperature_

float esphome::water_heater::WaterHeaterTraits::max_temperature_ {0.0f}
protected

Definition at line 193 of file water_heater.h.

◆ min_temperature_

float esphome::water_heater::WaterHeaterTraits::min_temperature_ {0.0f}
protected

Definition at line 192 of file water_heater.h.

◆ supported_modes_

WaterHeaterModeMask esphome::water_heater::WaterHeaterTraits::supported_modes_
protected

Definition at line 195 of file water_heater.h.

◆ target_temperature_step_

float esphome::water_heater::WaterHeaterTraits::target_temperature_step_ {0.0f}
protected

Definition at line 194 of file water_heater.h.


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