forked from omerfaruk-aran/esphome_samsung_hvac_bus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conversions.h
31 lines (24 loc) · 1.15 KB
/
conversions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once
#include <optional>
#include "esphome/components/climate/climate.h"
#include "protocol.h"
namespace esphome
{
namespace samsung_ac
{
Mode str_to_mode(const std::string &value);
std::string mode_to_str(Mode mode);
WaterHeaterMode str_to_water_heater_mode(const std::string &value);
std::string water_heater_mode_to_str(WaterHeaterMode waterheatermode);
optional<climate::ClimateMode> mode_to_climatemode(Mode mode);
Mode climatemode_to_mode(climate::ClimateMode mode);
optional<climate::ClimateFanMode> fanmode_to_climatefanmode(FanMode fanmode);
std::string fanmode_to_custom_climatefanmode(FanMode fanmode);
FanMode climatefanmode_to_fanmode(climate::ClimateFanMode fanmode);
FanMode customfanmode_to_fanmode(const std::string &value);
AltModeName preset_to_altmodename(climate::ClimatePreset preset);
optional<climate::ClimatePreset> altmodename_to_preset(const AltModeName& name);
climate::ClimateSwingMode swingmode_to_climateswingmode(SwingMode swingMode);
SwingMode climateswingmode_to_swingmode(climate::ClimateSwingMode swingMode);
} // namespace samsung_ac
} // namespace esphome