name: Ceiling fan
products:
  - id: ea6vpac5hfe5rqw4
    manufacturer: Immax
    model: NEO LITE VENTO Smart
entities:
  - entity: fan
    translation_only_key: fan_with_presets
    dps:
      - id: 1
        type: boolean
        name: switch
      - id: 2
        type: string
        name: preset_mode
        mapping:
          - dps_val: normal
            value: normal
          - dps_val: sleep
            value: sleep
          - dps_val: nature
            value: nature
      - id: 3
        name: speed
        type: integer
        range:
          min: 1
          max: 6
        mapping:
          - constraint: preset_mode
            conditions:
              - dps_val: nature
                step: 5
              - dps_val: sleep
                step: 5
      - id: 8
        name: direction
        type: string
  - entity: light
    dps:
      - id: 15
        type: boolean
        name: switch
  - entity: select
    translation_key: timer
    category: config
    dps:
      - id: 22
        name: option
        type: string
        mapping:
          - dps_val: "off"
            value: cancel
          - dps_val: 1hour
            value: "1h"
          - dps_val: 2hour
            value: "2h"
          - dps_val: 4hour
            value: "4h"
          - dps_val: 8hour
            value: "8h"
