Subtropic AC tested + minor fixes

This commit is contained in:
GrKoR
2021-11-02 18:15:54 +03:00
parent 505af50dce
commit c700a2fbde
4 changed files with 6 additions and 1 deletions

View File

@@ -24,6 +24,7 @@ These ACs were tested by the author or by users.
+ Roda (models: RS-AL09F)
+ Rovex (models: RS-07ALS1, RS-09ALS1, RS-12ALS1)
+ Samurai (models: SMA-07HRN1 ION, SMA-09HRN1 ION)
+ Subtropic (models: SUB-07HN1_18Y)
### List of potential compatible ACs ###

View File

@@ -34,6 +34,7 @@ Readme in english [is here](README-EN.md#esphome-aux-air-conditioner-custom-comp
+ Roda (models: RS-AL09F)
+ Rovex (models: RS-07ALS1, RS-09ALS1, RS-12ALS1)
+ Samurai (models: SMA-07HRN1 ION, SMA-09HRN1 ION)
+ Subtropic (models: SUB-07HN1_18Y)
### Список потенциально совместимых кондиционеров ###

View File

@@ -1838,6 +1838,7 @@ class AirCon : public esphome::Component, public esphome::climate::Climate {
// вывод в дебаг текущей конфигурации компонента
void dump_config() {
ESP_LOGCONFIG(Constants::TAG, "AUX HVAC:");
ESP_LOGCONFIG(Constants::TAG, " [x] Firmware version: %s", &Constants::AC_ROVEX_FIRMWARE_VERSION);
ESP_LOGCONFIG(Constants::TAG, " [x] Period: %dms", this->get_period());
ESP_LOGCONFIG(Constants::TAG, " [x] Show action: %s", this->get_show_action() ? "true" : "false");
if ((this->sensor_indoor_temperature_) != nullptr) {

View File

@@ -10,6 +10,7 @@ from esphome.const import (
CONF_CUSTOM_PRESETS,
CONF_INTERNAL,
UNIT_CELSIUS,
ICON_THERMOMETER,
DEVICE_CLASS_TEMPERATURE,
STATE_CLASS_MEASUREMENT,
)
@@ -21,7 +22,7 @@ from esphome.components.climate import (
_LOGGER = logging.getLogger(__name__)
CODEOWNERS = ["@GrKoR"]
DEPENDENCIES = ["climate", "uart"]
DEPENDENCIES = ["climate", "uart", "sensor"]
CONF_SUPPORTED_MODES = 'supported_modes'
CONF_SUPPORTED_SWING_MODES = 'supported_swing_modes'
@@ -80,6 +81,7 @@ CONFIG_SCHEMA = cv.All(
cv.Optional(CONF_SHOW_ACTION, default="true"): cv.boolean,
cv.Optional(CONF_INDOOR_TEMPERATURE): sensor.sensor_schema(
unit_of_measurement=UNIT_CELSIUS,
icon=ICON_THERMOMETER,
accuracy_decimals=1,
device_class=DEVICE_CLASS_TEMPERATURE,
state_class=STATE_CLASS_MEASUREMENT,