name: Ceiling fan
products:
  - id: ipyqwvhvzzjezv35
    name: Treatlife DS03 ceiling fan and light
primary_entity:
  entity: fan
  dps:
    - id: 1
      type: boolean
      name: switch
    - id: 3
      type: string
      name: speed
      mapping:
        - dps_val: "1"
          value: 25
        - dps_val: "2"
          value: 50
        - dps_val: "3"
          value: 75
        - dps_val: "4"
          value: 100
    - id: 101
      type: integer
      name: unknown_101
      optional: true
    - id: 103
      type: integer
      name: unknown_103
      optional: true
    - id: 105
      type: integer
      name: unknown_105
      optional: true
    - id: 106
      type: string
      name: unknown_106
      optional: true
secondary_entities:
  - entity: light
    dps:
      - id: 9
        type: boolean
        name: switch
      - id: 10
        type: integer
        name: brightness
        range:
          min: 10
          max: 1000
