Skip to content

Commit

Permalink
Fix reporting power off mode
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbenner committed May 19, 2023
1 parent 962506b commit c25f4e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/daikin_s21/climate/daikin_s21_climate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,11 @@ bool DaikinS21Climate::e2d_swing_v(climate::ClimateSwingMode mode) {

void DaikinS21Climate::update() {
if (this->s21->is_ready()) {
this->mode = this->d2e_climate_mode(this->s21->get_climate_mode());
if (this->s21->is_power_on()) {
this->mode = this->d2e_climate_mode(this->s21->get_climate_mode());
} else {
this->mode = climate::CLIMATE_MODE_OFF;
}
this->set_custom_fan_mode_(this->d2e_fan_mode(this->s21->get_fan_mode()));
this->swing_mode = this->d2e_swing_mode(this->s21->get_swing_v(),
this->s21->get_swing_h());
Expand Down

0 comments on commit c25f4e4

Please sign in to comment.