mirror of
https://github.com/esphome/esphome.git
synced 2024-11-06 09:25:37 +01:00
Use heat mode for heat. Move EXT HT to custom presets. (#3437)
* Use heat mode for heat. Move EXT HT to custom presets. * Fix syntax error.
This commit is contained in:
parent
40f622949e
commit
c1480029fb
@ -117,7 +117,7 @@ void Bedjet::control(const ClimateCall &call) {
|
|||||||
pkt = this->codec_->get_button_request(BTN_OFF);
|
pkt = this->codec_->get_button_request(BTN_OFF);
|
||||||
break;
|
break;
|
||||||
case climate::CLIMATE_MODE_HEAT:
|
case climate::CLIMATE_MODE_HEAT:
|
||||||
pkt = this->codec_->get_button_request(BTN_EXTHT);
|
pkt = this->codec_->get_button_request(BTN_HEAT);
|
||||||
break;
|
break;
|
||||||
case climate::CLIMATE_MODE_FAN_ONLY:
|
case climate::CLIMATE_MODE_FAN_ONLY:
|
||||||
pkt = this->codec_->get_button_request(BTN_COOL);
|
pkt = this->codec_->get_button_request(BTN_COOL);
|
||||||
@ -137,7 +137,7 @@ void Bedjet::control(const ClimateCall &call) {
|
|||||||
} else {
|
} else {
|
||||||
this->force_refresh_ = true;
|
this->force_refresh_ = true;
|
||||||
this->mode = mode;
|
this->mode = mode;
|
||||||
// We're using (custom) preset for Turbo & M1-3 presets, so changing climate mode will clear those
|
// We're using (custom) preset for Turbo, EXT HT, & M1-3 presets, so changing climate mode will clear those
|
||||||
this->custom_preset.reset();
|
this->custom_preset.reset();
|
||||||
this->preset.reset();
|
this->preset.reset();
|
||||||
}
|
}
|
||||||
@ -186,6 +186,8 @@ void Bedjet::control(const ClimateCall &call) {
|
|||||||
pkt = this->codec_->get_button_request(BTN_M2);
|
pkt = this->codec_->get_button_request(BTN_M2);
|
||||||
} else if (preset == "M3") {
|
} else if (preset == "M3") {
|
||||||
pkt = this->codec_->get_button_request(BTN_M3);
|
pkt = this->codec_->get_button_request(BTN_M3);
|
||||||
|
} else if (preset == "EXT HT") {
|
||||||
|
pkt = this->codec_->get_button_request(BTN_EXTHT);
|
||||||
} else {
|
} else {
|
||||||
ESP_LOGW(TAG, "Unsupported preset: %s", preset.c_str());
|
ESP_LOGW(TAG, "Unsupported preset: %s", preset.c_str());
|
||||||
return;
|
return;
|
||||||
|
@ -67,6 +67,8 @@ class Bedjet : public climate::Climate, public esphome::ble_client::BLEClientNod
|
|||||||
// We could fetch biodata from bedjet and set these names that way.
|
// We could fetch biodata from bedjet and set these names that way.
|
||||||
// But then we have to invert the lookup in order to send the right preset.
|
// But then we have to invert the lookup in order to send the right preset.
|
||||||
// For now, we can leave them as M1-3 to match the remote buttons.
|
// For now, we can leave them as M1-3 to match the remote buttons.
|
||||||
|
// EXT HT added to match remote button.
|
||||||
|
"EXT HT",
|
||||||
"M1",
|
"M1",
|
||||||
"M2",
|
"M2",
|
||||||
"M3",
|
"M3",
|
||||||
|
Loading…
Reference in New Issue
Block a user