name: Air purifier
products:
  - id: kik7qavg2baebtk9
    manufacturer: Soleusair
    model: KJ1000F A10
  - id: 5xrkvysk7z6xrjum
    manufacturer: Soleusair
    model: KJ760F A02
entities:
  - entity: fan
    translation_only_key: fan_with_presets
    icon: "mdi:air-purifier"
    dps:
      - id: 1
        name: switch
        type: boolean
      - id: 101
        type: integer
        name: speed
        range:
          min: 1
          max: 5
      - id: 3
        name: preset_mode
        type: string
        mapping:
          - dps_val: manual
            value: normal
          - dps_val: auto
            value: smart
          - dps_val: sleep
            value: sleep
          - dps_val: displayoff
            value: displayoff
  - entity: sensor
    translation_key: filter_life
    category: diagnostic
    dps:
      - id: 5
        type: integer
        name: sensor
        unit: "%"
  - entity: switch
    translation_key: ionizer
    category: config
    dps:
      - id: 6
        type: boolean
        name: switch
  - entity: lock
    translation_key: child_lock
    category: config
    dps:
      - id: 7
        type: boolean
        name: lock
  - entity: switch
    translation_key: uv_sterilization
    category: config
    dps:
      - id: 9
        type: boolean
        name: switch
        optional: true
  - entity: sensor
    class: temperature
    dps:
      - id: 12
        name: sensor
        type: integer
        unit: C
  - entity: sensor
    class: humidity
    dps:
      - id: 13
        type: integer
        name: sensor
        unit: "%"
  - entity: sensor
    class: volatile_organic_compounds_parts
    dps:
      - id: 14
        type: integer
        name: sensor
        optional: true
        unit: ppb
  - entity: sensor
    translation_key: air_quality
    class: enum
    dps:
      - id: 21
        type: string
        name: sensor
        mapping:
          - dps_val: great
            value: excellent
          - dps_val: good
            value: good
          - dps_val: medium
            value: poor
          - dps_val: severe
            value: severe
  - entity: sensor
    name: Formaldehyde
    icon: "mdi:chemical-weapon"
    dps:
      - id: 27
        type: integer
        name: sensor
        unit: ugm3
        mapping:
          - scale: 0.1
