ESPHome 2026.1.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 117 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 120 of file water_heater.h.

◆ clear_feature_flags()

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

Definition at line 121 of file water_heater.h.

◆ get_feature_flags()

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

Definition at line 123 of file water_heater.h.

◆ get_max_temperature()

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

Definition at line 160 of file water_heater.h.

◆ get_min_temperature()

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

Definition at line 157 of file water_heater.h.

◆ get_supported_modes()

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

Definition at line 168 of file water_heater.h.

◆ get_supports_away_mode()

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

Definition at line 136 of file water_heater.h.

◆ get_supports_current_temperature()

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

Definition at line 125 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 145 of file water_heater.h.

◆ get_target_temperature_step()

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

Definition at line 165 of file water_heater.h.

◆ has_feature_flags()

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

Definition at line 122 of file water_heater.h.

◆ set_max_temperature()

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

Definition at line 159 of file water_heater.h.

◆ set_min_temperature()

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

Definition at line 156 of file water_heater.h.

◆ set_supported_modes()

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

Definition at line 167 of file water_heater.h.

◆ set_supports_away_mode()

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

Definition at line 137 of file water_heater.h.

◆ set_supports_current_temperature()

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

Definition at line 128 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 148 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 162 of file water_heater.h.

◆ supports_mode()

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

Definition at line 169 of file water_heater.h.

Field Documentation

◆ feature_flags_

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

Definition at line 173 of file water_heater.h.

◆ max_temperature_

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

Definition at line 175 of file water_heater.h.

◆ min_temperature_

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

Definition at line 174 of file water_heater.h.

◆ supported_modes_

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

Definition at line 177 of file water_heater.h.

◆ target_temperature_step_

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

Definition at line 176 of file water_heater.h.


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