Advertisement
xangin

Climate sample

Jul 5th, 2024
800
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.54 KB | None | 0 0
  1. substitutions:
  2.   devicename: ac-living-room
  3.   upper_devicename: "Climate Living Room"
  4.   model_name: "RAS-50NK"
  5.   tx_pin_io: GPIO17
  6.   rx_pin_io: GPIO16
  7.  
  8. esphome:
  9.   name: $devicename
  10.   friendly_name: ${upper_devicename}
  11.   comment: ESP32 for $model_name
  12.   project:
  13.     name: "TaiSEIA-Hitachi.$model_name"
  14.     version: "ESP32"
  15.  
  16. external_components:
  17.   - source: github://tsunglung/taixia@master
  18.     components: [ taixia ]
  19.  
  20. esp32:
  21.   board: wemos_d1_mini32
  22.   framework:
  23.     type: arduino
  24.  
  25. wifi:
  26.   ssid: !secret wifi_ssid
  27.   password: !secret wifi_password
  28.  
  29.   # Enable fallback hotspot (captive portal) in case wifi connection fails
  30.   ap:
  31.     ssid: ${devicename}
  32.     password: "12345678"
  33.  
  34. captive_portal:
  35. # Enable logging
  36. logger:
  37.   baud_rate: 0 # disable serial logging;
  38. #  level: VERY_VERBOSE
  39.  
  40. # Enable Home Assistant API
  41. api:
  42. ota:
  43. #web_server:
  44.  
  45. uart:
  46.   id: uart_taixia
  47.   tx_pin: $tx_pin_io
  48.   rx_pin: $rx_pin_io
  49.   baud_rate: 9600
  50.   debug:
  51.     direction: BOTH
  52.    
  53.    
  54. # optional binary sensor to monitor serial connection:
  55. binary_sensor:
  56.   - platform: status
  57.     name: "Status"
  58.  
  59. status_led:
  60.   pin:
  61.     number: GPIO2 # Blue LED
  62.  
  63. climate:
  64.   - platform: taixia
  65.     name: "Climate"
  66.     supported_modes:
  67.      - COOL
  68.       - HEAT
  69.       - DRY
  70.       - FAN_ONLY
  71.     supported_fan_modes:
  72.      - LOW
  73.       - MEDIUM
  74.       - HIGH
  75.       - AUTO
  76.     supported_swing_modes:
  77.      - VERTICAL
  78.       - HORIZONTAL
  79.       - BOTH
  80.     supported_presets:
  81.      - NONE
  82.       - BOOST
  83.       - ECO
  84.     #supported_humidity: True
  85.  
  86. button:
  87.   - platform: safe_mode
  88.     name: Safe Mode Boot
  89.     entity_category: diagnostic
  90.   - platform: restart
  91.     name: "Restart"
  92.   - platform: taixia
  93.     type: airconditioner
  94.     get_info:
  95.       name: "Get Info"
  96.  
  97. number:
  98.   - platform: taixia
  99.     type: airconditioner
  100. #    vertical_fan_speed:
  101. #      name: "Vertical Fan Speed"
  102. #      max_value: 4
  103.     horizontal_fan_speed:
  104.       name: "Horizontal Fan Speed"
  105.       max_value: 4
  106.     sleep_timer:
  107.       name: "Sleep Timer"
  108.     off_timer:
  109.       name: "Off Timer"
  110.     on_timer:
  111.       name: "On Timer"
  112.  
  113. select:
  114.   - platform: taixia
  115.     type: airconditioner
  116.     display_mode:
  117.       name: "Display Mode"
  118.  
  119. sensor:
  120.   - platform: wifi_signal
  121.     name: "WiFi Signal"
  122.     update_interval: 60s
  123.  
  124.   - platform: uptime
  125.     name: "Uptime"
  126.     filters:
  127.       - lambda: return x / 3600;
  128.     unit_of_measurement: "h"
  129.     accuracy_decimals: 1
  130.  
  131.   - platform: internal_temperature
  132.     name: "Internal Temperature"
  133.  
  134.   - platform: taixia
  135.     type: airconditioner
  136.     temperature_indoor:
  137.       name: "Temperature Indoor"
  138.     humidity_indoor:
  139.       name: "Humidity Indoor"
  140.     temperature_outdoor:
  141.       name: "Temperature Outdoor"
  142.     energy_consumption:
  143.       name: "Energy"
  144.     operating_hours:
  145.       name: "Operating Hours"
  146.  
  147. switch:
  148.   - platform: taixia
  149.     type: airconditioner
  150.     power:
  151.       name: "Power Switch"
  152.     beeper:
  153.       name: "Buzzer"
  154.     mildew_proof:
  155.       name: "Mildew Proof"
  156.     air_flow_vertical:
  157.       name: "Vertical Fan"
  158.  
  159. text_sensor:
  160.   - platform: version
  161.     name: "ESPHome Version"
  162.   - platform: wifi_info
  163.     ip_address:
  164.       name: "IP Address"
  165.   - platform: taixia
  166.     sa_id:
  167.       name: "SA ID"
  168.       id: sa_id
  169.     brand:
  170.       name: "SA Brand"
  171.     model:
  172.       name: "SA Model"
  173.     version:
  174.       name: "SA Version"
  175.     services:
  176.       name: "SA Services"
  177.  
  178. taixia:
  179.   sa_id: 1
  180. #  max_length: 100
  181. #  uart_id: uart_taixia
  182.  
  183. time:
  184.   - platform: homeassistant
  185.     id: homeassistant_time
  186.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement