mirror of
https://github.com/GrKoR/esphome_aux_ac_component.git
synced 2025-12-31 11:56:22 +03:00
fix: Fahrenheit temperature feedback fix
This commit is contained in:
@@ -1477,7 +1477,8 @@ namespace esphome
|
|||||||
|
|
||||||
// в малом пакете передается большое количество установленных пользователем параметров работы
|
// в малом пакете передается большое количество установленных пользователем параметров работы
|
||||||
// stateFloat = 8 + (small_info_body->target_temp_int_and_v_louver >> 3) + 0.5 * (float)(small_info_body->target_temp_frac >> 7);
|
// stateFloat = 8 + (small_info_body->target_temp_int_and_v_louver >> 3) + 0.5 * (float)(small_info_body->target_temp_frac >> 7);
|
||||||
stateFloat = 8.0 + (float)(small_info_body->target_temp_int) + ((small_info_body->target_temp_frac_bool) ? 0.5 : 0.0);
|
// stateFloat = 8.0 + (float)(small_info_body->target_temp_int) + ((small_info_body->target_temp_frac_bool) ? 0.5 : 0.0);
|
||||||
|
stateFloat = 8.0 + (float)(small_info_body->target_temp_int) + (small_info_body->target_temp_frac_dec / 10.0);
|
||||||
stateChangedFlag = stateChangedFlag || (_current_ac_state.temp_target != stateFloat);
|
stateChangedFlag = stateChangedFlag || (_current_ac_state.temp_target != stateFloat);
|
||||||
_current_ac_state.temp_target = stateFloat;
|
_current_ac_state.temp_target = stateFloat;
|
||||||
_current_ac_state.temp_target_matter = true;
|
_current_ac_state.temp_target_matter = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user