Created
September 11, 2021 02:58
-
-
Save DivanX10/56fe29db58dda2fb7080c14726f365b0 to your computer and use it in GitHub Desktop.
ESPHome. Кондиционер Centek CT-65Z10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Конфигурационный код для управления кондиционером Centek CT-65Z10. Файл aux_ac_custom_component.h скачать здесь https://github.com/GrKoR/esphome_aux_ac_component | |
substitutions: | |
# Именование платы | |
dev_name: ac_centek_ct65z10 | |
board_name: "AC Centek CT-65Z10" | |
mdns_name: "AC Centek CT-65Z10" | |
esphome: | |
name: ${dev_name} | |
platform: ESP32 | |
board: nodemcu-32s | |
includes: | |
- aux_ac_packages/aux_ac_custom_component.h | |
# Учетные данные Wi-Fi для подключения платы к домашней сети | |
wifi: | |
ssid: !secret wifi_ssid | |
password: !secret wifi_password | |
fast_connect: on | |
# Если не будет связи с WiFi, то поднимется точка доступа | |
ap: | |
ssid: !secret ac_ap_ssid | |
password: !secret ac_ap_password | |
# OTA и API | |
ota: | |
password: "esphome" | |
api: | |
password: "esphome" | |
captive_portal: | |
web_server: | |
port: 80 | |
logger: | |
level: DEBUG | |
baud_rate: 0 | |
hardware_uart: UART1 | |
# Кнопка перезапуска | |
switch: | |
- platform: restart | |
name: esp32_Restart | |
#################################################################### | |
uart: | |
id: ac_uart_bus | |
tx_pin: RX | |
rx_pin: TX | |
baud_rate: 4800 | |
data_bits: 8 | |
parity: EVEN | |
stop_bits: 1 | |
climate: | |
- platform: custom | |
lambda: |- | |
extern AirCon acAirCon; | |
if (!acAirCon.get_initialized()) acAirCon.initAC(id(ac_uart_bus)); | |
App.register_component(&acAirCon); | |
return {&acAirCon}; | |
climates: | |
- name: "AC Centek CT-65Z10" | |
sensor: | |
- platform: wifi_signal | |
name: ${dev_name} WiFi Signal | |
update_interval: 30s | |
unit_of_measurement: "dBa" | |
accuracy_decimals: 0 | |
- platform: custom | |
lambda: |- | |
extern AirCon acAirCon; | |
if (!acAirCon.get_initialized()) acAirCon.initAC(id(ac_uart_bus)); | |
App.register_component(&acAirCon); | |
return {acAirCon.sensor_outdoor_temperature, acAirCon.sensor_ambient_temperature}; | |
sensors: | |
- name: ${dev_name} outdoor temperature | |
unit_of_measurement: "°C" | |
accuracy_decimals: 1 | |
- name: ${dev_name} ambient temperature | |
unit_of_measurement: "°C" | |
accuracy_decimals: 1 | |
text_sensor: | |
- platform: custom | |
lambda: |- | |
auto aircon_firmware_version = new AirConFirmwareVersion(); | |
App.register_component(aircon_firmware_version); | |
return {aircon_firmware_version}; | |
text_sensors: | |
name: ${dev_name} firmware version | |
icon: "mdi:chip" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment