name: Air purifier
products:
  - id: 6bspwvsqhl4vuanj
    name: Cleverio AP100
primary_entity:
  entity: fan
  icon: "mdi:air-purifier"
  dps:
    - id: 1
      type: boolean
      name: switch
    - id: 4
      type: integer
      name: speed
      range:
        min: 1
        max: 4
secondary_entities:
  - entity: sensor
    name: Filter
    icon: "mdi:air-filter"
    category: diagnostic
    dps:
      - id: 5
        type: integer
        name: sensor
        unit: "%"
  - entity: light
    class: indicator
    dps:
      - id: 8
        type: boolean
        name: switch
  - entity: select
    translation_key: timer
    category: config
    dps:
      - id: 19
        type: string
        name: option
        mapping:
          - dps_val: cancle
            value: cancel
          - dps_val: "1"
            value: "1h"
          - dps_val: "2"
            value: "2h"
          - dps_val: "3"
            value: "4h"
          - dps_val: "4"
            value: "8h"
  - entity: sensor
    name: Air quality
    class: enum
    icon: "mdi:factory"
    category: diagnostic
    dps:
      - id: 22
        type: string
        name: sensor
        mapping:
          - dps_val: "1"
            value: Excellent
          - dps_val: "2"
            value: Good
          - dps_val: "3"
            value: Fair
          - dps_val: "4"
            value: Poor
