mirror of
https://github.com/esphome/esphome.git
synced 2024-11-29 18:24:13 +01:00
Fix for Fujitsu AC not having Quiet Fan Mode (#4962)
This commit is contained in:
parent
8c9d63f48f
commit
77a7d3f24b
2 changed files with 6 additions and 3 deletions
|
@ -151,11 +151,13 @@ void FujitsuGeneralClimate::transmit_state() {
|
||||||
case climate::CLIMATE_FAN_LOW:
|
case climate::CLIMATE_FAN_LOW:
|
||||||
SET_NIBBLE(remote_state, FUJITSU_GENERAL_FAN_NIBBLE, FUJITSU_GENERAL_FAN_LOW);
|
SET_NIBBLE(remote_state, FUJITSU_GENERAL_FAN_NIBBLE, FUJITSU_GENERAL_FAN_LOW);
|
||||||
break;
|
break;
|
||||||
|
case climate::CLIMATE_FAN_QUIET:
|
||||||
|
SET_NIBBLE(remote_state, FUJITSU_GENERAL_FAN_NIBBLE, FUJITSU_GENERAL_FAN_SILENT);
|
||||||
|
break;
|
||||||
case climate::CLIMATE_FAN_AUTO:
|
case climate::CLIMATE_FAN_AUTO:
|
||||||
default:
|
default:
|
||||||
SET_NIBBLE(remote_state, FUJITSU_GENERAL_FAN_NIBBLE, FUJITSU_GENERAL_FAN_AUTO);
|
SET_NIBBLE(remote_state, FUJITSU_GENERAL_FAN_NIBBLE, FUJITSU_GENERAL_FAN_AUTO);
|
||||||
break;
|
break;
|
||||||
// TODO Quiet / Silent
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set swing
|
// Set swing
|
||||||
|
@ -345,8 +347,9 @@ bool FujitsuGeneralClimate::on_receive(remote_base::RemoteReceiveData data) {
|
||||||
const uint8_t recv_fan_mode = GET_NIBBLE(recv_message, FUJITSU_GENERAL_FAN_NIBBLE);
|
const uint8_t recv_fan_mode = GET_NIBBLE(recv_message, FUJITSU_GENERAL_FAN_NIBBLE);
|
||||||
ESP_LOGV(TAG, "Received fan mode %X", recv_fan_mode);
|
ESP_LOGV(TAG, "Received fan mode %X", recv_fan_mode);
|
||||||
switch (recv_fan_mode) {
|
switch (recv_fan_mode) {
|
||||||
// TODO No Quiet / Silent in ESPH
|
|
||||||
case FUJITSU_GENERAL_FAN_SILENT:
|
case FUJITSU_GENERAL_FAN_SILENT:
|
||||||
|
this->fan_mode = climate::CLIMATE_FAN_QUIET;
|
||||||
|
break;
|
||||||
case FUJITSU_GENERAL_FAN_LOW:
|
case FUJITSU_GENERAL_FAN_LOW:
|
||||||
this->fan_mode = climate::CLIMATE_FAN_LOW;
|
this->fan_mode = climate::CLIMATE_FAN_LOW;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -52,7 +52,7 @@ class FujitsuGeneralClimate : public climate_ir::ClimateIR {
|
||||||
FujitsuGeneralClimate()
|
FujitsuGeneralClimate()
|
||||||
: ClimateIR(FUJITSU_GENERAL_TEMP_MIN, FUJITSU_GENERAL_TEMP_MAX, 1.0f, true, true,
|
: ClimateIR(FUJITSU_GENERAL_TEMP_MIN, FUJITSU_GENERAL_TEMP_MAX, 1.0f, true, true,
|
||||||
{climate::CLIMATE_FAN_AUTO, climate::CLIMATE_FAN_LOW, climate::CLIMATE_FAN_MEDIUM,
|
{climate::CLIMATE_FAN_AUTO, climate::CLIMATE_FAN_LOW, climate::CLIMATE_FAN_MEDIUM,
|
||||||
climate::CLIMATE_FAN_HIGH},
|
climate::CLIMATE_FAN_HIGH, climate::CLIMATE_FAN_QUIET},
|
||||||
{climate::CLIMATE_SWING_OFF, climate::CLIMATE_SWING_VERTICAL, climate::CLIMATE_SWING_HORIZONTAL,
|
{climate::CLIMATE_SWING_OFF, climate::CLIMATE_SWING_VERTICAL, climate::CLIMATE_SWING_HORIZONTAL,
|
||||||
climate::CLIMATE_SWING_BOTH}) {}
|
climate::CLIMATE_SWING_BOTH}) {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue