name: DS02-F fan switch
products:
  - id: qmijt70hk4op6snl
primary_entity:
  entity: fan
  dps:
    - id: 1
      type: boolean
      name: switch
    - id: 3
      type: string
      name: speed
      mapping:
        - dps_val: level_1
          value: 25
          step: 25
        - dps_val: level_2
          value: 50
          step: 25
        - dps_val: level_3
          value: 75
          step: 25
        - dps_val: level_4
          value: 100
          step: 25
secondary_entities:
  - entity: number
    translation_key: timer
    category: config
    dps:
      - id: 2
        type: integer
        name: value
        unit: min
        range:
          min: 0
          max: 86400
        mapping:
          - scale: 60
            step: 60
