name: Fan with light
products:
  - id: pktxz1vynowmavuc
    manufacturer: Skyfan
    model: DC
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: Nature
            value: nature
          - dps_val: Sleep
            value: sleep
      - id: 3
        type: integer
        name: speed
        range:
          min: 1
          max: 5
      - id: 8
        type: string
        name: direction
  - entity: light
    dps:
      - id: 15
        type: boolean
        name: switch
      - id: 16
        name: brightness
        type: integer
        range:
          min: 1
          max: 5
      - id: 19
        name: color_temp
        type: string
        mapping:
          - dps_val: Coolwhite
            value: 6500
          - dps_val: Naturalwhite
            value: 4200
          - dps_val: Warmwhite
            value: 3000
          - target_range:
              min: 3000
              max: 6500
            hidden: true
  - entity: select
    translation_key: timer
    category: config
    dps:
      - id: 22
        type: string
        name: option
        mapping:
          - dps_val: cancel
            value: cancel
          - dps_val: "1h"
            value: "1h"
          - dps_val: "2h"
            value: "2h"
          - dps_val: "3h"
            value: "3h"
          - dps_val: "4h"
            value: "4h"
          - dps_val: "5h"
            value: "5h"
          - dps_val: "6h"
            value: "6h"
          - dps_val: "7h"
            value: "7h"
          - dps_val: "8h"
            value: "8h"
          - dps_val: "9h"
            value: "9h"
          - dps_val: "10h"
            value: "10h"
          - dps_val: "11h"
            value: "11h"
          - dps_val: "12h"
            value: "12h"
