name: "DH-CSK03W Dehumidifier"
primary_entity:
  entity: humidifier
  class: dehumidifier
  dps:
    - id: 1
      name: switch
      type: boolean
    - id: 2
      name: humidity
      type: integer
      range:
        min: 40
        max: 70
      mapping:
        - step: 5
    - id: 5
      name: mode
      type: string
      mapping:
        - dps_val: "mode_strong"
          value: "boost"
        - dps_val: "mode_sleep"
          value: "sleep"
    - id: 6
      type: integer
      name: current_humidity
secondary_entities:
  - entity: select
    translation_key: timer
    category: config
    dps:
      - id: 101
        type: string
        name: option
        optional: true
        mapping:
          - dps_val: cancel
            value: cancel
          - dps_val: "2h"
            value: "2h"
          - dps_val: "4h"
            value: "4h"
          - dps_val: "8h"
            value: "8h"
          - dps_val: "12h"
            value: "12h"
          - dps_val: "18h"
            value: "18h"
          - dps_val: "24h"
            value: "24h"
          - dps_val: "36h"
            value: "36h"
          - dps_val: "48h"
            value: "48h"
  - entity: select
    name: "Light mode"
    category: config
    dps:
      - id: 31
        type: string
        name: option
        optional: true
        mapping:
          - dps_val: "ligth_off"
            value: "Light Off"
          - dps_val: "light_mode1"
            value: "Light mode 1"
          - dps_val: "light_mode2"
            value: "Light mode 2"
          - dps_val: "light_mode3"
            value: "Light mode 3"
  - entity: sensor
    class: temperature
    dps:
      - id: 7
        type: integer
        name: sensor
        unit: C
        class: measurement
