name: String light
products:
  - id: l3bpgg8ibsagon4x
    manufacturer: LSC Smart Connect
    model: Party string RGBIC+CCT
entities:
  - entity: light
    icon: "mdi:string-lights"
    dps:
      - id: 20
        type: boolean
        name: switch
      - id: 21
        name: color_mode
        type: string
        mapping:
          - dps_val: white
            value: color_temp
          - dps_val: colour
            value: hs
          - dps_val: scene
            value: Scene
          - dps_val: music
            value: Music
      - id: 22
        name: brightness
        type: integer
        range:
          min: 10
          max: 1000
      - id: 23
        name: color_temp
        type: integer
        range:
          min: 0
          max: 1000
        mapping:
          - target_range:
              min: 2700
              max: 6500
      - 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
  - entity: text
    name: Music data
    category: config
    icon: "mdi:music"
    hidden: true
    dps:
      - id: 27
        type: string
        optional: true
        name: value
  - entity: text
    translation_key: scene
    category: config
    hidden: true
    dps:
      - id: 56
        type: base64
        optional: true
        name: value
  - entity: number
    name: String length
    category: config
    icon: "mdi:string-lights"
    dps:
      - id: 58
        type: integer
        name: value
        unit: leds
        range:
          min: 1
          max: 5000
  - entity: text
    name: Individual control
    category: config
    icon: "mdi:led-on"
    hidden: true
    dps:
      - id: 59
        type: base64
        optional: true
        name: value
  - entity: switch
    name: Filter
    category: config
    dps:
      - id: 101
        type: boolean
        optional: true
        name: switch
