Add files via upload

This commit is contained in:
Brokly
2022-05-27 08:16:53 +03:00
committed by GitHub
parent 947bd4c2d9
commit f67bc7df33

View File

@@ -1316,7 +1316,7 @@ class AirCon : public esphome::Component, public esphome::climate::Climate {
{
const float koef = ((float)OUTDOOR_FILTER_PESCENT)/100;
const float antkoef = 1.0 - koef;
static float temp = _current_ac_state.temp_outdoor;
static float temp = big_info_body->outdoor_temperature - 0x20;
temp = temp * antkoef + koef * (big_info_body->outdoor_temperature - 0x20);
stateChangedFlag = stateChangedFlag || (_current_ac_state.temp_outdoor != temp);
_current_ac_state.temp_outdoor = temp;