name: Humidifier
products:
  - id: xe3mxn6danpswfh3
    manufacturer: Stadler Form
    model: Eva
entities:
  - entity: humidifier
    dps:
      - id: 1
        name: switch
        type: boolean
      - id: 13
        name: humidity
        type: integer
        range:
          min: 35
          max: 80
        mapping:
          - step: 5
      - id: 14
        name: current_humidity
        type: integer
      - id: 102
        type: boolean
        name: mode
        mapping:
          - dps_val: true
            value: auto
          - dps_val: false
            value: boost
  - entity: binary_sensor
    class: problem
    category: diagnostic
    dps:
      - id: 22
        type: bitfield
        name: sensor
        mapping:
          - dps_val: 0
            value: false
          - value: true
      - id: 22
        name: fault_code
        type: bitfield
  - entity: fan
    dps:
      - id: 1
        name: switch
        type: boolean
      - id: 23
        name: speed
        type: string
        mapping:
          - dps_val: "1"
            value: 20
          - dps_val: "2"
            value: 40
          - dps_val: "3"
            value: 60
          - dps_val: "4"
            value: 80
          - dps_val: "5"
            value: 100
  - entity: switch
    name: Warm mist
    icon: "mdi:fire"
    category: config
    dps:
      - id: 26
        name: switch
        type: boolean
  - entity: lock
    translation_key: child_lock
    category: config
    dps:
      - id: 29
        type: boolean
        name: lock
  - entity: light
    translation_key: display
    category: config
    dps:
      - id: 103
        name: brightness
        type: string
        mapping:
          - dps_val: "0x00"
            value: 255
          - dps_val: "0x01"
            value: 128
          - dps_val: "0x02"
            value: 10
