name: Dehumidifier
products:
  - id: vraaaueoxtrhksth
    manufacturer: JJPro
    model: JPD02
entities:
  - entity: humidifier
    class: dehumidifier
    dps:
      - id: 1
        name: switch
        type: boolean
        mapping:
          - dps_val: false
            icon: "mdi:air-humidifier-off"
            icon_priority: 3
          - dps_val: true
            icon: "mdi:air-humidifier"
            icon_priority: 5
      - id: 2
        type: integer
        name: humidity
        range:
          min: 30
          max: 80
        mapping:
          - step: 5
      - id: 5
        name: mode
        type: string
        mapping:
          - dps_val: Continuities
            value: boost
            icon: "mdi:tshirt-crew-outline"
            icon_priority: 4
          - dps_val: Auto
            value: auto
            icon: "mdi:water-outline"
            icon_priority: 4
          - dps_val: Sleep
            value: sleep
            icon: "mdi:weather-night"
            icon_priority: 4
      - id: 6
        type: integer
        name: current_humidity
  - entity: fan
    dps:
      - id: 1
        type: boolean
        name: switch
      - id: 4
        type: string
        name: speed
        mapping:
          - dps_val: "low"
            value: 50
          - dps_val: "high"
            value: 100
  - entity: sensor
    class: temperature
    dps:
      - id: 7
        type: integer
        name: sensor
        unit: C
        class: measurement
  - entity: lock
    translation_key: child_lock
    category: config
    dps:
      - id: 16
        type: boolean
        name: lock
  - entity: binary_sensor
    translation_key: tank_full
    category: diagnostic
    dps:
      - id: 19
        type: bitfield
        name: sensor
        mapping:
          - dps_val: 8
            value: true
          - value: false
  - entity: binary_sensor
    class: problem
    category: diagnostic
    dps:
      - id: 19
        type: bitfield
        name: sensor
        mapping:
          - dps_val: 0
            value: false
          - dps_val: 8
            value: false
          - value: true
      - id: 19
        type: bitfield
        name: fault_code
  - entity: switch
    translation_key: ionizer
    dps:
      - id: 101
        type: boolean
        name: switch
