mirror of
https://github.com/esphome/esphome.git
synced 2024-09-30 04:28:42 +02:00
Daikin precision and preset enhancements
This commit is contained in:
parent
e25dd3298c
commit
90e4b1f6a0
@ -149,8 +149,7 @@ uint8_t DaikinClimate::powerful_quiet_preset_() {
|
||||
if (this->preset.has_value()) {
|
||||
if (this->preset == climate::CLIMATE_PRESET_BOOST) {
|
||||
powerful_quiet_preset = DAIKIN_PRESET_POWERFUL_ON;
|
||||
}
|
||||
else if (this->preset == climate::CLIMATE_PRESET_SLEEP) {
|
||||
} else if (this->preset == climate::CLIMATE_PRESET_SLEEP) {
|
||||
powerful_quiet_preset = DAIKIN_PRESET_QUIET_ON;
|
||||
}
|
||||
}
|
||||
|
@ -52,14 +52,14 @@ const uint8_t DAIKIN_STATE_FRAME_SIZE = 19;
|
||||
class DaikinClimate : public climate_ir::ClimateIR {
|
||||
public:
|
||||
DaikinClimate()
|
||||
: climate_ir::ClimateIR(DAIKIN_TEMP_MIN, DAIKIN_TEMP_MAX, 0.5f, true, true,
|
||||
: climate_ir::ClimateIR(
|
||||
DAIKIN_TEMP_MIN, DAIKIN_TEMP_MAX, 0.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,
|
||||
climate::CLIMATE_SWING_HORIZONTAL, climate::CLIMATE_SWING_BOTH},
|
||||
{climate::CLIMATE_PRESET_ECO, climate::CLIMATE_PRESET_BOOST,
|
||||
climate::CLIMATE_PRESET_COMFORT, climate::CLIMATE_PRESET_SLEEP,
|
||||
climate::CLIMATE_PRESET_ACTIVITY, climate::CLIMATE_PRESET_NONE}) {}
|
||||
{climate::CLIMATE_SWING_OFF, climate::CLIMATE_SWING_VERTICAL, climate::CLIMATE_SWING_HORIZONTAL,
|
||||
climate::CLIMATE_SWING_BOTH},
|
||||
{climate::CLIMATE_PRESET_ECO, climate::CLIMATE_PRESET_BOOST, climate::CLIMATE_PRESET_COMFORT,
|
||||
climate::CLIMATE_PRESET_SLEEP, climate::CLIMATE_PRESET_ACTIVITY, climate::CLIMATE_PRESET_NONE}) {}
|
||||
|
||||
protected:
|
||||
// Transmit via IR the state of this climate controller.
|
||||
|
Loading…
Reference in New Issue
Block a user