|
ESPHome 2026.5.0-dev
|
#include <climate_traits.h>
Public Member Functions | |
| uint32_t | get_feature_flags () const |
| Get/set feature flags (see ClimateFeatures enum in climate_mode.h) | |
| void | add_feature_flags (uint32_t feature_flags) |
| void | clear_feature_flags (uint32_t feature_flags) |
| bool | has_feature_flags (uint32_t feature_flags) const |
| void | set_feature_flags (uint32_t feature_flags) |
| ESPDEPRECATED ("This method is deprecated, use get_feature_flags() instead", "2025.11.0") bool get_supports_current_temperature() const | |
| ESPDEPRECATED ("This method is deprecated, use add_feature_flags() instead", "2025.11.0") void set_supports_current_temperature(bool supports_current_temperature) | |
| ESPDEPRECATED ("This method is deprecated, use get_feature_flags() instead", "2025.11.0") bool get_supports_current_humidity() const | |
| ESPDEPRECATED ("This method is deprecated, use add_feature_flags() instead", "2025.11.0") void set_supports_current_humidity(bool supports_current_humidity) | |
| ESPDEPRECATED ("This method is deprecated, use get_feature_flags() instead", "2025.11.0") bool get_supports_two_point_target_temperature() const | |
| ESPDEPRECATED ("This method is deprecated, use add_feature_flags() instead", "2025.11.0") void set_supports_two_point_target_temperature(bool supports_two_point_target_temperature) | |
| ESPDEPRECATED ("This method is deprecated, use get_feature_flags() instead", "2025.11.0") bool get_supports_target_humidity() const | |
| ESPDEPRECATED ("This method is deprecated, use add_feature_flags() instead", "2025.11.0") void set_supports_target_humidity(bool supports_target_humidity) | |
| ESPDEPRECATED ("This method is deprecated, use get_feature_flags() instead", "2025.11.0") bool get_supports_action() const | |
| ESPDEPRECATED ("This method is deprecated, use add_feature_flags() instead", "2025.11.0") void set_supports_action(bool supports_action) | |
| void | set_supported_modes (ClimateModeMask modes) |
| void | add_supported_mode (ClimateMode mode) |
| bool | supports_mode (ClimateMode mode) const |
| const ClimateModeMask & | get_supported_modes () const |
| void | set_supported_fan_modes (ClimateFanModeMask modes) |
| void | add_supported_fan_mode (ClimateFanMode mode) |
| bool | supports_fan_mode (ClimateFanMode fan_mode) const |
| bool | get_supports_fan_modes () const |
| const ClimateFanModeMask & | get_supported_fan_modes () const |
| ESPDEPRECATED ("Call set_supported_custom_fan_modes() on the Climate entity instead. Removed in 2026.11.0", "2026.5.0") void set_supported_custom_fan_modes(std | |
| ESPDEPRECATED ("Call set_supported_custom_fan_modes() on the Climate entity instead. Removed in 2026.11.0", "2026.5.0") void set_supported_custom_fan_modes(const std | |
| template<size_t N> | |
| ESPDEPRECATED ("Call set_supported_custom_fan_modes() on the Climate entity instead. Removed in 2026.11.0", "2026.5.0") void set_supported_custom_fan_modes(const char *const (&modes)[N]) | |
| void | set_supported_custom_fan_modes (const std::vector< std::string > &modes)=delete |
| void | set_supported_custom_fan_modes (std::initializer_list< std::string > modes)=delete |
| const std::vector< const char * > & | get_supported_custom_fan_modes () const |
| bool | supports_custom_fan_mode (const char *custom_fan_mode) const |
| bool | supports_custom_fan_mode (const std::string &custom_fan_mode) const |
| void | set_supported_presets (ClimatePresetMask presets) |
| void | add_supported_preset (ClimatePreset preset) |
| bool | supports_preset (ClimatePreset preset) const |
| bool | get_supports_presets () const |
| const ClimatePresetMask & | get_supported_presets () const |
| ESPDEPRECATED ("Call set_supported_custom_presets() on the Climate entity instead. Removed in 2026.11.0", "2026.5.0") void set_supported_custom_presets(std | |
| ESPDEPRECATED ("Call set_supported_custom_presets() on the Climate entity instead. Removed in 2026.11.0", "2026.5.0") void set_supported_custom_presets(const std | |
| template<size_t N> | |
| ESPDEPRECATED ("Call set_supported_custom_presets() on the Climate entity instead. Removed in 2026.11.0", "2026.5.0") void set_supported_custom_presets(const char *const (&presets)[N]) | |
| void | set_supported_custom_presets (const std::vector< std::string > &presets)=delete |
| void | set_supported_custom_presets (std::initializer_list< std::string > presets)=delete |
| const std::vector< const char * > & | get_supported_custom_presets () const |
| bool | supports_custom_preset (const char *custom_preset) const |
| bool | supports_custom_preset (const std::string &custom_preset) const |
| void | set_supported_swing_modes (ClimateSwingModeMask modes) |
| void | add_supported_swing_mode (ClimateSwingMode mode) |
| bool | supports_swing_mode (ClimateSwingMode swing_mode) const |
| bool | get_supports_swing_modes () const |
| const ClimateSwingModeMask & | get_supported_swing_modes () const |
| float | get_visual_min_temperature () const |
| void | set_visual_min_temperature (float visual_min_temperature) |
| float | get_visual_max_temperature () const |
| void | set_visual_max_temperature (float visual_max_temperature) |
| float | get_visual_target_temperature_step () const |
| float | get_visual_current_temperature_step () const |
| void | set_visual_target_temperature_step (float temperature_step) |
| void | set_visual_current_temperature_step (float temperature_step) |
| void | set_visual_temperature_step (float temperature_step) |
| int8_t | get_target_temperature_accuracy_decimals () const |
| int8_t | get_current_temperature_accuracy_decimals () const |
| float | get_visual_min_humidity () const |
| void | set_visual_min_humidity (float visual_min_humidity) |
| float | get_visual_max_humidity () const |
| void | set_visual_max_humidity (float visual_max_humidity) |
Protected Member Functions | |
| void | set_mode_support_ (climate::ClimateMode mode, bool supported) |
| void | set_fan_mode_support_ (climate::ClimateFanMode mode, bool supported) |
| void | set_swing_mode_support_ (climate::ClimateSwingMode mode, bool supported) |
| void | set_supported_custom_fan_modes_ (const std::vector< const char * > *modes) |
| Set custom mode pointers (only Climate::get_traits() should call these). | |
| void | set_supported_custom_presets_ (const std::vector< const char * > *presets) |
| const char * | find_custom_fan_mode_ (const char *custom_fan_mode) const |
| Find and return the matching custom fan mode pointer from supported modes, or nullptr if not found This is protected as it's an implementation detail - use Climate::find_custom_fan_mode_() instead. | |
| const char * | find_custom_fan_mode_ (const char *custom_fan_mode, size_t len) const |
| const char * | find_custom_preset_ (const char *custom_preset) const |
| Find and return the matching custom preset pointer from supported presets, or nullptr if not found This is protected as it's an implementation detail - use Climate::find_custom_preset_() instead. | |
| const char * | find_custom_preset_ (const char *custom_preset, size_t len) const |
Protected Attributes | |
| uint32_t | feature_flags_ {0} |
| float | visual_min_temperature_ {10} |
| float | visual_max_temperature_ {30} |
| float | visual_target_temperature_step_ {0.1} |
| float | visual_current_temperature_step_ {0.1} |
| float | visual_min_humidity_ {30} |
| float | visual_max_humidity_ {99} |
| climate::ClimateModeMask | supported_modes_ {climate::CLIMATE_MODE_OFF} |
| climate::ClimateFanModeMask | supported_fan_modes_ |
| climate::ClimateSwingModeMask | supported_swing_modes_ |
| climate::ClimatePresetMask | supported_presets_ |
| const std::vector< const char * > * | supported_custom_fan_modes_ {nullptr} |
| Custom mode storage - pointers to vectors owned by the Climate base class. | |
| const std::vector< const char * > * | supported_custom_presets_ {nullptr} |
| std::vector< const char * > | compat_custom_fan_modes_ |
| std::vector< const char * > | compat_custom_presets_ |
Definition at line 73 of file climate_traits.h.
|
inline |
Definition at line 79 of file climate_traits.h.
|
inline |
Definition at line 147 of file climate_traits.h.
|
inline |
Definition at line 142 of file climate_traits.h.
|
inline |
Definition at line 195 of file climate_traits.h.
|
inline |
Definition at line 232 of file climate_traits.h.
|
inline |
Definition at line 80 of file climate_traits.h.
|
inline |
Definition at line 174 of file climate_traits.h.
|
inline |
Definition at line 168 of file climate_traits.h.
|
inline |
Definition at line 162 of file climate_traits.h.
|
inline |
Definition at line 212 of file climate_traits.h.
|
inline |
Definition at line 206 of file climate_traits.h.
|
inline |
Definition at line 201 of file climate_traits.h.
|
inline |
Definition at line 132 of file climate_traits.h.
|
inline |
Definition at line 98 of file climate_traits.h.
|
inline |
Definition at line 88 of file climate_traits.h.
|
inline |
Definition at line 122 of file climate_traits.h.
|
inline |
Definition at line 110 of file climate_traits.h.
|
inline |
Definition at line 130 of file climate_traits.h.
|
inline |
Definition at line 96 of file climate_traits.h.
|
inline |
Definition at line 84 of file climate_traits.h.
|
inline |
Definition at line 120 of file climate_traits.h.
|
inline |
Definition at line 106 of file climate_traits.h.
|
inlineprotected |
Find and return the matching custom fan mode pointer from supported modes, or nullptr if not found This is protected as it's an implementation detail - use Climate::find_custom_fan_mode_() instead.
Definition at line 298 of file climate_traits.h.
|
inlineprotected |
Definition at line 301 of file climate_traits.h.
|
inlineprotected |
Find and return the matching custom preset pointer from supported presets, or nullptr if not found This is protected as it's an implementation detail - use Climate::find_custom_preset_() instead.
Definition at line 311 of file climate_traits.h.
|
inlineprotected |
Definition at line 314 of file climate_traits.h.
| int8_t esphome::climate::ClimateTraits::get_current_temperature_accuracy_decimals | ( | ) | const |
Definition at line 36 of file climate_traits.cpp.
|
inline |
Get/set feature flags (see ClimateFeatures enum in climate_mode.h)
Definition at line 78 of file climate_traits.h.
| const std::vector< const char * > & esphome::climate::ClimateTraits::get_supported_custom_fan_modes | ( | ) | const |
Definition at line 10 of file climate_traits.cpp.
| const std::vector< const char * > & esphome::climate::ClimateTraits::get_supported_custom_presets | ( | ) | const |
Definition at line 21 of file climate_traits.cpp.
|
inline |
Definition at line 159 of file climate_traits.h.
|
inline |
Definition at line 144 of file climate_traits.h.
|
inline |
Definition at line 198 of file climate_traits.h.
|
inline |
Definition at line 235 of file climate_traits.h.
|
inline |
Definition at line 149 of file climate_traits.h.
|
inline |
Definition at line 197 of file climate_traits.h.
|
inline |
Definition at line 234 of file climate_traits.h.
| int8_t esphome::climate::ClimateTraits::get_target_temperature_accuracy_decimals | ( | ) | const |
Definition at line 32 of file climate_traits.cpp.
|
inline |
Definition at line 246 of file climate_traits.h.
|
inline |
Definition at line 262 of file climate_traits.h.
|
inline |
Definition at line 241 of file climate_traits.h.
|
inline |
Definition at line 260 of file climate_traits.h.
|
inline |
Definition at line 237 of file climate_traits.h.
|
inline |
Definition at line 245 of file climate_traits.h.
|
inline |
Definition at line 81 of file climate_traits.h.
|
inlineprotected |
Definition at line 273 of file climate_traits.h.
|
inline |
Definition at line 82 of file climate_traits.h.
|
inlineprotected |
Definition at line 266 of file climate_traits.h.
|
delete |
|
delete |
|
inlineprotected |
Set custom mode pointers (only Climate::get_traits() should call these).
Definition at line 289 of file climate_traits.h.
|
delete |
|
delete |
|
inlineprotected |
Definition at line 292 of file climate_traits.h.
|
inline |
Definition at line 146 of file climate_traits.h.
|
inline |
Definition at line 141 of file climate_traits.h.
|
inline |
Definition at line 194 of file climate_traits.h.
|
inline |
Definition at line 231 of file climate_traits.h.
|
inlineprotected |
Definition at line 280 of file climate_traits.h.
|
inline |
Definition at line 250 of file climate_traits.h.
|
inline |
Definition at line 263 of file climate_traits.h.
|
inline |
Definition at line 242 of file climate_traits.h.
|
inline |
Definition at line 261 of file climate_traits.h.
|
inline |
Definition at line 238 of file climate_traits.h.
|
inline |
Definition at line 247 of file climate_traits.h.
|
inline |
Definition at line 253 of file climate_traits.h.
|
inline |
Definition at line 185 of file climate_traits.h.
|
inline |
Definition at line 190 of file climate_traits.h.
|
inline |
Definition at line 223 of file climate_traits.h.
|
inline |
Definition at line 227 of file climate_traits.h.
|
inline |
Definition at line 148 of file climate_traits.h.
|
inline |
Definition at line 143 of file climate_traits.h.
|
inline |
Definition at line 196 of file climate_traits.h.
|
inline |
Definition at line 233 of file climate_traits.h.
|
protected |
Definition at line 344 of file climate_traits.h.
|
protected |
Definition at line 345 of file climate_traits.h.
|
protected |
Definition at line 322 of file climate_traits.h.
|
protected |
Custom mode storage - pointers to vectors owned by the Climate base class.
ClimateTraits does not own this data; Climate stores the vectors and get_traits() wires these pointers automatically.
Definition at line 340 of file climate_traits.h.
|
protected |
Definition at line 341 of file climate_traits.h.
|
protected |
Definition at line 331 of file climate_traits.h.
|
protected |
Definition at line 330 of file climate_traits.h.
|
protected |
Definition at line 333 of file climate_traits.h.
|
protected |
Definition at line 332 of file climate_traits.h.
|
protected |
Definition at line 326 of file climate_traits.h.
|
protected |
Definition at line 328 of file climate_traits.h.
|
protected |
Definition at line 324 of file climate_traits.h.
|
protected |
Definition at line 327 of file climate_traits.h.
|
protected |
Definition at line 323 of file climate_traits.h.
|
protected |
Definition at line 325 of file climate_traits.h.