From da31b6bc0308e01e62819a64fada4d35fe09fb11 Mon Sep 17 00:00:00 2001 From: ElVit <54866762+ElVit@users.noreply.github.com> Date: Thu, 30 Jan 2025 16:56:06 +0100 Subject: [PATCH] Updated example yaml file --- example_panasonic_heatpump.yaml | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/example_panasonic_heatpump.yaml b/example_panasonic_heatpump.yaml index 4101b52..6ec7f31 100644 --- a/example_panasonic_heatpump.yaml +++ b/example_panasonic_heatpump.yaml @@ -4,15 +4,8 @@ substitutions: pin_rx_hp: GPIO4 # heatpump reads data (RX) on this pin pin_tx_hp: GPIO3 # heatpump sends data (TX) on this pin - pin_tx_cz: GPIO1 # WiFi module sends data (TX) on this pin - pin_rx_cz: GPIO0 # WiFi module reads data (RX) on this pin - - # CN-CNT Pinout (from top to bottom) - # 1 - +5V (250mA) - # 2 - 0-5V TX (from heatpump) - # 3 - 0-5V RX (to heatpump) - # 4 - +12V (250mA) - # 5 - GND + pin_tx_wm: GPIO1 # WiFi module sends data (TX) on this pin + pin_rx_wm: GPIO0 # WiFi module reads data (RX) on this pin esp32: board: esp32-c3-devkitm-1 @@ -53,16 +46,16 @@ improv_serial: logger: uart: - - id: uart_heat + - id: uart_heatpump tx_pin: $pin_rx_hp rx_pin: $pin_tx_hp baud_rate: 9600 data_bits: 8 parity: EVEN stop_bits: 1 - - id: uart_wifi - tx_pin: $pin_rx_cz - rx_pin: $pin_tx_cz + - id: uart_cz_taw1 + tx_pin: $pin_rx_wm + rx_pin: $pin_tx_wm baud_rate: 9600 data_bits: 8 parity: EVEN @@ -75,8 +68,8 @@ external_components: components: [ panasonic_heatpump ] panasonic_heatpump: - uart_hp: uart_heat - uart_wm: uart_wifi + uart_hp: uart_heatpump + uart_wm: uart_cz_taw1 sensor: - platform: panasonic_heatpump