name: Dehumidifier
products:
  - id: 75174020a4e57c1945ca
    manufacturer: Electriq
    model: PD45E
entities:
  - entity: humidifier
    class: dehumidifier
    translation_only_key: extended
    dps:
      - id: 1
        name: switch
        type: boolean
      - id: 2
        type: string
        name: mode
        mapping:
          - dps_val: "1"
            value: normal
          - dps_val: "2"
            value: laundry
          - dps_val: "3"
            value: purify
      - id: 3
        name: current_humidity
        type: integer
      - id: 4
        name: humidity
        type: integer
        range:
          min: 35
          max: 80
        mapping:
          - step: 5
      - id: 11
        type: integer
        name: unknown_11
        # Probably one of these integers is timer, the other fault_code
      - id: 106
        type: integer
        name: unknown_106
      - id: 107
        type: boolean
        name: unknown_107
        # Probably one boolean is defrost indicator, the other may be tank?
      - id: 108
        type: boolean
        name: unknown_108
  - entity: fan
    dps:
      - id: 1
        type: boolean
        name: switch
      - id: 6
        type: string
        name: speed
        mapping:
          - dps_val: "1"
            value: 50
          - dps_val: "2"
            value: 100
      - id: 8
        type: boolean
        name: oscillate
  - entity: lock
    translation_key: child_lock
    category: config
    dps:
      - id: 7
        type: boolean
        name: lock
  - entity: sensor
    class: temperature
    dps:
      - id: 110
        type: integer
        name: sensor
        unit: C
        class: measurement
  - entity: binary_sensor
    translation_key: tank_full
    dps:
      - id: 11
        type: bitfield
        name: sensor
        mapping:
          - dps_val: 2
            value: true
          - value: false
  - entity: binary_sensor
    translation_key: defrost
    dps:
      - id: 108
        type: boolean
        name: sensor
