name: Atomi string lights
primary_entity:
  entity: light
  dps:
    - id: 20
      type: boolean
      name: switch
    - id: 21
      type: string
      name: color_mode
      mapping:
        - dps_val: white
          value: color_temp
        - dps_val: colour
          value: hs
        - dps_val: scene1
          value: Strobe
        - dps_val: scene2
          value: Fade
        - dps_val: scene3
          value: Pulse
        - dps_val: scene4
          value: Blink
        - dps_val: scene5
          value: Chase
        - dps_val: scene6
          value: Christmas
        - dps_val: scene7
          value: America
        - dps_val: scene8
          value: Pick 2
        - dps_val: scene9
          value: Multi
    - id: 22
      name: brightness
      type: integer
      range:
        min: 0
        max: 255
    - id: 23
      name: color_temp
      type: integer
      range:
        min: 0
        max: 255
      mapping:
        - target_range:
            min: 2700
            max: 6500
    - id: 24
      name: rgbhsv
      type: hex
      format:
        - name: r
          bytes: 1
        - name: g
          bytes: 1
        - name: b
          bytes: 1
        - name: h
          bytes: 2
          range:
            min: 0
            max: 360
        - name: s
          bytes: 1
          range:
            min: 0
            max: 255
        - name: v
          bytes: 1
          range:
            min: 0
            max: 255
    - id: 101
      name: scene_data
      type: hex
      optional: true
