mirror of
https://github.com/GrKoR/esphome_aux_ac_component.git
synced 2025-12-12 14:37:11 +03:00
Merge branch 'dev' into Brokly-31-05
This commit is contained in:
@@ -1206,7 +1206,7 @@ class AirCon : public esphome::Component, public esphome::climate::Climate {
|
||||
stateChangedFlag = stateChangedFlag || (_current_ac_state.temp_outbound != stateFloat);
|
||||
_current_ac_state.temp_outbound = stateFloat;
|
||||
|
||||
// температура непонятная температура
|
||||
// температура компрессора внешнего блока
|
||||
stateFloat = big_info_body->compressor_temperature_int - 0x20;
|
||||
stateChangedFlag = stateChangedFlag || (_current_ac_state.temp_compressor != stateFloat);
|
||||
_current_ac_state.temp_compressor = stateFloat;
|
||||
@@ -3071,6 +3071,13 @@ class AirCon : public esphome::Component, public esphome::climate::Climate {
|
||||
uint8_t load_presets_result = 0xFF;
|
||||
#endif
|
||||
|
||||
#if defined(PRESETS_SAVING)
|
||||
void set_store_settings(bool store_settings) { this->_store_settings = store_settings; }
|
||||
bool get_store_settings() { return this->_store_settings; }
|
||||
|
||||
uint8_t load_presets_result = 0xFF;
|
||||
#endif
|
||||
|
||||
void setup() override {
|
||||
|
||||
#if defined(PRESETS_SAVING)
|
||||
|
||||
@@ -15,16 +15,16 @@ from esphome.const import (
|
||||
CONF_SUPPORTED_MODES,
|
||||
CONF_SUPPORTED_SWING_MODES,
|
||||
CONF_SUPPORTED_PRESETS,
|
||||
CONF_PRESSURE,
|
||||
#CONF_PRESSURE,
|
||||
UNIT_CELSIUS,
|
||||
UNIT_PERCENT,
|
||||
UNIT_PASCAL,
|
||||
#UNIT_PASCAL,
|
||||
ICON_POWER,
|
||||
ICON_THERMOMETER,
|
||||
ICON_GAS_CYLINDER,
|
||||
#ICON_GAS_CYLINDER,
|
||||
DEVICE_CLASS_TEMPERATURE,
|
||||
DEVICE_CLASS_POWER_FACTOR,
|
||||
DEVICE_CLASS_PRESSURE,
|
||||
#DEVICE_CLASS_PRESSURE,
|
||||
STATE_CLASS_MEASUREMENT,
|
||||
)
|
||||
from esphome.components.climate import (
|
||||
|
||||
Reference in New Issue
Block a user