name: Monitor light bar
products:
  - id: oqtk22eg6jxorl78
    manufacturer: Ustellar
    model: UT99911-RGB
entities:
  - entity: light
    name: Front White LED
    icon: "mdi:wall-sconce-flat-outline"
    dps:
      - id: 101
        type: boolean
        name: switch
      - id: 22
        name: brightness
        type: integer
        range:
          min: 10
          max: 1000
      - id: 23
        type: integer
        name: color_temp
        mapping:
          - target_range:
              min: 2700
              max: 6500
        range:
          min: 0
          max: 1000
  - entity: light
    name: Rear RGB LED
    icon: "mdi:wall-sconce-flat-variant-outline"
    dps:
      - id: 20
        type: boolean
        name: switch
      - id: 21
        type: string
        name: app_mode
      - id: 24
        name: rgbhsv
        type: hex
        format:
          - name: h
            bytes: 2
            range:
              min: 0
              max: 360
          - name: s
            bytes: 2
            range:
              min: 0
              max: 1000
          - name: v
            bytes: 2
            range:
              min: 0
              max: 1000
      - id: 103
        type: string
        name: rgb_order
        mapping:
          - dps_val: "1"
            value: "RGB"
          - dps_val: "2"
            value: "RBG"
          - dps_val: "3"
            value: "GRB"
          - dps_val: "4"
            value: "GBR"
          - dps_val: "5"
            value: "BRG"
          - dps_val: "6"
            value: "BGR"
  - entity: select
    name: Music
    icon: "mdi:playlist-music"
    category: config
    dps:
      - id: 102
        type: string
        name: option
        optional: true
        mapping:
          - dps_val: 119
            value: "Classic 25%"
          - dps_val: 132
            value: "Classic 50%"
          - dps_val: 14b
            value: "Classic 75%"
          - dps_val: 164
            value: "Classic 100%"
          - dps_val: 219
            value: "Soft 25%"
          - dps_val: 232
            value: "Soft 50%"
          - dps_val: 24b
            value: "Soft 75%"
          - dps_val: 264
            value: "Soft 100%"
          - dps_val: 319
            value: "Dynamic 25%"
          - dps_val: 332
            value: "Dynamic 50%"
          - dps_val: 34b
            value: "Dynamic 75%"
          - dps_val: 364
            value: "Dynamic 100%"
          - dps_val: 419
            value: "Disco 25%"
          - dps_val: 432
            value: "Disco 50%"
          - dps_val: 44b
            value: "Disco 75%"
          - dps_val: 464
            value: "Disco 100%"
  - entity: select
    name: Mode
    icon: "mdi:playlist-edit"
    category: config
    dps:
      - id: 106
        type: string
        name: option
        optional: true
        mapping:
          - dps_val: "013264000003e803e8"
            value: "Breath"
          - dps_val: "023264000003e803e8"
            value: "Flash"
          - dps_val: "033264000003e803e8007803e803e800f003e803e8003b03e803e8\
              013603e803e8010e03e803e8"
            value: "Jump"
          - dps_val: "043264000003e803e8007803e803e800f003e803e8"
            value: "Gradient"
          - dps_val: "053264"
            value: "Symphony"
          - dps_val: "063264000003e803e8"
            value: "Trail"
          - dps_val: "073264000003e803e8"
            value: "Popular"
          - dps_val: "083264000003e803e8"
            value: "Stacking"
          - dps_val: "0932640000000003e8"
            value: "Adjoint"
  - entity: select
    translation_key: scene
    category: config
    dps:
      - id: 108
        type: string
        name: option
        optional: true
        mapping:
          - dps_val: "CJ_YD"
            value: reading
          - dps_val: "CJ_QC"
            value: morning
          - dps_val: "CJ_WA"
            value: night
          - dps_val: "CJ_XK"
            value: twinkle
          - dps_val: "CJ_JH"
            value: party
          - dps_val: "CJ_YS"
            value: movie
  - entity: number
    name: Strip Points
    category: config
    dps:
      - id: 104
        name: value
        type: integer
        range:
          min: 10
          max: 42
