name: Bladeless fan
products:
  - id: kablfan1csa
    name: Kogan KABLFAN1CSA
  - id: kasblstfansa
    name: Kogan KASBKSTFANSA
primary_entity:
  entity: fan
  translation_only_key: fan_with_presets
  dps:
    - id: 1
      type: boolean
      name: switch
    - id: 2
      type: string
      name: speed
      mapping:
        - dps_val: "1"
          value: 11
          step: 11
        - dps_val: "2"
          value: 22
          step: 11
        - dps_val: "3"
          value: 33
          step: 11
        - dps_val: "4"
          value: 44
          step: 11
        - dps_val: "5"
          value: 55
          step: 11
        - dps_val: "6"
          value: 66
          step: 11
        - dps_val: "7"
          value: 77
          step: 11
        - dps_val: "8"
          value: 88
          step: 11
        - dps_val: "9"
          value: 100
          step: 12
    - id: 3
      name: preset_mode
      type: string
      mapping:
        - dps_val: close
          value: "off"
        - dps_val: sleep
          value: sleep
        - dps_val: fresh
          value: nature
        - dps_val: heavy
          value: strong
    - id: 8
      type: boolean
      name: oscillate
    - id: 13
      name: fault_code
      type: bitfield
secondary_entities:
  - entity: switch
    name: Sound
    icon: "mdi:volume-high"
    category: config
    dps:
      - id: 102
        type: boolean
        optional: true
        name: switch
        mapping:
          - dps_val: null
            value_redirect: alternate
      - id: 101
        type: boolean
        optional: true
        name: alternate
  - entity: binary_sensor
    class: problem
    category: diagnostic
    dps:
      - id: 13
        type: bitfield
        name: sensor
        mapping:
          - dps_val: 0
            value: false
          - value: true
  - entity: select
    translation_key: timer
    category: config
    dps:
      - id: 11
        type: string
        name: option
        mapping:
          - dps_val: "0"
            value: cancel
          - dps_val: "1"
            value: "1h"
          - dps_val: "2"
            value: "2h"
          - dps_val: "3"
            value: "3h"
          - dps_val: "4"
            value: "4h"
          - dps_val: "5"
            value: "5h"
          - dps_val: "6"
            value: "6h"
          - dps_val: "7"
            value: "7h"
          - dps_val: "8"
            value: "8h"
  - entity: sensor
    translation_key: time_remaining
    class: duration
    category: diagnostic
    dps:
      - id: 12
        type: integer
        optional: true
        name: sensor
        unit: min
