mirror of
https://github.com/esphome/esphome.git
synced 2024-11-26 17:05:21 +01:00
Fix set point logging issue (#1201)
This commit is contained in:
parent
25ad33a377
commit
bd392e2efc
1 changed files with 26 additions and 9 deletions
|
@ -507,10 +507,18 @@ Trigger<> *ThermostatClimate::get_swing_mode_horizontal_trigger() const { return
|
||||||
Trigger<> *ThermostatClimate::get_swing_mode_vertical_trigger() const { return this->swing_mode_vertical_trigger_; }
|
Trigger<> *ThermostatClimate::get_swing_mode_vertical_trigger() const { return this->swing_mode_vertical_trigger_; }
|
||||||
void ThermostatClimate::dump_config() {
|
void ThermostatClimate::dump_config() {
|
||||||
LOG_CLIMATE("", "Thermostat", this);
|
LOG_CLIMATE("", "Thermostat", this);
|
||||||
if (this->supports_heat_)
|
if (this->supports_heat_) {
|
||||||
|
if (this->supports_two_points_)
|
||||||
ESP_LOGCONFIG(TAG, " Default Target Temperature Low: %.1f°C", this->normal_config_.default_temperature_low);
|
ESP_LOGCONFIG(TAG, " Default Target Temperature Low: %.1f°C", this->normal_config_.default_temperature_low);
|
||||||
if ((this->supports_cool_) || (this->supports_fan_only_))
|
else
|
||||||
|
ESP_LOGCONFIG(TAG, " Default Target Temperature Low: %.1f°C", this->normal_config_.default_temperature);
|
||||||
|
}
|
||||||
|
if ((this->supports_cool_) || (this->supports_fan_only_)) {
|
||||||
|
if (this->supports_two_points_)
|
||||||
ESP_LOGCONFIG(TAG, " Default Target Temperature High: %.1f°C", this->normal_config_.default_temperature_high);
|
ESP_LOGCONFIG(TAG, " Default Target Temperature High: %.1f°C", this->normal_config_.default_temperature_high);
|
||||||
|
else
|
||||||
|
ESP_LOGCONFIG(TAG, " Default Target Temperature High: %.1f°C", this->normal_config_.default_temperature);
|
||||||
|
}
|
||||||
ESP_LOGCONFIG(TAG, " Hysteresis: %.1f°C", this->hysteresis_);
|
ESP_LOGCONFIG(TAG, " Hysteresis: %.1f°C", this->hysteresis_);
|
||||||
ESP_LOGCONFIG(TAG, " Supports AUTO: %s", YESNO(this->supports_auto_));
|
ESP_LOGCONFIG(TAG, " Supports AUTO: %s", YESNO(this->supports_auto_));
|
||||||
ESP_LOGCONFIG(TAG, " Supports COOL: %s", YESNO(this->supports_cool_));
|
ESP_LOGCONFIG(TAG, " Supports COOL: %s", YESNO(this->supports_cool_));
|
||||||
|
@ -533,11 +541,20 @@ void ThermostatClimate::dump_config() {
|
||||||
ESP_LOGCONFIG(TAG, " Supports TWO SET POINTS: %s", YESNO(this->supports_two_points_));
|
ESP_LOGCONFIG(TAG, " Supports TWO SET POINTS: %s", YESNO(this->supports_two_points_));
|
||||||
ESP_LOGCONFIG(TAG, " Supports AWAY mode: %s", YESNO(this->supports_away_));
|
ESP_LOGCONFIG(TAG, " Supports AWAY mode: %s", YESNO(this->supports_away_));
|
||||||
if (this->supports_away_) {
|
if (this->supports_away_) {
|
||||||
if (this->supports_heat_)
|
if (this->supports_heat_) {
|
||||||
ESP_LOGCONFIG(TAG, " Away Default Target Temperature Low: %.1f°C", this->away_config_.default_temperature_low);
|
if (this->supports_two_points_)
|
||||||
if ((this->supports_cool_) || (this->supports_fan_only_))
|
ESP_LOGCONFIG(TAG, " Away Default Target Temperature Low: %.1f°C",
|
||||||
|
this->away_config_.default_temperature_low);
|
||||||
|
else
|
||||||
|
ESP_LOGCONFIG(TAG, " Away Default Target Temperature Low: %.1f°C", this->away_config_.default_temperature);
|
||||||
|
}
|
||||||
|
if ((this->supports_cool_) || (this->supports_fan_only_)) {
|
||||||
|
if (this->supports_two_points_)
|
||||||
ESP_LOGCONFIG(TAG, " Away Default Target Temperature High: %.1f°C",
|
ESP_LOGCONFIG(TAG, " Away Default Target Temperature High: %.1f°C",
|
||||||
this->away_config_.default_temperature_high);
|
this->away_config_.default_temperature_high);
|
||||||
|
else
|
||||||
|
ESP_LOGCONFIG(TAG, " Away Default Target Temperature High: %.1f°C", this->away_config_.default_temperature);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue