xangin

ESP32S3 AC P

Oct 27th, 2025
1,014
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.91 KB | None | 0 0
  1. substitutions:
  2.   devicename: climate-p
  3.   upper_devicename: "Climate-P"
  4.   model_name: "Climate"
  5.  
  6.  
  7. esphome:
  8.   name: $devicename
  9.   friendly_name: ${upper_devicename}
  10.   comment: ESP32S3 for $model_name
  11.   name_add_mac_suffix: true
  12.   project:
  13.     name: "TaiSEIA-Panasonic.$model_name"
  14.     version: "ESP32S3N" #hardware
  15.  
  16. external_components:
  17.   - source: github://tsunglung/taixia@master
  18.     components: [ taixia ]
  19.     #refresh: 0s
  20.  
  21. esp32:
  22.   board: esp32-s3-devkitc-1
  23.   flash_size: 16MB
  24.   framework:
  25.     type: arduino
  26.  
  27.  
  28. wifi:
  29.   ssid: !secret wifi_ssid
  30.   password: !secret wifi_password
  31.  
  32.   # Enable fallback hotspot (captive portal) in case wifi connection fails
  33.   ap:
  34.     ssid: ${devicename}
  35.     password: "12345678"
  36.  
  37. psram:
  38.   mode: octal
  39.   speed: 80MHz
  40.  
  41. captive_portal:
  42. # Enable logging
  43. logger:
  44.   baud_rate: 0 # disable serial logging;
  45. #  level: VERY_VERBOSE
  46.  
  47. # Enable Home Assistant API
  48. api:
  49. ota:
  50.   - platform: esphome
  51.   - platform: web_server
  52.  
  53. web_server:
  54. uart:
  55.   id: uart_taixia
  56.   tx_pin: GPIO2 #pin3 (RX to AC)   A1
  57.   rx_pin: GPIO1 #pin4 (TX from AC) A0
  58.   baud_rate: 9600
  59.   debug:
  60.     direction: BOTH
  61.    
  62. status_led:
  63.   pin:
  64.     number: GPIO48 # Blue LED
  65.     #inverted: True # S3 pro need set True
  66.  
  67. light:
  68.   - platform: rgb
  69.     name: "RGB LED"
  70.     id: board_rgb_led
  71.     red: led_red
  72.     green: led_green
  73.     blue: led_blue
  74.  
  75. output:
  76.   - platform: ledc
  77.     id: led_red
  78.     pin: GPIO46
  79.     inverted: true
  80.  
  81.   - platform: ledc
  82.     id: led_green
  83.     pin: GPIO0
  84.     inverted: true
  85.  
  86.   - platform: ledc
  87.     id: led_blue
  88.     pin: GPIO45
  89.     inverted: true
  90.    
  91. # optional binary sensor to monitor serial connection:
  92. binary_sensor:
  93.   - platform: status
  94.     name: "Status"
  95.  
  96. button:
  97.   - platform: safe_mode
  98.     name: Safe Mode Boot
  99.     entity_category: diagnostic
  100.   - platform: restart
  101.     name: "Restart"
  102.   - platform: taixia
  103.     type: airconditioner
  104.     get_info:
  105.       name: "Get Info"
  106.  
  107. climate:
  108.   - platform: taixia
  109.     name: "Climate"
  110.     supported_modes:
  111.      - COOL
  112.       - HEAT
  113.       - DRY
  114.       - FAN_ONLY
  115.     supported_fan_modes:
  116.      - LOW
  117.       - MEDIUM
  118.       - HIGH
  119.       - AUTO
  120.     supported_swing_modes:
  121.      - VERTICAL
  122.       - HORIZONTAL
  123.       - BOTH
  124.     supported_presets:
  125.      - NONE
  126.       - BOOST
  127.       - ECO
  128.       - ACTIVITY
  129.       - SLEEP
  130.       - AWAY
  131.  
  132.  
  133. number:
  134.   - platform: taixia
  135.     type: airconditioner
  136.     off_timer:
  137.       name: "Off Timer"
  138.  
  139. sensor:
  140.   - platform: wifi_signal
  141.     name: "WiFi Signal"
  142.     update_interval: 60s
  143.  
  144.   - platform: uptime
  145.     name: "Uptime"
  146.     filters:
  147.       - lambda: return x / 3600;
  148.     unit_of_measurement: "h"
  149.     accuracy_decimals: 1
  150.  
  151.   - platform: internal_temperature
  152.     name: "ESP32 Temperature"
  153.  
  154.   - platform: taixia
  155.     type: airconditioner
  156.     temperature_indoor:
  157.       name: "Temperature Indoor"
  158.     temperature_outdoor:
  159.       name: "Temperature Outdoor"
  160.     operating_current:
  161.       name: "Current"
  162.     energy_consumption:
  163.       state_class: total_increasing
  164.       name: "Energy"
  165.     operating_watt:
  166.       name: "Power"
  167.  
  168. select:
  169.   - platform: taixia
  170.     type: airconditioner
  171.     display_mode:
  172.       name: "Display Mode"
  173.  
  174. switch:
  175.   - platform: taixia
  176.     type: airconditioner
  177.     power:
  178.       name: "Power Switch"
  179.     beeper:
  180.       name: "Buzzer"
  181.     mildew_proof:
  182.       name: "Mildew Proof"
  183.     self_cleaning:
  184.       name: "Self Cleaning"
  185.      
  186. text_sensor:
  187.   - platform: version
  188.     name: "ESPHome Version"
  189.   - platform: wifi_info
  190.     ip_address:
  191.       name: "IP Address"
  192.   - platform: taixia
  193.     sa_id:
  194.       name: "SA ID"
  195.       id: sa_id
  196.     brand:
  197.       name: "SA Brand"
  198.     model:
  199.       name: "SA Model"
  200.     version:
  201.       name: "SA Version"
  202.     services:
  203.       name: "SA Services"
  204.  
  205. taixia:
  206.   sa_id: 1
  207.   response_time: 65000
  208.  
  209.   #version: 2 #for old ac
  210.  
  211. time:
  212.   - platform: homeassistant
  213.     id: homeassistant_time
  214.  
Advertisement
Add Comment
Please, Sign In to add comment