ESPHome 2026.1.0-dev
Loading...
Searching...
No Matches
water_heater.h File Reference

Go to the source code of this file.

Data Structures

struct  esphome::water_heater::SavedWaterHeaterState
 
class  esphome::water_heater::WaterHeaterCall
 
struct  esphome::water_heater::WaterHeaterCallInternal
 
class  esphome::water_heater::WaterHeaterTraits
 
class  esphome::water_heater::WaterHeater
 

Namespaces

namespace  esphome
 Providing packet encoding functions for exchanging data with a remote host.
 
namespace  esphome::water_heater
 

Typedefs

using esphome::water_heater::WaterHeaterModeMask
 

Enumerations

enum  esphome::water_heater::WaterHeaterMode : uint32_t {
  esphome::water_heater::WATER_HEATER_MODE_OFF = 0 , esphome::water_heater::WATER_HEATER_MODE_ECO = 1 , esphome::water_heater::WATER_HEATER_MODE_ELECTRIC = 2 , esphome::water_heater::WATER_HEATER_MODE_PERFORMANCE = 3 ,
  esphome::water_heater::WATER_HEATER_MODE_HIGH_DEMAND = 4 , esphome::water_heater::WATER_HEATER_MODE_HEAT_PUMP = 5 , esphome::water_heater::WATER_HEATER_MODE_GAS = 6
}
 
enum  esphome::water_heater::WaterHeaterFeature : uint32_t {
  esphome::water_heater::WATER_HEATER_SUPPORTS_CURRENT_TEMPERATURE = 1 << 0 , esphome::water_heater::WATER_HEATER_SUPPORTS_TARGET_TEMPERATURE = 1 << 1 , esphome::water_heater::WATER_HEATER_SUPPORTS_OPERATION_MODE = 1 << 2 , esphome::water_heater::WATER_HEATER_SUPPORTS_AWAY_MODE = 1 << 3 ,
  esphome::water_heater::WATER_HEATER_SUPPORTS_ON_OFF = 1 << 4 , esphome::water_heater::WATER_HEATER_SUPPORTS_TWO_POINT_TARGET_TEMPERATURE = 1 << 5
}
 Feature flags for water heater capabilities (matches Home Assistant WaterHeaterEntityFeature) More...
 
enum  esphome::water_heater::WaterHeaterStateFlag : uint32_t { esphome::water_heater::WATER_HEATER_STATE_AWAY = 1 << 0 , esphome::water_heater::WATER_HEATER_STATE_ON = 1 << 1 }
 State flags for water heater current state (bitmask) More...
 

Functions

void esphome::water_heater::log_water_heater (const char *tag, const char *prefix, const char *type, WaterHeater *obj)
 
struct esphome::water_heater::SavedWaterHeaterState esphome::water_heater::__attribute__ ((packed))
 
union { 
 
   float   target_temperature 
 
   struct { 
 
      float   target_temperature_low 
 
      float   target_temperature_high 
 
   }   __attribute__ 
 
__attribute__ ((packed)) 
 
const LogString * esphome::water_heater::water_heater_mode_to_string (WaterHeaterMode mode)
 Convert the given WaterHeaterMode to a human-readable string for logging.
 

Variables

float target_temperature
 
struct { 
 
   float   target_temperature_low 
 
   float   target_temperature_high 
 
};  
 
WaterHeaterMode mode
 
struct { 
 
   float   target_temperature_low 
 
   float   target_temperature_high 
 
};  
 
uint32_t state
 
class esphome::water_heater::WaterHeaterCall esphome::water_heater::__attribute__
 

Function Documentation

◆ __attribute__()

union @171 __attribute__::__attribute__ ( (packed) )

Variable Documentation

◆ [struct]

struct { ... }

◆ [struct]

struct { ... }

◆ [struct]

struct { ... } __attribute__

◆ mode

WaterHeaterMode mode

Definition at line 0 of file water_heater.h.

◆ state

uint32_t state

Definition at line 8 of file water_heater.h.

◆ target_temperature

float target_temperature

Definition at line 0 of file water_heater.h.

◆ target_temperature_high

float target_temperature_high

Definition at line 3 of file water_heater.h.

◆ target_temperature_low

float target_temperature_low

Definition at line 2 of file water_heater.h.