mirror of
https://github.com/GrKoR/esphome_aux_ac_component.git
synced 2025-12-30 11:28:15 +03:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
36dc1fe15f | ||
|
|
8597e46e3f | ||
|
|
c49bed261d | ||
|
|
babcb8f895 | ||
|
|
0a09ad6642 | ||
|
|
fa0b698afa | ||
|
|
3391368179 | ||
|
|
fc56fb7966 |
@@ -1476,13 +1476,12 @@ namespace esphome
|
|||||||
small_info_body = (packet_small_info_body_t *)(_inPacket.body);
|
small_info_body = (packet_small_info_body_t *)(_inPacket.body);
|
||||||
|
|
||||||
// в малом пакете передается большое количество установленных пользователем параметров работы
|
// в малом пакете передается большое количество установленных пользователем параметров работы
|
||||||
// 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;
|
||||||
|
|
||||||
// stateByte = small_info_body->target_temp_int_and_v_louver & AC_LOUVERV_MASK;
|
|
||||||
stateByte = small_info_body->v_louver;
|
stateByte = small_info_body->v_louver;
|
||||||
stateChangedFlag = stateChangedFlag || (_current_ac_state.louver.louver_v != (ac_louver_V)stateByte);
|
stateChangedFlag = stateChangedFlag || (_current_ac_state.louver.louver_v != (ac_louver_V)stateByte);
|
||||||
_current_ac_state.louver.louver_v = (ac_louver_V)stateByte;
|
_current_ac_state.louver.louver_v = (ac_louver_V)stateByte;
|
||||||
@@ -1946,6 +1945,7 @@ namespace esphome
|
|||||||
{
|
{
|
||||||
pack->body[4] = (pack->body[4] & ~AC_TEMP_TARGET_FRAC_PART_MASK);
|
pack->body[4] = (pack->body[4] & ~AC_TEMP_TARGET_FRAC_PART_MASK);
|
||||||
}
|
}
|
||||||
|
pack->body[14] = ((uint8_t)(cmd->temp_target * 10)) % 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
// значение ограничения мощности инвертора
|
// значение ограничения мощности инвертора
|
||||||
@@ -4025,7 +4025,7 @@ namespace esphome
|
|||||||
// initAC() в формируемом питоном коде вызывается до вызова aux_ac.set_supported_***() с установленными пользователем в конфиге параметрами
|
// initAC() в формируемом питоном коде вызывается до вызова aux_ac.set_supported_***() с установленными пользователем в конфиге параметрами
|
||||||
#if ESPHOME_VERSION_CODE >= VERSION_CODE(2025, 11, 0)
|
#if ESPHOME_VERSION_CODE >= VERSION_CODE(2025, 11, 0)
|
||||||
_traits.add_feature_flags(climate::CLIMATE_SUPPORTS_CURRENT_TEMPERATURE);
|
_traits.add_feature_flags(climate::CLIMATE_SUPPORTS_CURRENT_TEMPERATURE);
|
||||||
_traits.add_feature_flags(climate::CLIMATE_REQUIRES_TWO_POINT_TARGET_TEMPERATURE);
|
// NOT setting CLIMATE_REQUIRES_TWO_POINT_TARGET_TEMPERATURE - this device uses single target temperature
|
||||||
#else
|
#else
|
||||||
_traits.set_supports_current_temperature(true);
|
_traits.set_supports_current_temperature(true);
|
||||||
_traits.set_supports_two_point_target_temperature(false); // if the climate device's target temperature should be split in target_temperature_low and target_temperature_high instead of just the single target_temperature
|
_traits.set_supports_two_point_target_temperature(false); // if the climate device's target temperature should be split in target_temperature_low and target_temperature_high instead of just the single target_temperature
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ from esphome.components.climate import (
|
|||||||
ClimateSwingMode,
|
ClimateSwingMode,
|
||||||
)
|
)
|
||||||
|
|
||||||
AUX_AC_FIRMWARE_VERSION = '0.3.1'
|
AUX_AC_FIRMWARE_VERSION = '0.3.2'
|
||||||
AC_PACKET_TIMEOUT_MIN = 150
|
AC_PACKET_TIMEOUT_MIN = 150
|
||||||
AC_PACKET_TIMEOUT_MAX = 600
|
AC_PACKET_TIMEOUT_MAX = 600
|
||||||
AC_POWER_LIMIT_MIN = 30
|
AC_POWER_LIMIT_MIN = 30
|
||||||
|
|||||||
Reference in New Issue
Block a user