name: Ceiling fan with light
products:
  - id: p8z27dfdwc4riyp9
    manufacturer: Create
    model: XW-FAN-215-D
entities:
  - entity: fan
    dps:
      - id: 60
        type: boolean
        name: switch
      - id: 62
        type: integer
        optional: true
        name: speed
        range:
          min: 1
          max: 6
      - id: 63
        type: string
        optional: true
        name: direction
  - entity: light
    dps:
      - id: 20
        type: boolean
        name: switch
      - id: 21
        name: work_mode
        type: string
        optional: true
      - id: 23
        name: color_temp
        type: integer
        optional: true
        range:
          min: 0
          max: 1000
        mapping:
          - target_range:
              min: 2700
              max: 6500
            step: 500
      - id: 25
        name: scene_data
        type: string
        optional: true
  - entity: number
    translation_key: timer
    class: duration
    category: config
    dps:
      - id: 64
        type: integer
        optional: true
        name: value
        unit: min
        range:
          min: 0
          max: 540
