add tcl112 support for dry, fan and swing (#939)

This commit is contained in:
Guillermo Ruffino
2020-01-12 12:39:23 -03:00
committed by Otto Winter
parent d7a2816c58
commit 92d93d658c
2 changed files with 72 additions and 5 deletions
+5 -1
View File
@@ -11,7 +11,11 @@ const float TCL112_TEMP_MIN = 16.0;
class Tcl112Climate : public climate_ir::ClimateIR {
public:
Tcl112Climate() : climate_ir::ClimateIR(TCL112_TEMP_MIN, TCL112_TEMP_MAX, .5f) {}
Tcl112Climate()
: climate_ir::ClimateIR(TCL112_TEMP_MIN, TCL112_TEMP_MAX, .5f, true, true,
{climate::CLIMATE_FAN_AUTO, climate::CLIMATE_FAN_LOW, climate::CLIMATE_FAN_MEDIUM,
climate::CLIMATE_FAN_HIGH},
{climate::CLIMATE_SWING_OFF, climate::CLIMATE_SWING_VERTICAL}) {}
protected:
/// Transmit via IR the state of this climate controller.