name: Humidifying fan
products:
  - id: bf5fd02f13d3f6d92exy2t
    manufacturer: djive
    model: Flowmate ARC
entities:
  - entity: fan
    dps:
      - id: 1
        name: switch
        type: boolean
      - id: 2
        name: preset_mode
        type: string
        optional: true
        mapping:
          - dps_val: close
            value: normal
          - dps_val: auto
            value: smart
          - dps_val: strong
            value: strong
          - dps_val: fresh
            value: fresh
          - dps_val: sleep
            value: sleep
      - id: 3
        name: speed
        type: integer
        range:
          min: 1
          max: 9
      - id: 5
        type: boolean
        name: oscillate
  - entity: select
    category: config
    name: Humidifier
    icon: "mdi:air-humidifier"
    dps:
      - id: 105
        name: option
        type: string
        mapping:
          - dps_val: close
            value: "off"
          - dps_val: 1
            value: low
          - dps_val: 2
            value: medium
          - dps_val: 3
            value: high
          - dps_val: auto
            value: auto
  - entity: binary_sensor
    class: problem
    category: diagnostic
    dps:
      - id: 24
        type: bitfield
        name: sensor
        mapping:
          - dps_val: 0
            value: false
          - value: true
      - id: 24
        type: bitfield
        name: fault_code
  - entity: switch
    translation_key: uv_sterilization
    dps:
      - id: 102
        type: boolean
        name: switch
  - entity: switch
    translation_key: sound
    dps:
      - id: 13
        type: boolean
        name: switch
  - entity: sensor
    class: humidity
    dps:
      - id: 106
        type: integer
        name: sensor
        class: measurement
        unit: "%"
  - entity: sensor
    class: pm25
    dps:
      - id: 101
        type: integer
        name: sensor
        class: measurement
        unit: "μg/m³"
