Advertisement
xangin

dehumidifier sample

Jul 5th, 2024
770
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.79 KB | None | 0 0
  1. substitutions:
  2.   devicename: dehumidifier
  3.   upper_devicename: "Dehumidifier"
  4.   model_name: "RD-240HH"
  5.  
  6. esphome:
  7.   name: $devicename
  8.   friendly_name: ${upper_devicename}
  9.   comment: $upper_devicename for Hitachi RD-22FC
  10.   project:
  11.     name: "TaiSEIA.Hitachi-$model_name"
  12.     version: "D1mini_ESP32"
  13.  
  14. esp32:
  15.   board: wemos_d1_mini32
  16.   framework:
  17.     type: arduino
  18.  
  19. external_components:
  20.   - source: github://tsunglung/taixia@master
  21.     components: [ taixia ]
  22.     #refresh: 0s
  23.    
  24. wifi:
  25.   ssid: !secret my_ap_ssid
  26.   password: !secret my_ap_password
  27.      
  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.   - platform: esphome
  44.  
  45. web_server:
  46. uart:
  47.   id: uart_taixia
  48.   tx_pin: GPIO17 #pin3 (RX to AC)
  49.   rx_pin: GPIO16 #pin4 (TX from AC)
  50.   baud_rate: 9600
  51.   debug:
  52.     direction: BOTH
  53.  
  54. status_led:
  55.   pin:
  56.     number: GPIO2 # Blue LED
  57.  
  58. # optional binary sensor to monitor serial connection:
  59. binary_sensor:
  60.   - platform: status
  61.     name: "Status"
  62.   - platform: taixia
  63.     type: dehumidifier
  64.     water_tank_full:
  65.       name: "Water Tank Full"
  66.     filter_notify:
  67.       name: "Filter Notify"
  68.     side_air_flow:
  69.       name: "Side Air Flow"
  70.     defrost:
  71.       name: "Defrost"
  72.      
  73. button:
  74.   - platform: safe_mode
  75.     name: "Safe Mode Boot"
  76.     entity_category: diagnostic
  77.   - platform: restart
  78.     name: "Restart"
  79.   - platform: taixia
  80.     type: dehumidifier
  81.     get_info:
  82.       name: "Get Info"
  83.  
  84. fan:
  85.   - platform: taixia
  86.     name: Fan
  87.     type: dehumidifier
  88.     id: fan_dehumidifier
  89.     speed: true
  90.     speed_count: 4
  91.     preset_modes:
  92.      - normal
  93.       - home
  94.       - boost
  95.       - sleep
  96.       - eco
  97.  
  98.  
  99.  
  100. number:
  101.   - platform: taixia
  102.     type: dehumidifier
  103.     operating_time:
  104.       name: "Operating Time"
  105.     relative_humidity:
  106.       name: "Relative Humidity"
  107.     fan_level:
  108.      name: "Fan Level"
  109.     sound_mode:
  110.      name: "Sound Mode"
  111.     light_level:
  112.       name: "Light Level"
  113.  
  114.  
  115. select:
  116.   - platform: taixia
  117.     type: dehumidifier
  118.     operating_program:
  119.       name: "Operation Mode"
  120.       options:
  121.        - normal
  122.         - eco
  123.         - home
  124.         - boost
  125.         - sleep
  126.  
  127. sensor:
  128.   - platform: wifi_signal
  129.     name: "WiFi Signal"
  130.     update_interval: 60s
  131.  
  132.   - platform: uptime
  133.     name: "Uptime"
  134.     filters:
  135.       - lambda: return x / 3600;
  136.     unit_of_measurement: "h"
  137.     accuracy_decimals: 1
  138.  
  139.   - platform: internal_temperature
  140.     name: "Internal Temperature"
  141.  
  142.   - platform: taixia
  143.     type: dehumidifier
  144.     humidity_indoor:
  145.       name: "Humidity Indoor"    
  146.     energy_consumption:
  147.       name: "Energy"
  148.     error_code:
  149.       name: "Error Code"
  150.     pm_2_5:
  151.       name: "PM 2.5"
  152.     odours:
  153.       name: "Odours"
  154.  
  155. switch:
  156.   - platform: taixia
  157.     type: dehumidifier
  158.     power:
  159.       name: "Power Switch"
  160.     lock:
  161.       name: "Lock"
  162.     air_flow_auto:
  163.       name: "Auto Air Flow"
  164.     mildew_proof:
  165.       name: "Mildew Proof"
  166.     humidity_notify:
  167.       name: "Humidity Notify"
  168.     beeper:
  169.       name: "Beeper"
  170.     air_purifier:
  171.       name: "Air Purifier"
  172.     pm25_detect:
  173.       name: "PM2.5 Detect"
  174.  
  175.  
  176. text_sensor:
  177.   - platform: version
  178.     name: "ESPHome Version"
  179.   - platform: wifi_info
  180.     ip_address:
  181.       name: "IP Address"
  182.   - platform: taixia
  183.     sa_id:
  184.       name: "SA ID"
  185.       id: sa_id
  186.     brand:
  187.       name: "SA Brand"
  188.     model:
  189.       name: "SA Model"
  190.     version:
  191.       name: "SA Version"
  192.     services:
  193.       name: "SA Services"
  194.  
  195. taixia:
  196.   sa_id: 4
  197. #  response_time: 0
  198.  
  199. time:
  200.   - platform: homeassistant
  201.     id: homeassistant_time
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement