mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-26 15:48:28 +02:00
Add climate preset NONE again (#1951)
This commit is contained in:
@@ -84,6 +84,8 @@ const char *climate_swing_mode_to_string(ClimateSwingMode swing_mode) {
|
||||
|
||||
const char *climate_preset_to_string(ClimatePreset preset) {
|
||||
switch (preset) {
|
||||
case climate::CLIMATE_PRESET_NONE:
|
||||
return "NONE";
|
||||
case climate::CLIMATE_PRESET_HOME:
|
||||
return "HOME";
|
||||
case climate::CLIMATE_PRESET_ECO:
|
||||
|
||||
@@ -74,20 +74,22 @@ enum ClimateSwingMode : uint8_t {
|
||||
|
||||
/// Enum for all modes a climate swing can be in
|
||||
enum ClimatePreset : uint8_t {
|
||||
/// Preset is set to HOME
|
||||
CLIMATE_PRESET_HOME = 0,
|
||||
/// Preset is set to AWAY
|
||||
CLIMATE_PRESET_AWAY = 1,
|
||||
/// Preset is set to BOOST
|
||||
CLIMATE_PRESET_BOOST = 2,
|
||||
/// Preset is set to COMFORT
|
||||
CLIMATE_PRESET_COMFORT = 3,
|
||||
/// Preset is set to ECO
|
||||
CLIMATE_PRESET_ECO = 4,
|
||||
/// Preset is set to SLEEP
|
||||
CLIMATE_PRESET_SLEEP = 5,
|
||||
/// Preset is set to ACTIVITY
|
||||
CLIMATE_PRESET_ACTIVITY = 6,
|
||||
/// No preset is active
|
||||
CLIMATE_PRESET_NONE = 0,
|
||||
/// Device is in home preset
|
||||
CLIMATE_PRESET_HOME = 1,
|
||||
/// Device is in away preset
|
||||
CLIMATE_PRESET_AWAY = 2,
|
||||
/// Device is in boost preset
|
||||
CLIMATE_PRESET_BOOST = 3,
|
||||
/// Device is in comfort preset
|
||||
CLIMATE_PRESET_COMFORT = 4,
|
||||
/// Device is running an energy-saving preset
|
||||
CLIMATE_PRESET_ECO = 5,
|
||||
/// Device is prepared for sleep
|
||||
CLIMATE_PRESET_SLEEP = 6,
|
||||
/// Device is reacting to activity (e.g., movement sensors)
|
||||
CLIMATE_PRESET_ACTIVITY = 7,
|
||||
};
|
||||
|
||||
/// Convert the given ClimateMode to a human-readable string.
|
||||
|
||||
Reference in New Issue
Block a user