Skip to content

Commit

Permalink
Fix reporting power off action
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbenner committed May 19, 2023
1 parent c25f4e4 commit 71b210b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/daikin_s21/climate/daikin_s21_climate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,14 @@ void DaikinS21Climate::update() {
if (this->s21->is_ready()) {
if (this->s21->is_power_on()) {
this->mode = this->d2e_climate_mode(this->s21->get_climate_mode());
this->action = this->d2e_climate_action();
} else {
this->mode = climate::CLIMATE_MODE_OFF;
this->action = climate::CLIMATE_ACTION_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());
this->action = this->d2e_climate_action();
this->current_temperature = this->s21->get_temp_inside();
this->target_temperature = this->s21->get_setpoint();
this->publish_state();
Expand Down

0 comments on commit 71b210b

Please sign in to comment.