Advertisement
xangin

Dehumidifier example

Sep 1st, 2024
727
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.07 KB | None | 0 0
  1. humidifier:
  2.  - platform: humidifier_template
  3.    name: "Hiatachi RD-22FC"
  4.    unique_id: rd22fc_dehumidifier
  5.    switch_id: "fan.rd22fc_fan"
  6.    state_template: "{{ states('fan.rd22fc_fan') }}"
  7.    mode_template: "{{ state_attr('fan.rd22fc_fan', 'preset_mode') }}"
  8.    current_humidity_template: "{{ states('sensor.rd22fc_humidity_indoor') }}"
  9.    target_humidity_template: "{ states('number.rd22fc_relative_humidity') }}"
  10.    mode_list_template: "{{ state_attr('fan.rd22fc_fan', 'preset_modes') }}"
  11.    action_template: "{{ state_attr('fan.rd22fc_fan', 'preset_mode') }}"
  12.    
  13.    max_humidity: 70
  14.    min_humidity: 40
  15.    type: dehumidifier
  16.    
  17.    modes:
  18.     - "normal"
  19.      - "home"
  20.      - "boost"
  21.      - "sleep"
  22.      - "eco"
  23.    
  24.    set_mode_action:
  25.      - service: fan.set_preset_mode
  26.        target:
  27.          entity_id: fan.rd22fc_fan
  28.        data:
  29.          preset_mode: "{{ mode }}"
  30.    
  31.    set_target_humidity_action:
  32.      - service: number.set_value
  33.        target:
  34.          entity_id: number.rd22fc_relative_humidity
  35.        data:
  36.          value: "{{ humidity }}"
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement