name: Dehumidifier
# {'updated_at': 1674605185.2896934, '1': True, '2': 'auto', '3': 57, '4': 55,
#  '10': True, '101': True, '102': '0_90', '103': 24}
products:
  - id: 6cguug02fnygou5c
    name: Klarstein Dryfy Pro Connect
  - id: m0wtqltrepknlpdj
    name: Morris Premier plus
primary_entity:
  entity: humidifier
  class: dehumidifier
  dps:
    - id: 1
      name: switch
      type: boolean
    - id: 2
      name: mode
      type: string
      optional: true
      mapping:
        - dps_val: auto
          value: auto
        - dps_val: high
          value: boost
        - dps_val: low
          value: eco
        - dps_val: fan
          value: purify
    - id: 3
      type: integer
      name: current_humidity
    - id: 4
      type: integer
      name: humidity
      range:
        min: 35
        max: 80
      mapping:
        - step: 5
secondary_entities:
  - entity: select
    name: Direction
    category: config
    icon: "mdi:sprinkler-variant"
    dps:
      - id: 102
        name: option
        type: string
        optional: true
        mapping:
          - dps_val: "0_90"
            value: "45°-90°"
          - dps_val: "45"
            value: "45°"
          - dps_val: "90"
            value: "90°"
  - entity: sensor
    class: temperature
    dps:
      - id: 103
        type: integer
        name: sensor
        unit: C
        class: measurement
  - entity: switch
    translation_key: uv_sterilization
    dps:
      - id: 10
        name: switch
        type: boolean
  - entity: switch
    translation_key: ionizer
    dps:
      - id: 5
        name: switch
        type: boolean
        optional: true
  - entity: switch
    name: "Humidity indicator"
    category: config
    icon: "mdi:dots-circle"
    dps:
      - id: 101
        name: switch
        type: boolean
