ESPHome  2021.11.3
climate_mode.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <cstdint>
4 #include "esphome/core/log.h"
5 
6 namespace esphome {
7 namespace climate {
8 
10 enum ClimateMode : uint8_t {
28 };
29 
31 enum ClimateAction : uint8_t {
44 };
45 
46 enum ClimateFanMode : uint8_t {
65 };
66 
68 enum ClimateSwingMode : uint8_t {
77 };
78 
80 enum ClimatePreset : uint8_t {
97 };
98 
100 const LogString *climate_mode_to_string(ClimateMode mode);
101 
103 const LogString *climate_action_to_string(ClimateAction action);
104 
107 
110 
113 
114 } // namespace climate
115 } // namespace esphome
The fan mode is set to Low.
Definition: climate_mode.h:54
The climate device is off (inactive or no power)
Definition: climate_mode.h:33
The fan mode is set to Both.
Definition: climate_mode.h:72
ClimatePreset
Enum for all modes a climate swing can be in.
Definition: climate_mode.h:80
The climate device is drying.
Definition: climate_mode.h:41
The climate device is in fan only mode.
Definition: climate_mode.h:43
Device is in home preset.
Definition: climate_mode.h:84
The fan mode is set to Middle.
Definition: climate_mode.h:60
const LogString * climate_mode_to_string(ClimateMode mode)
Convert the given ClimateMode to a human-readable string.
Definition: climate_mode.cpp:6
The climate device is set to heat to reach the target temperature.
Definition: climate_mode.h:18
The fan mode is set to Diffuse.
Definition: climate_mode.h:64
The climate device is set to dry/humidity mode.
Definition: climate_mode.h:22
ClimateSwingMode
Enum for all modes a climate swing can be in.
Definition: climate_mode.h:68
Device is prepared for sleep.
Definition: climate_mode.h:94
Device is in away preset.
Definition: climate_mode.h:86
Device is in comfort preset.
Definition: climate_mode.h:90
The fan mode is set to Horizontal.
Definition: climate_mode.h:76
The climate device is set to cool to reach the target temperature.
Definition: climate_mode.h:16
Device is reacting to activity (e.g., movement sensors)
Definition: climate_mode.h:96
The fan mode is set to Auto.
Definition: climate_mode.h:52
ClimateAction
Enum for the current action of the climate device. Values match those of ClimateMode.
Definition: climate_mode.h:31
const LogString * climate_preset_to_string(ClimatePreset preset)
Convert the given ClimateSwingMode to a human-readable string.
The climate device is adjusting the temperatre dynamically.
Definition: climate_mode.h:27
The climate device is set to heat/cool to reach the target temperature.
Definition: climate_mode.h:14
The fan mode is set to Vertical.
Definition: climate_mode.h:74
The climate device is actively heating.
Definition: climate_mode.h:37
The fan mode is set to Focus.
Definition: climate_mode.h:62
The fan mode is set to Off.
Definition: climate_mode.h:50
The fan mode is set to High.
Definition: climate_mode.h:58
ClimateMode
Enum for all modes a climate device can be in.
Definition: climate_mode.h:10
The swing mode is set to Off.
Definition: climate_mode.h:70
The climate device is off.
Definition: climate_mode.h:12
const LogString * climate_fan_mode_to_string(ClimateFanMode fan_mode)
Convert the given ClimateFanMode to a human-readable string.
Device is in boost preset.
Definition: climate_mode.h:88
The fan mode is set to On.
Definition: climate_mode.h:48
ClimateMode mode
Definition: climate.h:534
Library based on https://github.com/miguelbalboa/rfid and adapted to ESPHome by . ...
Definition: a4988.cpp:4
The climate device is idle (monitoring climate but no action needed)
Definition: climate_mode.h:39
Device is running an energy-saving preset.
Definition: climate_mode.h:92
The fan mode is set to Medium.
Definition: climate_mode.h:56
The climate device only has the fan enabled, no heating or cooling is taking place.
Definition: climate_mode.h:20
const LogString * climate_action_to_string(ClimateAction action)
Convert the given ClimateAction to a human-readable string.
The climate device is actively cooling.
Definition: climate_mode.h:35
ClimatePreset preset
Definition: climate.h:542
const LogString * climate_swing_mode_to_string(ClimateSwingMode swing_mode)
Convert the given ClimateSwingMode to a human-readable string.