Surprise! We've been running on hardware provided by BuyVM for a few months and wanted to show them a little appreciation.
Running a paste site comes with unique challenges, ones that aren't always obvious and hard to control. As such, BuyVM offered us a home where we could worry less about the hosting side of things and focus on maintaining a clean and useful service! Go check them out and show them some love!
Description: Panasonic Climate Interface with optional CN-CNT cable
Submitted by aladin on September 24, 2022
Expires on September 24, 2023 at 11:46 AM (9 months from now)

substitutions:
  devicename: "panasonic-climate"
  long_devicename: "ESPthings Panasonic Climate Interface"
  pcb_version: "220722-1"
  
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: mhetesp32minikit
  project:
    name: "esphome.pana-climate"
    version: "${pcb_version}"

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

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  ap:
    ssid: "${devicename} Hotspot"
    password: qwe12345
# Enable fallback hotspot (captive portal) in case wifi connection fails
captive_portal:
    
web_server:
  port: 80
  
# Enable logging
logger:
  level: DEBUG

api:
  # uncomment the line below if you wish to use an api-password
  #password: !secret esphome_api_password

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
  
# For revisions from 220722-01 and higer the optional temperature sensor is available.
# DS18B20 1-wire Temperature Sensor
dallas:
  - pin: GPIO18
sensor:
  - platform: dallas
    # Check the dallas sensor address in the log file
    # For more info: https://esphome.io/components/sensor/dallas.html
    address: 0x540000001524be28
    name: "$long_devicename Temperature"
    id: temp

switch:
  - platform: restart
    name: "$long_devicename Restart"
    
climate:
  - platform: panasonic_ac
    type: cnt   # For CZ-TACG1 use type: cnt / For DNSK-P11 use type: wlan
    name: "${long_devicename}"
    vertical_swing_select:
      name: "${long_devicename} Vertical Swing Mode"
    outside_temperature:
      name: "${long_devicename} Outside Temperature"
    # If the ac does not report a current temperature (CZ-TACG1 only) uncomment 
    # the line below and point to the appropriate sensor
    #current_temperature_sensor: temp