added firmware version output in dump_conf

This commit is contained in:
GrKoR
2021-11-02 20:31:57 +03:00
parent c700a2fbde
commit a1a9351192
3 changed files with 8 additions and 2 deletions

View File

@@ -1838,7 +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] Firmware version: %s", Constants::AC_ROVEX_FIRMWARE_VERSION.c_str());
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

@@ -33,6 +33,9 @@ api:
ota:
password: !secret ota_pass
web_server:
port: 80
uart:
id: ac_uart_bus
tx_pin: GPIO1
@@ -56,7 +59,7 @@ climate:
indoor_temperature: # сенсор, показывающий температуру воздуха на внутреннем блоке кондиционера; имеет все те же параметры, как и любой сенсор ESPHome
name: AC Indoor Temperature
id: ac_indoor_temp
internal: true # сенсор установлен как внутренний по дефолту (не попадёт в Home Assistant)
internal: false # сенсор установлен как внутренний по дефолту (не попадёт в Home Assistant)
visual:
min_temperature: 16
max_temperature: 32

View File

@@ -33,6 +33,9 @@ api:
ota:
password: !secret ota_pass
web_server:
port: 80
uart:
id: ac_uart_bus
tx_pin: GPIO1