name: Dehumidifier
products:
  - id: ulyg4agor5ftpfku
    manufacturer: Kogan
    model: Desiccant
entities:
  - entity: humidifier
    class: dehumidifier
    translation_only_key: extended
    dps:
      - id: 1
        name: switch
        type: boolean
      - id: 2
        name: mode
        type: string
        mapping:
          - dps_val: low
            value: eco
          - dps_val: middle
            value: normal
          - dps_val: high
            value: boost
          - dps_val: quickdry
            value: laundry
      - id: 3
        name: current_humidity
        type: integer
      - id: 101
        name: humidity
        type: integer
        range:
          min: 0
          max: 80
  - entity: fan
    dps:
      - id: 1
        name: switch
        type: boolean
      - id: 2
        name: speed
        type: string
        mapping:
          - dps_val: low
            value: 33.3
          - dps_val: middle
            value: 66.7
          - dps_val: high
            value: 100
          - dps_val: quickdry
            value: 100
            invalid: true
      - id: 8
        name: oscillate
        type: boolean
  - entity: binary_sensor
    translation_key: tank_full
    category: diagnostic
    dps:
      - id: 11
        name: sensor
        type: integer
        mapping:
          - dps_val: 1
            value: true
          - value: false
  - entity: binary_sensor
    class: problem
    category: diagnostic
    dps:
      - id: 11
        type: bitfield
        name: sensor
        mapping:
          - dps_val: 0
            value: false
          - dps_val: 1
            value: false
          - value: true
      - id: 11
        type: bitfield
        name: fault_code
  - entity: time
    translation_key: timer
    category: config
    dps:
      - id: 12
        name: hour
        type: integer
      - id: 13
        name: minute
        type: integer
