Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.

idreamshen/esphome-ptxzn-vrf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

本仓库已废弃,请使用 esphome-demry-vrf


图文教程

中央空调网关 PTXZN VRF 改造刷入 esphome 固件

主要步骤

硬件改造

  1. 拆除原先 VRF 板载 ESP32 模组
  2. 为 TX/RX 焊接接线端子,并将线引出
  3. 使用外置电源(确保和 VRF 电源共地)给 ESP8266/ESP32 上电,并将上述的 TX/RX 与 ESP8266/ESP32 的 RX/TX 相连

Esphome 配置

esphome:
  name: ptxzn-vrf
  friendly_name: ptxzn-vrf
  includes:
    # 在 esphome 文件夹中新建 esphome-ptxzn-vrf 目录,并复制 ptxzn_vrf.h 到该目录
    - esphome-ptxzn-vrf/ptxzn_vrf.h 
    

logger:
  baud_rate: 0 # 关闭串口日志

uart:
  - id: vrf_uart
    tx_pin: 1
    rx_pin: 3
    baud_rate: 9600

climate:
- platform: custom
  # new PtxznVrfComponent(id(vrf_uart), 4) 中的 4 代表 N 台内机
  lambda: |-
    auto vrfComponent = new PtxznVrfComponent(id(vrf_uart), 4);
    App.register_component(vrfComponent);
    App.register_component(vrfComponent->ptxznVrfClimateComponents[0]);
    App.register_component(vrfComponent->ptxznVrfClimateComponents[1]);
    App.register_component(vrfComponent->ptxznVrfClimateComponents[2]);
    App.register_component(vrfComponent->ptxznVrfClimateComponents[3]);
    return {
      vrfComponent->ptxznVrfClimateComponents[0],
      vrfComponent->ptxznVrfClimateComponents[1],
      vrfComponent->ptxznVrfClimateComponents[2],
      vrfComponent->ptxznVrfClimateComponents[3],
    };

  climates:
    - name: "AirCondition keting"
    - name: "AirCondition zhuwo"
    - name: "AirCondition canting"
    - name: "AirCondition ciwo"

About

中央空调网关 PTX VRF 改 Esphome 固件

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages