Update core.yaml

This commit is contained in:
sorz2122
2025-04-09 20:48:33 +02:00
committed by GitHub
parent f437dd9c96
commit 41a61d9bb2

View File

@@ -1,8 +1,8 @@
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # # НЕ РЕДАКТИРОВАТЬ!! # # # # # # # # # # NICHT BEARBEITEN!! # # # # #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Компонент климата # Klimakomponente
external_components: external_components:
- source: - source:
url: https://github.com/I-am-nightingale/tclac.git url: https://github.com/I-am-nightingale/tclac.git
@@ -11,7 +11,7 @@ external_components:
components: [ tclac ] components: [ tclac ]
refresh: 30s refresh: 30s
# Конфигурация ESPHome # ESPHome-Konfiguration
esphome: esphome:
name: ${device_name} name: ${device_name}
min_version: 2023.3.0 min_version: 2023.3.0
@@ -88,7 +88,6 @@ esphome:
id(${device_name}climate).set_force_mode_state(true); id(${device_name}climate).set_force_mode_state(true);
} else { } else {
id(${device_name}climate).set_force_mode_state(false); id(${device_name}climate).set_force_mode_state(false);
}
uart: uart:
baud_rate: 9600 baud_rate: 9600
@@ -118,18 +117,18 @@ captive_portal:
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # # НЕ РЕДАКТИРОВАТЬ! # # # # # # # # # # NICHT BEARBEITEN! # # # # #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# ОБЯЗАТЕЛЬНО отключаем логгирование через UART # Logging über UART unbedingt deaktivieren
logger: logger:
baud_rate: 0 baud_rate: 0
# Раздел настроек устройства: # Geräteeinstellungen:
# - Переключатели # - Schalter
switch: switch:
# Пищалка для подтверждения команд, по умолчанию выключена # Pieper zur Bestätigung von Befehlen, standardmäßig deaktiviert
- name: Beeper - name: Pieper
platform: template platform: template
device_class: switch device_class: switch
id: beep_mode id: beep_mode
@@ -144,9 +143,9 @@ switch:
then: then:
lambda: !lambda |- lambda: !lambda |-
id(${device_name}climate).set_beeper_state(false); id(${device_name}climate).set_beeper_state(false);
# Индикатор уставки температуры на корпусе внутреннего блока, по умолчанию включен # Anzeige der eingestellten Temperatur auf dem Gehäuse des Innengeräts, standardmäßig aktiviert
- name: Display - name: Anzeige
platform: template platform: template
device_class: switch device_class: switch
id: display_mode id: display_mode
@@ -161,9 +160,9 @@ switch:
then: then:
lambda: !lambda |- lambda: !lambda |-
id(${device_name}climate).set_display_state(false); id(${device_name}climate).set_display_state(false);
# Светодиодная индикация обмена данными с кондиционером, по умолчанию выключена # LED-Anzeige für den Datenaustausch mit der Klimaanlage, standardmäßig deaktiviert
- name: Display on module - name: Anzeige am Modul
platform: template platform: template
device_class: switch device_class: switch
id: ledflash_mode id: ledflash_mode
@@ -178,8 +177,8 @@ switch:
then: then:
lambda: !lambda |- lambda: !lambda |-
id(${device_name}climate).set_module_display_state(false); id(${device_name}climate).set_module_display_state(false);
- name: Force config - name: Konfiguration erzwingen
platform: template platform: template
device_class: switch device_class: switch
id: force_mode id: force_mode
@@ -195,118 +194,80 @@ switch:
lambda: !lambda |- lambda: !lambda |-
id(${device_name}climate).set_force_mode_state(false); id(${device_name}climate).set_force_mode_state(false);
# - Выпадающие списки # - Dropdown-Menüs
select: select:
# Настройка вертикального качания # Einstellung der vertikalen Schwenkung
- platform: template - platform: template
name: Vertical swing name: Vertikales Schwenken
id: vswing id: vswing
entity_category: config entity_category: config
options: options:
- "Сверху вниз" - "Von oben nach unten"
- "В верхней половине" - "Obere Hälfte"
- "В нижней половине" - "Untere Hälfte"
optimistic: true optimistic: true
restore_value: true restore_value: true
on_value: on_value:
then: then:
lambda: !lambda |- lambda: !lambda |-
if (id(vswing).active_index() == 0){ ...
id(${device_name}climate).set_vertical_swing_direction(esphome::tclac::VerticalSwingDirection::UP_DOWN);
} else if (id(vswing).active_index() == 1){
id(${device_name}climate).set_vertical_swing_direction(esphome::tclac::VerticalSwingDirection::UPSIDE);
} else if (id(vswing).active_index() == 2){
id(${device_name}climate).set_vertical_swing_direction(esphome::tclac::VerticalSwingDirection::DOWNSIDE);
}
# Настройка горизонтального качания # Einstellung der horizontalen Schwenkung
- platform: template - platform: template
name: Horizontal swing name: Horizontales Schwenken
id: hswing id: hswing
entity_category: config entity_category: config
options: options:
- "Слева направо" - "Von links nach rechts"
- "В левой части" - "Linke Seite"
- "В центре" - "Mitte"
- "В правой части" - "Rechte Seite"
optimistic: true optimistic: true
restore_value: true restore_value: true
on_value: on_value:
then: then:
lambda: !lambda |- lambda: !lambda |-
if (id(hswing).active_index() == 0){ ...
id(${device_name}climate).set_horizontal_swing_direction(esphome::tclac::HorizontalSwingDirection::LEFT_RIGHT);
} else if (id(hswing).active_index() == 1){
id(${device_name}climate).set_horizontal_swing_direction(esphome::tclac::HorizontalSwingDirection::LEFTSIDE);
} else if (id(hswing).active_index() == 2){
id(${device_name}climate).set_horizontal_swing_direction(esphome::tclac::HorizontalSwingDirection::CENTER);
} else if (id(hswing).active_index() == 3){
id(${device_name}climate).set_horizontal_swing_direction(esphome::tclac::HorizontalSwingDirection::RIGHTSIDE);
}
# Настройка фиксации вертикальной заслонки # Einstellung der vertikalen Lamellenposition
- platform: template - platform: template
name: Vertical fixing name: Vertikale Fixierung
id: vfixing id: vfixing
entity_category: config entity_category: config
options: options:
- "Последнее положение" - "Letzte Position"
- "До упора вверх" - "Ganz oben"
- "В верхней половине" - "Obere Hälfte"
- "По середине" - "Mitte"
- "В нижней половине" - "Untere Hälfte"
- "До упора вниз" - "Ganz unten"
optimistic: true optimistic: true
restore_value: true restore_value: true
on_value: on_value:
then: then:
lambda: !lambda |- lambda: !lambda |-
if (id(vfixing).active_index() == 0){ ...
id(${device_name}climate).set_vertical_airflow(esphome::tclac::AirflowVerticalDirection::LAST);
} else if (id(vfixing).active_index() == 1){
id(${device_name}climate).set_vertical_airflow(esphome::tclac::AirflowVerticalDirection::MAX_UP);
} else if (id(vfixing).active_index() == 2){
id(${device_name}climate).set_vertical_airflow(esphome::tclac::AirflowVerticalDirection::UP);
} else if (id(vfixing).active_index() == 3){
id(${device_name}climate).set_vertical_airflow(esphome::tclac::AirflowVerticalDirection::CENTER);
} else if (id(vfixing).active_index() == 4){
id(${device_name}climate).set_vertical_airflow(esphome::tclac::AirflowVerticalDirection::DOWN);
} else if (id(vfixing).active_index() == 5){
id(${device_name}climate).set_vertical_airflow(esphome::tclac::AirflowVerticalDirection::MAX_DOWN);
}
# Настройка фиксации горизонатальных заслонок # Einstellung der horizontalen Lamellenposition
- platform: template - platform: template
name: Horizontal fixing name: Horizontale Fixierung
id: hfixing id: hfixing
entity_category: config entity_category: config
options: options:
- "Последнее положение" - "Letzte Position"
- "До упора влево" - "Ganz links"
- "В левой половине" - "Linke Hälfte"
- "По середине" - "Mitte"
- "В правой половине" - "Rechte Hälfte"
- "До упора вправо" - "Ganz rechts"
optimistic: true optimistic: true
restore_value: true restore_value: true
on_value: on_value:
then: then:
lambda: !lambda |- lambda: !lambda |-
if (id(hfixing).active_index() == 0){ ...
id(${device_name}climate).set_horizontal_airflow(esphome::tclac::AirflowHorizontalDirection::LAST);
} else if (id(hfixing).active_index() == 1){
id(${device_name}climate).set_horizontal_airflow(esphome::tclac::AirflowHorizontalDirection::MAX_LEFT);
} else if (id(hfixing).active_index() == 2){
id(${device_name}climate).set_horizontal_airflow(esphome::tclac::AirflowHorizontalDirection::LEFT);
} else if (id(hfixing).active_index() == 3){
id(${device_name}climate).set_horizontal_airflow(esphome::tclac::AirflowHorizontalDirection::CENTER);
} else if (id(hfixing).active_index() == 4){
id(${device_name}climate).set_horizontal_airflow(esphome::tclac::AirflowHorizontalDirection::RIGHT);
} else if (id(hfixing).active_index() == 5){
id(${device_name}climate).set_horizontal_airflow(esphome::tclac::AirflowHorizontalDirection::MAX_RIGHT);
}
climate: climate:
- platform: tclac - platform: tclac
name: "${device_name} Climate" name: "${device_name} Klima"
id: ${device_name}climate id: ${device_name}climate