mirror of
https://github.com/esphome/esphome.git
synced 2024-12-02 11:44:13 +01:00
25 lines
718 B
C
25 lines
718 B
C
|
#pragma once
|
||
|
|
||
|
#include <cstdint>
|
||
|
|
||
|
namespace esphome {
|
||
|
namespace climate {
|
||
|
|
||
|
/// Enum for all modes a climate device can be in.
|
||
|
enum ClimateMode : uint8_t {
|
||
|
/// The climate device is off (not in auto, heat or cool mode)
|
||
|
CLIMATE_MODE_OFF = 0,
|
||
|
/// The climate device is set to automatically change the heating/cooling cycle
|
||
|
CLIMATE_MODE_AUTO = 1,
|
||
|
/// The climate device is manually set to cool mode (not in auto mode!)
|
||
|
CLIMATE_MODE_COOL = 2,
|
||
|
/// The climate device is manually set to heat mode (not in auto mode!)
|
||
|
CLIMATE_MODE_HEAT = 3,
|
||
|
};
|
||
|
|
||
|
/// Convert the given ClimateMode to a human-readable string.
|
||
|
const char *climate_mode_to_string(ClimateMode mode);
|
||
|
|
||
|
} // namespace climate
|
||
|
} // namespace esphome
|