|
ESPHome 2026.1.0-dev
|
#include <thermostat_climate.h>
Public Types | |
| using | PresetEntry = ThermostatPresetEntry |
| using | CustomPresetEntry = ThermostatCustomPresetEntry |
Public Member Functions | |
| ThermostatClimate () | |
| void | setup () override |
| void | dump_config () override |
| void | loop () override |
| void | set_default_preset (const char *custom_preset) |
| void | set_default_preset (climate::ClimatePreset preset) |
| void | set_on_boot_restore_from (OnBootRestoreFrom on_boot_restore_from) |
| void | set_set_point_minimum_differential (float differential) |
| void | set_cool_deadband (float deadband) |
| void | set_cool_overrun (float overrun) |
| void | set_heat_deadband (float deadband) |
| void | set_heat_overrun (float overrun) |
| void | set_supplemental_cool_delta (float delta) |
| void | set_supplemental_heat_delta (float delta) |
| void | set_cooling_maximum_run_time_in_sec (uint32_t time) |
| void | set_heating_maximum_run_time_in_sec (uint32_t time) |
| void | set_cooling_minimum_off_time_in_sec (uint32_t time) |
| void | set_cooling_minimum_run_time_in_sec (uint32_t time) |
| void | set_fan_mode_minimum_switching_time_in_sec (uint32_t time) |
| void | set_fanning_minimum_off_time_in_sec (uint32_t time) |
| void | set_fanning_minimum_run_time_in_sec (uint32_t time) |
| void | set_heating_minimum_off_time_in_sec (uint32_t time) |
| void | set_heating_minimum_run_time_in_sec (uint32_t time) |
| void | set_idle_minimum_time_in_sec (uint32_t time) |
| void | set_sensor (sensor::Sensor *sensor) |
| void | set_humidity_sensor (sensor::Sensor *humidity_sensor) |
| void | set_humidity_hysteresis (float humidity_hysteresis) |
| void | set_use_startup_delay (bool use_startup_delay) |
| void | set_supports_auto (bool supports_auto) |
| void | set_supports_heat_cool (bool supports_heat_cool) |
| void | set_supports_cool (bool supports_cool) |
| void | set_supports_dry (bool supports_dry) |
| void | set_supports_fan_only (bool supports_fan_only) |
| void | set_supports_fan_only_action_uses_fan_mode_timer (bool fan_only_action_uses_fan_mode_timer) |
| void | set_supports_fan_only_cooling (bool supports_fan_only_cooling) |
| void | set_supports_fan_with_cooling (bool supports_fan_with_cooling) |
| void | set_supports_fan_with_heating (bool supports_fan_with_heating) |
| void | set_supports_heat (bool supports_heat) |
| void | set_supports_fan_mode_on (bool supports_fan_mode_on) |
| void | set_supports_fan_mode_off (bool supports_fan_mode_off) |
| void | set_supports_fan_mode_auto (bool supports_fan_mode_auto) |
| void | set_supports_fan_mode_low (bool supports_fan_mode_low) |
| void | set_supports_fan_mode_medium (bool supports_fan_mode_medium) |
| void | set_supports_fan_mode_high (bool supports_fan_mode_high) |
| void | set_supports_fan_mode_middle (bool supports_fan_mode_middle) |
| void | set_supports_fan_mode_focus (bool supports_fan_mode_focus) |
| void | set_supports_fan_mode_diffuse (bool supports_fan_mode_diffuse) |
| void | set_supports_fan_mode_quiet (bool supports_fan_mode_quiet) |
| void | set_supports_swing_mode_both (bool supports_swing_mode_both) |
| void | set_supports_swing_mode_horizontal (bool supports_swing_mode_horizontal) |
| void | set_supports_swing_mode_off (bool supports_swing_mode_off) |
| void | set_supports_swing_mode_vertical (bool supports_swing_mode_vertical) |
| void | set_supports_dehumidification (bool supports_dehumidification) |
| void | set_supports_humidification (bool supports_humidification) |
| void | set_supports_two_points (bool supports_two_points) |
| void | set_preset_config (std::initializer_list< PresetEntry > presets) |
| void | set_custom_preset_config (std::initializer_list< CustomPresetEntry > presets) |
| Trigger * | get_cool_action_trigger () const |
| Trigger * | get_supplemental_cool_action_trigger () const |
| Trigger * | get_dry_action_trigger () const |
| Trigger * | get_fan_only_action_trigger () const |
| Trigger * | get_heat_action_trigger () const |
| Trigger * | get_supplemental_heat_action_trigger () const |
| Trigger * | get_idle_action_trigger () const |
| Trigger * | get_auto_mode_trigger () const |
| Trigger * | get_cool_mode_trigger () const |
| Trigger * | get_dry_mode_trigger () const |
| Trigger * | get_fan_only_mode_trigger () const |
| Trigger * | get_heat_mode_trigger () const |
| Trigger * | get_heat_cool_mode_trigger () const |
| Trigger * | get_off_mode_trigger () const |
| Trigger * | get_fan_mode_on_trigger () const |
| Trigger * | get_fan_mode_off_trigger () const |
| Trigger * | get_fan_mode_auto_trigger () const |
| Trigger * | get_fan_mode_low_trigger () const |
| Trigger * | get_fan_mode_medium_trigger () const |
| Trigger * | get_fan_mode_high_trigger () const |
| Trigger * | get_fan_mode_middle_trigger () const |
| Trigger * | get_fan_mode_focus_trigger () const |
| Trigger * | get_fan_mode_diffuse_trigger () const |
| Trigger * | get_fan_mode_quiet_trigger () const |
| Trigger * | get_swing_mode_both_trigger () const |
| Trigger * | get_swing_mode_horizontal_trigger () const |
| Trigger * | get_swing_mode_off_trigger () const |
| Trigger * | get_swing_mode_vertical_trigger () const |
| Trigger * | get_humidity_change_trigger () const |
| Trigger * | get_temperature_change_trigger () const |
| Trigger * | get_preset_change_trigger () const |
| Trigger * | get_humidity_control_dehumidify_action_trigger () const |
| Trigger * | get_humidity_control_humidify_action_trigger () const |
| Trigger * | get_humidity_control_off_action_trigger () const |
| float | cool_deadband () |
| Get current hysteresis values. | |
| float | cool_overrun () |
| float | heat_deadband () |
| float | heat_overrun () |
| void | refresh () |
| Call triggers based on updated climate states (modes/actions) | |
| bool | climate_action_change_delayed () |
| Returns true if a climate action/fan mode transition is being delayed. | |
| bool | fan_mode_change_delayed () |
| climate::ClimateAction | delayed_climate_action () |
| Returns the climate action that is being delayed (check climate_action_change_delayed(), first!) | |
| climate::ClimateFanMode | locked_fan_mode () |
| Returns the fan mode that is locked in (check fan_mode_change_delayed(), first!) | |
| bool | hysteresis_valid () |
| Set point and hysteresis validation. | |
| bool | humidity_hysteresis_valid () |
| bool | limit_setpoints_for_heat_cool () |
| void | validate_target_temperature () |
| void | validate_target_temperatures (bool pin_target_temperature_high) |
| void | validate_target_temperature_low () |
| void | validate_target_temperature_high () |
| void | validate_target_humidity () |
Public Member Functions inherited from esphome::climate::Climate | |
| Climate () | |
| void | add_on_state_callback (std::function< void(Climate &)> &&callback) |
| Add a callback for the climate device state, each time the state of the climate device is updated (using publish_state), this callback will be called. | |
| void | add_on_control_callback (std::function< void(ClimateCall &)> &&callback) |
| Add a callback for the climate device configuration; each time the configuration parameters of a climate device is updated (using perform() of a ClimateCall), this callback will be called, before any on_state callback. | |
| ClimateCall | make_call () |
| Make a climate device control call, this is used to control the climate device, see the ClimateCall description for more info. | |
| void | publish_state () |
| Publish the state of the climate device, to be called from integrations. | |
| ClimateTraits | get_traits () |
| Get the traits of this climate device with all overrides applied. | |
| void | set_visual_min_temperature_override (float visual_min_temperature_override) |
| void | set_visual_max_temperature_override (float visual_max_temperature_override) |
| void | set_visual_temperature_step_override (float target, float current) |
| void | set_visual_min_humidity_override (float visual_min_humidity_override) |
| void | set_visual_max_humidity_override (float visual_max_humidity_override) |
| bool | has_custom_fan_mode () const |
| Check if a custom fan mode is currently active. | |
| bool | has_custom_preset () const |
| Check if a custom preset is currently active. | |
| const char * | get_custom_fan_mode () const |
| Get the active custom fan mode (read-only access). | |
| const char * | get_custom_preset () const |
| Get the active custom preset (read-only access). | |
Public Member Functions inherited from esphome::EntityBase | |
| const StringRef & | get_name () const |
| void | set_name (const char *name) |
| bool | has_own_name () const |
| ESPDEPRECATED("object_id mangles names and all object_id methods are planned for removal " "(see https://github.com/esphome/backlog/issues/76). " "Now is the time to stop using object_id. If still needed, use get_object_id_to() " "which will remain available longer. get_object_id() will be removed in 2026.7.0", "2025.12.0") std void | set_object_id (const char *object_id) |
| void | set_name_and_object_id (const char *name, const char *object_id) |
| uint32_t | get_object_id_hash () |
| StringRef | get_object_id_to (std::span< char, OBJECT_ID_MAX_LEN > buf) const |
| Get object_id with zero heap allocation For static case: returns StringRef to internal storage (buffer unused) For dynamic case: formats into buffer and returns StringRef to buffer. | |
| size_t | write_object_id_to (char *buf, size_t buf_size) const |
| Write object_id directly to buffer, returns length written (excluding null) Useful for building compound strings without intermediate buffer. | |
| bool | is_internal () const |
| void | set_internal (bool internal) |
| bool | is_disabled_by_default () const |
| void | set_disabled_by_default (bool disabled_by_default) |
| EntityCategory | get_entity_category () const |
| void | set_entity_category (EntityCategory entity_category) |
| ESPDEPRECATED("Use get_icon_ref() instead for better performance (avoids string copy). Will be removed in ESPHome 2026.5.0", "2025.11.0") std void | set_icon (const char *icon) |
| StringRef | get_icon_ref () const |
| uint32_t | get_device_id () const |
| void | set_device (Device *device) |
| bool | has_state () const |
| void | set_has_state (bool state) |
| uint32_t | get_preference_hash () |
| Get a unique hash for storing preferences/settings for this entity. | |
Public Member Functions inherited from esphome::Component | |
| virtual float | get_setup_priority () const |
| priority of setup(). | |
| float | get_actual_setup_priority () const |
| void | set_setup_priority (float priority) |
| virtual float | get_loop_priority () const |
| priority of loop(). | |
| void | call () |
| virtual void | on_shutdown () |
| virtual void | on_safe_shutdown () |
| virtual bool | teardown () |
| Called during teardown to allow component to gracefully finish operations. | |
| virtual void | on_powerdown () |
| Called after teardown is complete to power down hardware. | |
| uint8_t | get_component_state () const |
| void | reset_to_construction_state () |
| Reset this component back to the construction state to allow setup to run again. | |
| bool | is_in_loop_state () const |
| Check if this component has completed setup and is in the loop state. | |
| bool | is_idle () const |
| Check if this component is idle. | |
| virtual void | mark_failed () |
| Mark this component as failed. | |
| ESPDEPRECATED ("Use mark_failed(LOG_STR(\"static string literal\")) instead. Do NOT use .c_str() from temporary " "strings. Will stop working in 2026.6.0", "2025.12.0") void mark_failed(const char *message) | |
| void | mark_failed (const LogString *message) |
| void | disable_loop () |
| Disable this component's loop. | |
| void | enable_loop () |
| Enable this component's loop. | |
| void | enable_loop_soon_any_context () |
| Thread and ISR-safe version of enable_loop() that can be called from any context. | |
| bool | is_failed () const |
| bool | is_ready () const |
| virtual bool | can_proceed () |
| bool | status_has_warning () const |
| bool | status_has_error () const |
| void | status_set_warning (const char *message=nullptr) |
| void | status_set_warning (const LogString *message) |
| void | status_set_error () |
| ESPDEPRECATED ("Use status_set_error(LOG_STR(\"static string literal\")) instead. Do NOT use .c_str() from temporary " "strings. Will stop working in 2026.6.0", "2025.12.0") void status_set_error(const char *message) | |
| void | status_set_error (const LogString *message) |
| void | status_clear_warning () |
| void | status_clear_error () |
| void | status_momentary_warning (const char *name, uint32_t length=5000) |
| Set warning status flag and automatically clear it after a timeout. | |
| void | status_momentary_error (const char *name, uint32_t length=5000) |
| Set error status flag and automatically clear it after a timeout. | |
| bool | has_overridden_loop () const |
| void | set_component_source (const LogString *source) |
| Set where this component was loaded from for some debug messages. | |
| const LogString * | get_component_log_str () const |
| Get the integration where this component was declared as a LogString for logging. | |
| bool | should_warn_of_blocking (uint32_t blocking_time) |
Data Fields | ||
| HumidificationAction | humidification_action {THERMOSTAT_HUMIDITY_CONTROL_ACTION_NONE} | |
| The current humidification action. | ||
Data Fields inherited from esphome::climate::Climate | ||
| float | current_temperature {NAN} | |
| The current temperature of the climate device, as reported from the integration. | ||
| float | current_humidity {NAN} | |
| The current humidity of the climate device, as reported from the integration. | ||
| union { | ||
| float target_temperature | ||
| The target temperature of the climate device. More... | ||
| struct { | ||
| float target_temperature_low {NAN} | ||
| The minimum target temperature of the climate device, for climate devices with split target temperature. More... | ||
| float target_temperature_high {NAN} | ||
| The maximum target temperature of the climate device, for climate devices with split target temperature. More... | ||
| } | ||
| }; | ||
| float | target_humidity | |
| The target humidity of the climate device. | ||
| optional< ClimateFanMode > | fan_mode | |
| The active fan mode of the climate device. | ||
| optional< ClimatePreset > | preset | |
| The active preset of the climate device. | ||
| ClimateMode | mode {CLIMATE_MODE_OFF} | |
| The active mode of the climate device. | ||
| ClimateAction | action {CLIMATE_ACTION_OFF} | |
| The active state of the climate device. | ||
| ClimateSwingMode | swing_mode {CLIMATE_SWING_OFF} | |
| The active swing mode of the climate device. | ||
Protected Member Functions | |
| void | control (const climate::ClimateCall &call) override |
| Override control to change settings of the climate device. | |
| void | change_preset_ (climate::ClimatePreset preset) |
| Change to a provided preset setting; will reset temperature, mode, fan, and swing modes accordingly. | |
| void | change_custom_preset_ (const char *custom_preset) |
| Change to a provided custom preset setting; will reset temperature, mode, fan, and swing modes accordingly. | |
| bool | change_preset_internal_ (const ThermostatClimateTargetTempConfig &config) |
| Applies the temperature, mode, fan, and swing modes of the provided config. | |
| climate::ClimateTraits | traits () override |
| Return the traits of this controller. | |
| climate::ClimateAction | compute_action_ (bool ignore_timers=false) |
| Re-compute the required action of this climate controller. | |
| climate::ClimateAction | compute_supplemental_action_ () |
| HumidificationAction | compute_humidity_control_action_ () |
| void | switch_to_action_ (climate::ClimateAction action, bool publish_state=true) |
| Switch the climate device to the given climate action. | |
| void | switch_to_supplemental_action_ (climate::ClimateAction action) |
| void | trigger_supplemental_action_ () |
| void | switch_to_humidity_control_action_ (HumidificationAction action) |
| void | switch_to_fan_mode_ (climate::ClimateFanMode fan_mode, bool publish_state=true) |
| Switch the climate device to the given climate fan mode. | |
| void | switch_to_mode_ (climate::ClimateMode mode, bool publish_state=true) |
| Switch the climate device to the given climate mode. | |
| void | switch_to_swing_mode_ (climate::ClimateSwingMode swing_mode, bool publish_state=true) |
| Switch the climate device to the given climate swing mode. | |
| void | check_humidity_change_trigger_ () |
| Check if the humidity change trigger should be called. | |
| void | check_temperature_change_trigger_ () |
| Check if the temperature change trigger should be called. | |
| bool | idle_action_ready_ () |
| Is the action ready to be called? Returns true if so. | |
| bool | cooling_action_ready_ () |
| bool | drying_action_ready_ () |
| bool | fan_mode_ready_ () |
| bool | fanning_action_ready_ () |
| bool | heating_action_ready_ () |
| void | start_timer_ (ThermostatClimateTimerIndex timer_index) |
| Start/cancel/get status of climate action timer. | |
| bool | cancel_timer_ (ThermostatClimateTimerIndex timer_index) |
| bool | timer_active_ (ThermostatClimateTimerIndex timer_index) |
| uint32_t | timer_duration_ (ThermostatClimateTimerIndex timer_index) |
| void | call_timer_callback_ (ThermostatClimateTimerIndex timer_index) |
| Call the appropriate timer callback based on timer index. | |
| void | set_timer_duration_in_sec_ (ThermostatClimateTimerIndex timer_index, uint32_t time) |
| Enhanced timer duration setter with running timer adjustment. | |
| void | cooling_max_run_time_timer_callback_ () |
| set_timeout() callbacks for various actions (see above) | |
| void | cooling_off_timer_callback_ () |
| void | cooling_on_timer_callback_ () |
| void | fan_mode_timer_callback_ () |
| void | fanning_off_timer_callback_ () |
| void | fanning_on_timer_callback_ () |
| void | heating_max_run_time_timer_callback_ () |
| void | heating_off_timer_callback_ () |
| void | heating_on_timer_callback_ () |
| void | idle_on_timer_callback_ () |
| bool | cooling_required_ () |
| Check if cooling/fanning/heating actions are required; returns true if so. | |
| bool | fanning_required_ () |
| bool | heating_required_ () |
| bool | supplemental_cooling_required_ () |
| bool | supplemental_heating_required_ () |
| bool | dehumidification_required_ () |
| bool | humidification_required_ () |
| void | dump_preset_config_ (const char *preset_name, const ThermostatClimateTargetTempConfig &config) |
Protected Member Functions inherited from esphome::climate::Climate | |
| bool | set_fan_mode_ (ClimateFanMode mode) |
| Set fan mode. Reset custom fan mode. Return true if fan mode has been changed. | |
| bool | set_custom_fan_mode_ (const char *mode) |
| Set custom fan mode. Reset primary fan mode. Return true if fan mode has been changed. | |
| void | clear_custom_fan_mode_ () |
| Clear custom fan mode. | |
| bool | set_preset_ (ClimatePreset preset) |
| Set preset. Reset custom preset. Return true if preset has been changed. | |
| bool | set_custom_preset_ (const char *preset) |
| Set custom preset. Reset primary preset. Return true if preset has been changed. | |
| void | clear_custom_preset_ () |
| Clear custom preset. | |
| const char * | find_custom_fan_mode_ (const char *custom_fan_mode) |
| Find and return the matching custom fan mode pointer from traits, or nullptr if not found. | |
| const char * | find_custom_fan_mode_ (const char *custom_fan_mode, size_t len) |
| const char * | find_custom_preset_ (const char *custom_preset) |
| Find and return the matching custom preset pointer from traits, or nullptr if not found. | |
| const char * | find_custom_preset_ (const char *custom_preset, size_t len) |
| optional< ClimateDeviceRestoreState > | restore_state_ () |
| Restore the state of the climate device, call this from your setup() method. | |
| void | save_state_ () |
| Internal method to save the state of the climate device to recover memory. | |
| void | dump_traits_ (const char *tag) |
Protected Member Functions inherited from esphome::EntityBase | |
| void | calc_object_id_ () |
| bool | is_object_id_dynamic_ () const |
| Check if the object_id is dynamic (changes with MAC suffix) | |
Protected Member Functions inherited from esphome::Component | |
| virtual void | call_loop () |
| virtual void | call_setup () |
| virtual void | call_dump_config () |
| void | set_component_state_ (uint8_t state) |
| Helper to set component state (clears state bits and sets new state) | |
| void | set_interval (const std::string &name, uint32_t interval, std::function< void()> &&f) |
| Set an interval function with a unique name. | |
| void | set_interval (const char *name, uint32_t interval, std::function< void()> &&f) |
| Set an interval function with a const char* name. | |
| void | set_interval (uint32_t interval, std::function< void()> &&f) |
| bool | cancel_interval (const std::string &name) |
| Cancel an interval function. | |
| bool | cancel_interval (const char *name) |
| void | set_retry (const std::string &name, uint32_t initial_wait_time, uint8_t max_attempts, std::function< RetryResult(uint8_t)> &&f, float backoff_increase_factor=1.0f) |
| Set an retry function with a unique name. | |
| void | set_retry (const char *name, uint32_t initial_wait_time, uint8_t max_attempts, std::function< RetryResult(uint8_t)> &&f, float backoff_increase_factor=1.0f) |
| void | set_retry (uint32_t initial_wait_time, uint8_t max_attempts, std::function< RetryResult(uint8_t)> &&f, float backoff_increase_factor=1.0f) |
| bool | cancel_retry (const std::string &name) |
| Cancel a retry function. | |
| bool | cancel_retry (const char *name) |
| void | set_timeout (const std::string &name, uint32_t timeout, std::function< void()> &&f) |
| Set a timeout function with a unique name. | |
| void | set_timeout (const char *name, uint32_t timeout, std::function< void()> &&f) |
| Set a timeout function with a const char* name. | |
| void | set_timeout (uint32_t timeout, std::function< void()> &&f) |
| bool | cancel_timeout (const std::string &name) |
| Cancel a timeout function. | |
| bool | cancel_timeout (const char *name) |
| void | defer (const std::string &name, std::function< void()> &&f) |
| Defer a callback to the next loop() call. | |
| void | defer (const char *name, std::function< void()> &&f) |
| Defer a callback to the next loop() call with a const char* name. | |
| void | defer (std::function< void()> &&f) |
| Defer a callback to the next loop() call. | |
| bool | cancel_defer (const std::string &name) |
| Cancel a defer callback using the specified name, name must not be empty. | |
Protected Attributes | |
| const uint8_t | min_timer_duration_ {1} |
| Minimum allowable duration in seconds for action timers. | |
| climate::ClimateFanMode | prev_fan_mode_ {climate::CLIMATE_FAN_ON} |
| Store previously-known states. | |
| climate::ClimateMode | prev_mode_ {climate::CLIMATE_MODE_OFF} |
| climate::ClimateSwingMode | prev_swing_mode_ {climate::CLIMATE_SWING_OFF} |
| climate::ClimateAction | supplemental_action_ {climate::CLIMATE_ACTION_OFF} |
| The current supplemental action. | |
| climate::ClimatePreset | default_preset_ {} |
| Default standard preset to use on start up. | |
| OnBootRestoreFrom | on_boot_restore_from_ {OnBootRestoreFrom::MEMORY} |
| If set to DEFAULT_PRESET then the default preset is always used. | |
| bool | supports_auto_ {false} |
| Whether the controller supports auto/cooling/drying/fanning/heating. | |
| bool | supports_heat_cool_ {false} |
| bool | supports_cool_ {false} |
| bool | supports_dry_ {false} |
| bool | supports_fan_only_ {false} |
| bool | supports_heat_ {false} |
| bool | supports_fan_only_action_uses_fan_mode_timer_ {false} |
| Special flag – enables fan_modes to share timer with fan_only climate action. | |
| bool | supports_fan_only_cooling_ {false} |
| Special flag – enables fan to be switched based on target_temperature_high. | |
| bool | supports_fan_with_cooling_ {false} |
| Special flags – enables fan_only action to be called with cooling/heating actions. | |
| bool | supports_fan_with_heating_ {false} |
| bool | supports_fan_mode_on_ {false} |
| Whether the controller supports turning on or off just the fan. | |
| bool | supports_fan_mode_off_ {false} |
| bool | supports_fan_mode_auto_ {false} |
| Whether the controller supports fan auto mode. | |
| bool | supports_fan_mode_low_ {false} |
| Whether the controller supports various fan speeds and/or positions. | |
| bool | supports_fan_mode_medium_ {false} |
| bool | supports_fan_mode_high_ {false} |
| bool | supports_fan_mode_middle_ {false} |
| bool | supports_fan_mode_focus_ {false} |
| bool | supports_fan_mode_diffuse_ {false} |
| bool | supports_fan_mode_quiet_ {false} |
| bool | supports_swing_mode_both_ {false} |
| Whether the controller supports various swing modes. | |
| bool | supports_swing_mode_off_ {false} |
| bool | supports_swing_mode_horizontal_ {false} |
| bool | supports_swing_mode_vertical_ {false} |
| bool | supports_two_points_ {false} |
| Whether the controller supports two set points. | |
| bool | supports_dehumidification_ {false} |
| Whether the controller supports dehumidification and/or humidification. | |
| bool | supports_humidification_ {false} |
| bool | cooling_max_runtime_exceeded_ {false} |
| Flags indicating if maximum allowable run time was exceeded. | |
| bool | heating_max_runtime_exceeded_ {false} |
| bool | use_startup_delay_ {false} |
| Used to start "off" delay timers at boot. | |
| bool | setup_complete_ {false} |
| setup_complete_ blocks modifying/resetting the temps immediately after boot | |
| float | prev_target_humidity_ {NAN} |
| Store previously-known humidity and temperatures. | |
| float | prev_target_temperature_ {NAN} |
| float | prev_target_temperature_low_ {NAN} |
| float | prev_target_temperature_high_ {NAN} |
| float | set_point_minimum_differential_ {0} |
| Minimum differential required between set points. | |
| float | cooling_deadband_ {0} |
| Hysteresis values used for computing climate actions. | |
| float | cooling_overrun_ {0} |
| float | heating_deadband_ {0} |
| float | heating_overrun_ {0} |
| float | humidity_hysteresis_ {0} |
| Hysteresis values used for computing humidification action. | |
| float | supplemental_cool_delta_ {0} |
| Maximum allowable temperature deltas before engaging supplemental cooling/heating actions. | |
| float | supplemental_heat_delta_ {0} |
| sensor::Sensor * | sensor_ {nullptr} |
| The sensor used for getting the current temperature. | |
| sensor::Sensor * | humidity_sensor_ {nullptr} |
| The sensor used for getting the current humidity. | |
| Trigger * | cool_action_trigger_ {nullptr} |
| The trigger to call when the controller should switch to cooling action/mode. | |
| Trigger * | supplemental_cool_action_trigger_ {nullptr} |
| Trigger * | cool_mode_trigger_ {nullptr} |
| Trigger * | dry_action_trigger_ {nullptr} |
| The trigger to call when the controller should switch to dry (dehumidification) mode. | |
| Trigger * | dry_mode_trigger_ {nullptr} |
| Trigger * | heat_action_trigger_ {nullptr} |
| The trigger to call when the controller should switch to heating action/mode. | |
| Trigger * | supplemental_heat_action_trigger_ {nullptr} |
| Trigger * | heat_mode_trigger_ {nullptr} |
| Trigger * | heat_cool_mode_trigger_ {nullptr} |
| The trigger to call when the controller should switch to heat/cool mode. | |
| Trigger * | auto_mode_trigger_ {nullptr} |
| The trigger to call when the controller should switch to auto mode. | |
| Trigger * | idle_action_trigger_ {nullptr} |
| The trigger to call when the controller should switch to idle action/off mode. | |
| Trigger * | off_mode_trigger_ {nullptr} |
| Trigger * | fan_only_action_trigger_ {nullptr} |
| The trigger to call when the controller should switch to fan-only action/mode. | |
| Trigger * | fan_only_mode_trigger_ {nullptr} |
| Trigger * | fan_mode_on_trigger_ {nullptr} |
| The trigger to call when the controller should switch on the fan. | |
| Trigger * | fan_mode_off_trigger_ {nullptr} |
| The trigger to call when the controller should switch off the fan. | |
| Trigger * | fan_mode_auto_trigger_ {nullptr} |
| The trigger to call when the controller should switch the fan to "auto" mode. | |
| Trigger * | fan_mode_low_trigger_ {nullptr} |
| The trigger to call when the controller should switch the fan to "low" speed. | |
| Trigger * | fan_mode_medium_trigger_ {nullptr} |
| The trigger to call when the controller should switch the fan to "medium" speed. | |
| Trigger * | fan_mode_high_trigger_ {nullptr} |
| The trigger to call when the controller should switch the fan to "high" speed. | |
| Trigger * | fan_mode_middle_trigger_ {nullptr} |
| The trigger to call when the controller should switch the fan to "middle" position. | |
| Trigger * | fan_mode_focus_trigger_ {nullptr} |
| The trigger to call when the controller should switch the fan to "focus" position. | |
| Trigger * | fan_mode_diffuse_trigger_ {nullptr} |
| The trigger to call when the controller should switch the fan to "diffuse" position. | |
| Trigger * | fan_mode_quiet_trigger_ {nullptr} |
| The trigger to call when the controller should switch the fan to "quiet" position. | |
| Trigger * | swing_mode_both_trigger_ {nullptr} |
| The trigger to call when the controller should switch the swing mode to "both". | |
| Trigger * | swing_mode_off_trigger_ {nullptr} |
| The trigger to call when the controller should switch the swing mode to "off". | |
| Trigger * | swing_mode_horizontal_trigger_ {nullptr} |
| The trigger to call when the controller should switch the swing mode to "horizontal". | |
| Trigger * | swing_mode_vertical_trigger_ {nullptr} |
| The trigger to call when the controller should switch the swing mode to "vertical". | |
| Trigger * | humidity_change_trigger_ {nullptr} |
| The trigger to call when the target humidity changes. | |
| Trigger * | temperature_change_trigger_ {nullptr} |
| The trigger to call when the target temperature(s) change(es). | |
| Trigger * | preset_change_trigger_ {nullptr} |
| The trigger to call when the preset mode changes. | |
| Trigger * | humidity_control_dehumidify_action_trigger_ {nullptr} |
| The trigger to call when dehumidification is required. | |
| Trigger * | humidity_control_humidify_action_trigger_ {nullptr} |
| The trigger to call when humidification is required. | |
| Trigger * | humidity_control_off_action_trigger_ {nullptr} |
| The trigger to call when (de)humidification should stop. | |
| Trigger * | prev_action_trigger_ {nullptr} |
| A reference to the trigger that was previously active. | |
| Trigger * | prev_fan_mode_trigger_ {nullptr} |
| Trigger * | prev_mode_trigger_ {nullptr} |
| Trigger * | prev_swing_mode_trigger_ {nullptr} |
| Trigger * | prev_humidity_control_trigger_ {nullptr} |
| std::array< ThermostatClimateTimer, THERMOSTAT_TIMER_COUNT > | timer_ {} |
| Climate action timers. | |
| FixedVector< PresetEntry > | preset_config_ {} |
| The set of standard preset configurations this thermostat supports (Eg. AWAY, ECO, etc) | |
| FixedVector< CustomPresetEntry > | custom_preset_config_ {} |
| The set of custom preset configurations this thermostat supports (eg. "My Custom Preset") | |
Protected Attributes inherited from esphome::climate::Climate | |
| friend | ClimateCall |
| LazyCallbackManager< void(Climate &)> | state_callback_ {} |
| LazyCallbackManager< void(ClimateCall &)> | control_callback_ {} |
| ESPPreferenceObject | rtc_ |
| float | visual_min_temperature_override_ {NAN} |
| float | visual_max_temperature_override_ {NAN} |
| float | visual_target_temperature_step_override_ {NAN} |
| float | visual_current_temperature_step_override_ {NAN} |
| float | visual_min_humidity_override_ {NAN} |
| float | visual_max_humidity_override_ {NAN} |
Protected Attributes inherited from esphome::EntityBase | |
| StringRef | name_ |
| const char * | object_id_c_str_ {nullptr} |
| const char * | icon_c_str_ {nullptr} |
| uint32_t | object_id_hash_ {} |
| Device * | device_ {} |
| struct esphome::EntityBase::EntityFlags | flags_ |
Protected Attributes inherited from esphome::Component | |
| const LogString * | component_source_ {nullptr} |
| uint16_t | warn_if_blocking_over_ {WARN_IF_BLOCKING_OVER_MS} |
| Warn if blocked for this many ms (max 65.5s) | |
| uint8_t | component_state_ {0x00} |
| State of this component - each bit has a purpose: Bits 0-2: Component state (0x00=CONSTRUCTION, 0x01=SETUP, 0x02=LOOP, 0x03=FAILED, 0x04=LOOP_DONE) Bit 3: STATUS_LED_WARNING Bit 4: STATUS_LED_ERROR Bits 5-7: Unused - reserved for future expansion. | |
| volatile bool | pending_enable_loop_ {false} |
| ISR-safe flag for enable_loop_soon_any_context. | |
Definition at line 84 of file thermostat_climate.h.
Definition at line 87 of file thermostat_climate.h.
Definition at line 86 of file thermostat_climate.h.
| esphome::thermostat::ThermostatClimate::ThermostatClimate | ( | ) |
Definition at line 1306 of file thermostat_climate.cpp.
|
protected |
Call the appropriate timer callback based on timer index.
Definition at line 920 of file thermostat_climate.cpp.
|
protected |
Definition at line 906 of file thermostat_climate.cpp.
|
protected |
Change to a provided custom preset setting; will reset temperature, mode, fan, and swing modes accordingly.
Definition at line 1221 of file thermostat_climate.cpp.
|
protected |
Change to a provided preset setting; will reset temperature, mode, fan, and swing modes accordingly.
Definition at line 1191 of file thermostat_climate.cpp.
|
protected |
Applies the temperature, mode, fan, and swing modes of the provided config.
This is agnostic of custom vs built in preset Returns true if something was changed
Definition at line 1256 of file thermostat_climate.cpp.
|
protected |
Check if the humidity change trigger should be called.
Definition at line 1019 of file thermostat_climate.cpp.
|
protected |
Check if the temperature change trigger should be called.
Definition at line 1033 of file thermostat_climate.cpp.
| bool esphome::thermostat::ThermostatClimate::climate_action_change_delayed | ( | ) |
Returns true if a climate action/fan mode transition is being delayed.
Definition at line 95 of file thermostat_climate.cpp.
|
protected |
Re-compute the required action of this climate controller.
Definition at line 340 of file thermostat_climate.cpp.
|
protected |
Definition at line 461 of file thermostat_climate.cpp.
|
protected |
Definition at line 419 of file thermostat_climate.cpp.
|
overrideprotectedvirtual |
Override control to change settings of the climate device.
Implements esphome::climate::Climate.
Definition at line 211 of file thermostat_climate.cpp.
| float esphome::thermostat::ThermostatClimate::cool_deadband | ( | ) |
Get current hysteresis values.
Definition at line 78 of file thermostat_climate.cpp.
| float esphome::thermostat::ThermostatClimate::cool_overrun | ( | ) |
Definition at line 79 of file thermostat_climate.cpp.
|
protected |
Definition at line 868 of file thermostat_climate.cpp.
|
protected |
set_timeout() callbacks for various actions (see above)
Definition at line 958 of file thermostat_climate.cpp.
|
protected |
Definition at line 965 of file thermostat_climate.cpp.
|
protected |
Definition at line 971 of file thermostat_climate.cpp.
|
protected |
Check if cooling/fanning/heating actions are required; returns true if so.
Definition at line 1059 of file thermostat_climate.cpp.
|
protected |
Definition at line 1142 of file thermostat_climate.cpp.
| climate::ClimateAction esphome::thermostat::ThermostatClimate::delayed_climate_action | ( | ) |
Returns the climate action that is being delayed (check climate_action_change_delayed(), first!)
Definition at line 121 of file thermostat_climate.cpp.
|
protected |
Definition at line 875 of file thermostat_climate.cpp.
|
overridevirtual |
Reimplemented from esphome::Component.
Definition at line 1559 of file thermostat_climate.cpp.
|
protected |
Definition at line 1168 of file thermostat_climate.cpp.
| bool esphome::thermostat::ThermostatClimate::fan_mode_change_delayed | ( | ) |
Definition at line 116 of file thermostat_climate.cpp.
|
protected |
Definition at line 882 of file thermostat_climate.cpp.
|
protected |
Definition at line 977 of file thermostat_climate.cpp.
|
protected |
Definition at line 884 of file thermostat_climate.cpp.
|
protected |
Definition at line 984 of file thermostat_climate.cpp.
|
protected |
Definition at line 989 of file thermostat_climate.cpp.
|
protected |
Definition at line 1079 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_auto_mode_trigger | ( | ) | const |
Definition at line 1525 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_cool_action_trigger | ( | ) | const |
Definition at line 1514 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_cool_mode_trigger | ( | ) | const |
Definition at line 1526 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_dry_action_trigger | ( | ) | const |
Definition at line 1518 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_dry_mode_trigger | ( | ) | const |
Definition at line 1527 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_fan_mode_auto_trigger | ( | ) | const |
Definition at line 1534 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_fan_mode_diffuse_trigger | ( | ) | const |
Definition at line 1540 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_fan_mode_focus_trigger | ( | ) | const |
Definition at line 1539 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_fan_mode_high_trigger | ( | ) | const |
Definition at line 1537 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_fan_mode_low_trigger | ( | ) | const |
Definition at line 1535 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_fan_mode_medium_trigger | ( | ) | const |
Definition at line 1536 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_fan_mode_middle_trigger | ( | ) | const |
Definition at line 1538 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_fan_mode_off_trigger | ( | ) | const |
Definition at line 1533 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_fan_mode_on_trigger | ( | ) | const |
Definition at line 1532 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_fan_mode_quiet_trigger | ( | ) | const |
Definition at line 1541 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_fan_only_action_trigger | ( | ) | const |
Definition at line 1519 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_fan_only_mode_trigger | ( | ) | const |
Definition at line 1528 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_heat_action_trigger | ( | ) | const |
Definition at line 1520 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_heat_cool_mode_trigger | ( | ) | const |
Definition at line 1530 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_heat_mode_trigger | ( | ) | const |
Definition at line 1529 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_humidity_change_trigger | ( | ) | const |
Definition at line 1546 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_humidity_control_dehumidify_action_trigger | ( | ) | const |
Definition at line 1549 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_humidity_control_humidify_action_trigger | ( | ) | const |
Definition at line 1552 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_humidity_control_off_action_trigger | ( | ) | const |
Definition at line 1555 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_idle_action_trigger | ( | ) | const |
Definition at line 1524 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_off_mode_trigger | ( | ) | const |
Definition at line 1531 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_preset_change_trigger | ( | ) | const |
Definition at line 1548 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_supplemental_cool_action_trigger | ( | ) | const |
Definition at line 1515 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_supplemental_heat_action_trigger | ( | ) | const |
Definition at line 1521 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_swing_mode_both_trigger | ( | ) | const |
Definition at line 1542 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_swing_mode_horizontal_trigger | ( | ) | const |
Definition at line 1544 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_swing_mode_off_trigger | ( | ) | const |
Definition at line 1543 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_swing_mode_vertical_trigger | ( | ) | const |
Definition at line 1545 of file thermostat_climate.cpp.
| Trigger * esphome::thermostat::ThermostatClimate::get_temperature_change_trigger | ( | ) | const |
Definition at line 1547 of file thermostat_climate.cpp.
| float esphome::thermostat::ThermostatClimate::heat_deadband | ( | ) |
Definition at line 80 of file thermostat_climate.cpp.
| float esphome::thermostat::ThermostatClimate::heat_overrun | ( | ) |
Definition at line 81 of file thermostat_climate.cpp.
|
protected |
Definition at line 892 of file thermostat_climate.cpp.
|
protected |
Definition at line 994 of file thermostat_climate.cpp.
|
protected |
Definition at line 1001 of file thermostat_climate.cpp.
|
protected |
Definition at line 1007 of file thermostat_climate.cpp.
|
protected |
Definition at line 1102 of file thermostat_climate.cpp.
|
protected |
Definition at line 1155 of file thermostat_climate.cpp.
| bool esphome::thermostat::ThermostatClimate::humidity_hysteresis_valid | ( | ) |
Definition at line 136 of file thermostat_climate.cpp.
| bool esphome::thermostat::ThermostatClimate::hysteresis_valid | ( | ) |
Set point and hysteresis validation.
Definition at line 125 of file thermostat_climate.cpp.
|
protected |
Is the action ready to be called? Returns true if so.
Definition at line 857 of file thermostat_climate.cpp.
|
protected |
Definition at line 1013 of file thermostat_climate.cpp.
| bool esphome::thermostat::ThermostatClimate::limit_setpoints_for_heat_cool | ( | ) |
Definition at line 141 of file thermostat_climate.cpp.
| climate::ClimateFanMode esphome::thermostat::ThermostatClimate::locked_fan_mode | ( | ) |
Returns the fan mode that is locked in (check fan_mode_change_delayed(), first!)
Definition at line 123 of file thermostat_climate.cpp.
|
overridevirtual |
Reimplemented from esphome::Component.
Definition at line 67 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::refresh | ( | ) |
Call triggers based on updated climate states (modes/actions)
Definition at line 83 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_cool_deadband | ( | float | deadband | ) |
Definition at line 1362 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_cool_overrun | ( | float | overrun | ) |
Definition at line 1363 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_cooling_maximum_run_time_in_sec | ( | uint32_t | time | ) |
Definition at line 1397 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_cooling_minimum_off_time_in_sec | ( | uint32_t | time | ) |
Definition at line 1400 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_cooling_minimum_run_time_in_sec | ( | uint32_t | time | ) |
Definition at line 1403 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_custom_preset_config | ( | std::initializer_list< CustomPresetEntry > | presets | ) |
Definition at line 1302 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_default_preset | ( | climate::ClimatePreset | preset | ) |
Definition at line 1354 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_default_preset | ( | const char * | custom_preset | ) |
Definition at line 1342 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_fan_mode_minimum_switching_time_in_sec | ( | uint32_t | time | ) |
Definition at line 1406 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_fanning_minimum_off_time_in_sec | ( | uint32_t | time | ) |
Definition at line 1409 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_fanning_minimum_run_time_in_sec | ( | uint32_t | time | ) |
Definition at line 1412 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_heat_deadband | ( | float | deadband | ) |
Definition at line 1364 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_heat_overrun | ( | float | overrun | ) |
Definition at line 1365 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_heating_maximum_run_time_in_sec | ( | uint32_t | time | ) |
Definition at line 1415 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_heating_minimum_off_time_in_sec | ( | uint32_t | time | ) |
Definition at line 1418 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_heating_minimum_run_time_in_sec | ( | uint32_t | time | ) |
Definition at line 1421 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_humidity_hysteresis | ( | float | humidity_hysteresis | ) |
Definition at line 1431 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_humidity_sensor | ( | sensor::Sensor * | humidity_sensor | ) |
Definition at line 1428 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_idle_minimum_time_in_sec | ( | uint32_t | time | ) |
Definition at line 1424 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_on_boot_restore_from | ( | thermostat::OnBootRestoreFrom | on_boot_restore_from | ) |
Definition at line 1356 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_preset_config | ( | std::initializer_list< PresetEntry > | presets | ) |
Definition at line 1298 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_sensor | ( | sensor::Sensor * | sensor | ) |
Definition at line 1427 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_set_point_minimum_differential | ( | float | differential | ) |
Definition at line 1359 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supplemental_cool_delta | ( | float | delta | ) |
Definition at line 1366 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supplemental_heat_delta | ( | float | delta | ) |
Definition at line 1367 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_auto | ( | bool | supports_auto | ) |
Definition at line 1438 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_cool | ( | bool | supports_cool | ) |
Definition at line 1439 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_dehumidification | ( | bool | supports_dehumidification | ) |
Definition at line 1501 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_dry | ( | bool | supports_dry | ) |
Definition at line 1440 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_fan_mode_auto | ( | bool | supports_fan_mode_auto | ) |
Definition at line 1462 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_fan_mode_diffuse | ( | bool | supports_fan_mode_diffuse | ) |
Definition at line 1480 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_fan_mode_focus | ( | bool | supports_fan_mode_focus | ) |
Definition at line 1477 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_fan_mode_high | ( | bool | supports_fan_mode_high | ) |
Definition at line 1471 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_fan_mode_low | ( | bool | supports_fan_mode_low | ) |
Definition at line 1465 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_fan_mode_medium | ( | bool | supports_fan_mode_medium | ) |
Definition at line 1468 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_fan_mode_middle | ( | bool | supports_fan_mode_middle | ) |
Definition at line 1474 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_fan_mode_off | ( | bool | supports_fan_mode_off | ) |
Definition at line 1459 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_fan_mode_on | ( | bool | supports_fan_mode_on | ) |
Definition at line 1456 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_fan_mode_quiet | ( | bool | supports_fan_mode_quiet | ) |
Definition at line 1483 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_fan_only | ( | bool | supports_fan_only | ) |
Definition at line 1441 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_fan_only_action_uses_fan_mode_timer | ( | bool | fan_only_action_uses_fan_mode_timer | ) |
Definition at line 1442 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_fan_only_cooling | ( | bool | supports_fan_only_cooling | ) |
Definition at line 1446 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_fan_with_cooling | ( | bool | supports_fan_with_cooling | ) |
Definition at line 1449 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_fan_with_heating | ( | bool | supports_fan_with_heating | ) |
Definition at line 1452 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_heat | ( | bool | supports_heat | ) |
Definition at line 1455 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_heat_cool | ( | bool | supports_heat_cool | ) |
Definition at line 1435 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_humidification | ( | bool | supports_humidification | ) |
Definition at line 1507 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_swing_mode_both | ( | bool | supports_swing_mode_both | ) |
Definition at line 1486 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_swing_mode_horizontal | ( | bool | supports_swing_mode_horizontal | ) |
Definition at line 1492 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_swing_mode_off | ( | bool | supports_swing_mode_off | ) |
Definition at line 1489 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_swing_mode_vertical | ( | bool | supports_swing_mode_vertical | ) |
Definition at line 1495 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_supports_two_points | ( | bool | supports_two_points | ) |
Definition at line 1498 of file thermostat_climate.cpp.
|
protected |
Enhanced timer duration setter with running timer adjustment.
Definition at line 1369 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::set_use_startup_delay | ( | bool | use_startup_delay | ) |
Definition at line 1434 of file thermostat_climate.cpp.
|
overridevirtual |
Reimplemented from esphome::Component.
Definition at line 10 of file thermostat_climate.cpp.
|
protected |
Start/cancel/get status of climate action timer.
Definition at line 899 of file thermostat_climate.cpp.
|
protected |
Definition at line 1122 of file thermostat_climate.cpp.
|
protected |
Definition at line 1132 of file thermostat_climate.cpp.
|
protected |
Switch the climate device to the given climate action.
Definition at line 483 of file thermostat_climate.cpp.
|
protected |
Switch the climate device to the given climate fan mode.
Definition at line 694 of file thermostat_climate.cpp.
|
protected |
Definition at line 656 of file thermostat_climate.cpp.
|
protected |
Switch the climate device to the given climate mode.
Definition at line 767 of file thermostat_climate.cpp.
|
protected |
Definition at line 602 of file thermostat_climate.cpp.
|
protected |
Switch the climate device to the given climate swing mode.
Definition at line 816 of file thermostat_climate.cpp.
|
protected |
Definition at line 912 of file thermostat_climate.cpp.
|
protected |
Definition at line 916 of file thermostat_climate.cpp.
|
overrideprotectedvirtual |
Return the traits of this controller.
Implements esphome::climate::Climate.
Definition at line 266 of file thermostat_climate.cpp.
|
protected |
Definition at line 629 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::validate_target_humidity | ( | ) |
Definition at line 201 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::validate_target_temperature | ( | ) |
Definition at line 146 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::validate_target_temperature_high | ( | ) |
Definition at line 187 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::validate_target_temperature_low | ( | ) |
Definition at line 173 of file thermostat_climate.cpp.
| void esphome::thermostat::ThermostatClimate::validate_target_temperatures | ( | bool | pin_target_temperature_high | ) |
Definition at line 159 of file thermostat_climate.cpp.
|
protected |
The trigger to call when the controller should switch to auto mode.
In auto mode, the controller will enable heating/cooling as supported/necessary and switch to idle when the temperature is within the thresholds/set points.
Definition at line 449 of file thermostat_climate.h.
|
protected |
The trigger to call when the controller should switch to cooling action/mode.
A null value for this attribute means that the controller has no cooling action For example electric heat, where only heating (power on) and not-heating (power off) is possible.
Definition at line 419 of file thermostat_climate.h.
|
protected |
Definition at line 421 of file thermostat_climate.h.
|
protected |
Hysteresis values used for computing climate actions.
Definition at line 397 of file thermostat_climate.h.
|
protected |
Flags indicating if maximum allowable run time was exceeded.
Definition at line 376 of file thermostat_climate.h.
|
protected |
Definition at line 398 of file thermostat_climate.h.
|
protected |
The set of custom preset configurations this thermostat supports (eg. "My Custom Preset")
Definition at line 540 of file thermostat_climate.h.
|
protected |
Default standard preset to use on start up.
Definition at line 308 of file thermostat_climate.h.
|
protected |
The trigger to call when the controller should switch to dry (dehumidification) mode.
In dry mode, the controller is assumed to have both heating and cooling disabled, although the system may use its cooling mechanism to achieve drying.
Definition at line 427 of file thermostat_climate.h.
|
protected |
Definition at line 428 of file thermostat_climate.h.
|
protected |
The trigger to call when the controller should switch the fan to "auto" mode.
Definition at line 471 of file thermostat_climate.h.
|
protected |
The trigger to call when the controller should switch the fan to "diffuse" position.
Definition at line 489 of file thermostat_climate.h.
|
protected |
The trigger to call when the controller should switch the fan to "focus" position.
Definition at line 486 of file thermostat_climate.h.
|
protected |
The trigger to call when the controller should switch the fan to "high" speed.
Definition at line 480 of file thermostat_climate.h.
|
protected |
The trigger to call when the controller should switch the fan to "low" speed.
Definition at line 474 of file thermostat_climate.h.
|
protected |
The trigger to call when the controller should switch the fan to "medium" speed.
Definition at line 477 of file thermostat_climate.h.
|
protected |
The trigger to call when the controller should switch the fan to "middle" position.
Definition at line 483 of file thermostat_climate.h.
|
protected |
The trigger to call when the controller should switch off the fan.
Definition at line 468 of file thermostat_climate.h.
|
protected |
The trigger to call when the controller should switch on the fan.
Definition at line 465 of file thermostat_climate.h.
|
protected |
The trigger to call when the controller should switch the fan to "quiet" position.
Definition at line 492 of file thermostat_climate.h.
|
protected |
The trigger to call when the controller should switch to fan-only action/mode.
In fan-only mode, the controller is assumed to have both heating and cooling disabled. The system should activate the fan only.
Definition at line 461 of file thermostat_climate.h.
|
protected |
Definition at line 462 of file thermostat_climate.h.
|
protected |
The trigger to call when the controller should switch to heating action/mode.
A null value for this attribute means that the controller has no heating action For example window blinds, where only cooling (blinds closed) and not-cooling (blinds open) is possible.
Definition at line 435 of file thermostat_climate.h.
|
protected |
The trigger to call when the controller should switch to heat/cool mode.
In heat/cool mode, the controller will enable heating/cooling as necessary and switch to idle when the temperature is within the thresholds/set points.
Definition at line 443 of file thermostat_climate.h.
|
protected |
Definition at line 437 of file thermostat_climate.h.
|
protected |
Definition at line 399 of file thermostat_climate.h.
|
protected |
Definition at line 377 of file thermostat_climate.h.
|
protected |
Definition at line 400 of file thermostat_climate.h.
| HumidificationAction esphome::thermostat::ThermostatClimate::humidification_action {THERMOSTAT_HUMIDITY_CONTROL_ACTION_NONE} |
The current humidification action.
Definition at line 208 of file thermostat_climate.h.
|
protected |
The trigger to call when the target humidity changes.
Definition at line 507 of file thermostat_climate.h.
|
protected |
The trigger to call when dehumidification is required.
Definition at line 516 of file thermostat_climate.h.
|
protected |
The trigger to call when humidification is required.
Definition at line 519 of file thermostat_climate.h.
|
protected |
The trigger to call when (de)humidification should stop.
Definition at line 522 of file thermostat_climate.h.
|
protected |
Hysteresis values used for computing humidification action.
Definition at line 403 of file thermostat_climate.h.
|
protected |
The sensor used for getting the current humidity.
Definition at line 412 of file thermostat_climate.h.
|
protected |
The trigger to call when the controller should switch to idle action/off mode.
In these actions/modes, the controller is assumed to have both heating and cooling disabled.
Definition at line 454 of file thermostat_climate.h.
|
protected |
Minimum allowable duration in seconds for action timers.
Definition at line 295 of file thermostat_climate.h.
|
protected |
Definition at line 455 of file thermostat_climate.h.
|
protected |
If set to DEFAULT_PRESET then the default preset is always used.
When MEMORY prior state will attempt to be restored if possible
Definition at line 312 of file thermostat_climate.h.
|
protected |
The trigger to call when the preset mode changes.
Definition at line 513 of file thermostat_climate.h.
|
protected |
The set of standard preset configurations this thermostat supports (Eg. AWAY, ECO, etc)
Definition at line 538 of file thermostat_climate.h.
|
protected |
A reference to the trigger that was previously active.
This is so that the previous trigger can be stopped before enabling a new one for each climate category (mode, action, fan_mode, swing_mode).
Definition at line 528 of file thermostat_climate.h.
|
protected |
Store previously-known states.
These are used to determine when a trigger/action needs to be called
Definition at line 300 of file thermostat_climate.h.
|
protected |
Definition at line 529 of file thermostat_climate.h.
|
protected |
Definition at line 532 of file thermostat_climate.h.
|
protected |
Definition at line 301 of file thermostat_climate.h.
|
protected |
Definition at line 530 of file thermostat_climate.h.
|
protected |
Definition at line 302 of file thermostat_climate.h.
|
protected |
Definition at line 531 of file thermostat_climate.h.
|
protected |
Store previously-known humidity and temperatures.
These are used to determine when a temperature/humidity has changed
Definition at line 388 of file thermostat_climate.h.
|
protected |
Definition at line 389 of file thermostat_climate.h.
|
protected |
Definition at line 391 of file thermostat_climate.h.
|
protected |
Definition at line 390 of file thermostat_climate.h.
|
protected |
The sensor used for getting the current temperature.
Definition at line 410 of file thermostat_climate.h.
|
protected |
Minimum differential required between set points.
Definition at line 394 of file thermostat_climate.h.
|
protected |
setup_complete_ blocks modifying/resetting the temps immediately after boot
Definition at line 383 of file thermostat_climate.h.
|
protected |
The current supplemental action.
Definition at line 305 of file thermostat_climate.h.
|
protected |
Definition at line 420 of file thermostat_climate.h.
|
protected |
Maximum allowable temperature deltas before engaging supplemental cooling/heating actions.
Definition at line 406 of file thermostat_climate.h.
|
protected |
Definition at line 436 of file thermostat_climate.h.
|
protected |
Definition at line 407 of file thermostat_climate.h.
|
protected |
Whether the controller supports auto/cooling/drying/fanning/heating.
A false value for any given attribute means that the controller has no such action (for example a thermostat, where only heating and not-heating is possible).
Definition at line 318 of file thermostat_climate.h.
|
protected |
Definition at line 320 of file thermostat_climate.h.
|
protected |
Whether the controller supports dehumidification and/or humidification.
A false value means that the controller has no such support.
Definition at line 372 of file thermostat_climate.h.
|
protected |
Definition at line 321 of file thermostat_climate.h.
|
protected |
Whether the controller supports fan auto mode.
A false value for this attribute means that the controller has no fan-auto action (for example a thermostat, where independent control of the fan is not possible).
Definition at line 343 of file thermostat_climate.h.
|
protected |
Definition at line 353 of file thermostat_climate.h.
|
protected |
Definition at line 352 of file thermostat_climate.h.
|
protected |
Definition at line 350 of file thermostat_climate.h.
|
protected |
Whether the controller supports various fan speeds and/or positions.
A false value for any given attribute means that the controller has no such fan action.
Definition at line 348 of file thermostat_climate.h.
|
protected |
Definition at line 349 of file thermostat_climate.h.
|
protected |
Definition at line 351 of file thermostat_climate.h.
|
protected |
Definition at line 337 of file thermostat_climate.h.
|
protected |
Whether the controller supports turning on or off just the fan.
A false value for either attribute means that the controller has no fan on/off action (for example a thermostat, where independent control of the fan is not possible).
Definition at line 336 of file thermostat_climate.h.
|
protected |
Definition at line 354 of file thermostat_climate.h.
|
protected |
Definition at line 322 of file thermostat_climate.h.
|
protected |
Special flag – enables fan_modes to share timer with fan_only climate action.
Definition at line 325 of file thermostat_climate.h.
|
protected |
Special flag – enables fan to be switched based on target_temperature_high.
Definition at line 327 of file thermostat_climate.h.
|
protected |
Special flags – enables fan_only action to be called with cooling/heating actions.
Definition at line 329 of file thermostat_climate.h.
|
protected |
Definition at line 330 of file thermostat_climate.h.
|
protected |
Definition at line 323 of file thermostat_climate.h.
|
protected |
Definition at line 319 of file thermostat_climate.h.
|
protected |
Definition at line 373 of file thermostat_climate.h.
|
protected |
Whether the controller supports various swing modes.
A false value for any given attribute means that the controller has no such swing mode.
Definition at line 359 of file thermostat_climate.h.
|
protected |
Definition at line 361 of file thermostat_climate.h.
|
protected |
Definition at line 360 of file thermostat_climate.h.
|
protected |
Definition at line 362 of file thermostat_climate.h.
|
protected |
Whether the controller supports two set points.
A false value means that the controller has no such support.
Definition at line 367 of file thermostat_climate.h.
|
protected |
The trigger to call when the controller should switch the swing mode to "both".
Definition at line 495 of file thermostat_climate.h.
|
protected |
The trigger to call when the controller should switch the swing mode to "horizontal".
Definition at line 501 of file thermostat_climate.h.
|
protected |
The trigger to call when the controller should switch the swing mode to "off".
Definition at line 498 of file thermostat_climate.h.
|
protected |
The trigger to call when the controller should switch the swing mode to "vertical".
Definition at line 504 of file thermostat_climate.h.
|
protected |
The trigger to call when the target temperature(s) change(es).
Definition at line 510 of file thermostat_climate.h.
|
protected |
Climate action timers.
Definition at line 535 of file thermostat_climate.h.
|
protected |
Used to start "off" delay timers at boot.
Definition at line 380 of file thermostat_climate.h.