DomiStyle / esphome-panasonic-ac

Open source alternative for Panasonic air condition wifi adapters that works locally without the Comfort Cloud
MIT License
203 stars 46 forks source link

New CS-Z25ZKEW, no reaction on RX/TX (*solved* by changing GPIOs) #119

Open wunderbaum opened 1 week ago

wunderbaum commented 1 week ago

Hello, since a few days, I have a new CS-Z25ZKEW. This is a model with an empty plug and the wlan somewhere inside. So, I thought, I can connect like this: [(https://github.com/DomiStyle/esphome-panasonic-ac/issues/111)] I have an ESP32-C3-Super-Mini in use. At the 12V I have measured 14V. But this I do not need. Type I choosed is cnt, when I choose wlan, I get timeouts in the console. In my model, I cannot even see the included wlan-module. pana1

Colors of the aliexpress-plug are strange: 5V - black GND - orange TX - white RX - red

I switched RX/TX, no success. What can I do to dive deeper into a possible solution?

This is my config:

substitutions:
  name: esphome-web-cb0e7c
  friendly_name: Klima Schlafzimmer

esphome:
  name: ${name}
  friendly_name: ${friendly_name}
  name_add_mac_suffix: false
  project:
    name: esphome.web
    version: '1.0'

esp32:
  board: esp32-c3-devkitm-1
  framework:
    type: arduino

# Enable logging
logger:
  level: DEBUG

# Enable Home Assistant API
api:

# Allow Over-The-Air updates
ota:
- platform: esphome

# Allow provisioning Wi-Fi via serial
improv_serial:

wifi:
  # Set up a wifi access point
  ap: {}

# In combination with the `ap` this allows the user
# to provision wifi credentials to the device via WiFi AP.
captive_portal:

dashboard_import:
  package_import_url: github://esphome/firmware/esphome-web/esp32c3.yaml@v2
  import_full_config: true

# Sets up Bluetooth LE (Only on ESP32) to allow the user
# to provision wifi credentials to the device.
esp32_improv:
  authorizer: none

# To have a "next url" for improv serial
web_server:

uart:
  tx_pin: 20
  rx_pin: 21
  baud_rate: 9600
  parity: EVEN

external_components:
  source: github://DomiStyle/esphome-panasonic-ac
  components: [panasonic_ac]

climate:
  - platform: panasonic_ac
    # For CZ-TACG1
    type: cnt

    # For DNSK-P11
    # type: wlan

    name: Panasonic AC
    horizontal_swing_select:
      name: AC Horizontal Swing Mode
    vertical_swing_select:
      name: AC Vertical Swing Mode
    outside_temperature:
      name: AC Outside Temperature
    nanoex_switch:
      name: Panasonic AC NanoeX Switch
profigriller commented 1 week ago

This is my wiring and my yaml. Please ignore the relay and correspondig wires at the bottom. I had issues with the uart and tried different ports. Maybe this helps. (the code look ugly and I tried to include it in a code section which does not seem to work)

Screenshot 2024-06-29 071705

`substitutions: devicename: "fgfgfgf" long_devicename: "ESPthings Panasonic Climate Interface" pcb_version: "ESP32SAZDelivery"

esphome: name: "${devicename}" name_add_mac_suffix: false ## if 'false' use different names/hostnames for each device! comment: "${long_devicename} ${pcb_version}" platform: ESP32 board: nodemcu-32s project: name: "esphome.pana-climate" version: "${pcb_version}"

external_components:

wifi: ssid: YYYYY password: XXXXXX ap: ssid: "${devicename} Hotspot" password: ZZZZZZ

captive_portal:

web_server: port: 80

logger: level: INFO

ota:

uncomment the line below if you wish to use an ota-password

password: !secret esphome_ota_password

uart: tx_pin: GPIO17 rx_pin: GPIO16 id: ac_uart baud_rate: 9600 parity: EVEN

revisions below 220722-01 use GPIO12

status_led: pin: GPIO13

climate:

`

wunderbaum commented 5 days ago

had issues with the uart and tried different ports.

Many thanks! That was the easy solution! I changed the UART-GPIOs and now it works.

uart: tx_pin: GPIO8 rx_pin: GPIO9 id: ac_uart baud_rate: 9600 parity: EVEN