Update core.yaml

This commit is contained in:
sorz2122
2025-04-09 20:54:06 +02:00
committed by GitHub
parent 41a61d9bb2
commit ef2dcfa54b

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-Konfiguration # Конфигурация ESPHome
esphome: esphome:
name: ${device_name} name: ${device_name}
min_version: 2023.3.0 min_version: 2023.3.0
@@ -88,6 +88,7 @@ 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
@@ -117,18 +118,18 @@ captive_portal:
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # # NICHT BEARBEITEN! # # # # # # # # # # НЕ РЕДАКТИРОВАТЬ! # # # # #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Logging über UART unbedingt deaktivieren # ОБЯЗАТЕЛЬНО отключаем логгирование через UART
logger: logger:
baud_rate: 0 baud_rate: 0
# Geräteeinstellungen: # Раздел настроек устройства:
# - Schalter # - Переключатели
switch: switch:
# Pieper zur Bestätigung von Befehlen, standardmäßig deaktiviert # Пищалка для подтверждения команд, по умолчанию выключена
- name: Pieper - name: Beeper
platform: template platform: template
device_class: switch device_class: switch
id: beep_mode id: beep_mode
@@ -143,9 +144,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: Anzeige - name: Display
platform: template platform: template
device_class: switch device_class: switch
id: display_mode id: display_mode
@@ -160,9 +161,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: Anzeige am Modul - name: Display on module
platform: template platform: template
device_class: switch device_class: switch
id: ledflash_mode id: ledflash_mode
@@ -177,8 +178,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: Konfiguration erzwingen - name: Force config
platform: template platform: template
device_class: switch device_class: switch
id: force_mode id: force_mode
@@ -194,80 +195,118 @@ 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: Vertikales Schwenken name: Vertical swing
id: vswing id: vswing
entity_category: config entity_category: config
options: options:
- "Von oben nach unten" - "Von oben nach unten"
- "Obere Hälfte" - "In der oberen Hälfte"
- "Untere Hälfte" - "In der unteren 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: Horizontales Schwenken name: Horizontal swing
id: hswing id: hswing
entity_category: config entity_category: config
options: options:
- "Von links nach rechts" - "Von links nach rechts"
- "Linke Seite" - "Im linken Bereich"
- "Mitte" - "Im Zentrum"
- "Rechte Seite" - "Im rechten Bereich"
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: Vertikale Fixierung name: Vertical fixing
id: vfixing id: vfixing
entity_category: config entity_category: config
options: options:
- "Letzte Position" - "Letzte Position"
- "Ganz oben" - "Ganz nach oben"
- "Obere Hälfte" - "In der oberen Hälfte"
- "Mitte" - "In der Mitte"
- "Untere Hälfte" - "In der unteren Hälfte"
- "Ganz unten" - "Ganz nach 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: Horizontale Fixierung name: Horizontal fixing
id: hfixing id: hfixing
entity_category: config entity_category: config
options: options:
- "Letzte Position" - "Letzte Position"
- "Ganz links" - "Ganz nach links"
- "Linke Hälfte" - "In der linken Hälfte"
- "Mitte" - "In der Mitte"
- "Rechte Hälfte" - "In der rechten Hälfte"
- "Ganz rechts" - "Ganz nach 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} Klima" name: "${device_name} Climate"
id: ${device_name}climate id: ${device_name}climate