name: Light
legacy_type: peteme_smart_recessed_lighting
products:
  - id: mja6r5ix
    manufacturer: Moes
  - id: it1u8ahz
    manufacturer: Moes
  - id: rcggc0ys
    manufacturer: Moes
    model: ZC-TD SW zigbee GU10
  - id: sjaun9de
    manufacturer: Peteme
    model: SIG_DL_RGBCW
    name: Recessed lighting
  - id: mz2q6zlu
    manufacturer: Kojima
    model: GU10 smart bulb
entities:
  - entity: light
    dps:
      - id: 1
        type: boolean
        name: switch
      - id: 2
        name: color_mode
        type: string
        optional: true
        mapping:
          - dps_val: white
            value: color_temp
          - dps_val: colour
            value: hs
          - dps_val: scene
            value: scene
          - dps_val: music
            value: music
          - dps_val: null
            value: color_temp
            hidden: true
      - id: 3
        name: brightness
        type: integer
        optional: true
        range:
          min: 10
          max: 1000
      - id: 4
        name: color_temp
        optional: true
        type: integer
        range:
          min: 0
          max: 1000
        mapping:
          - target_range:
              min: 2700
              max: 6500
      - id: 5
        name: rgbhsv
        type: hex
        optional: true
        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: select
    translation_key: scene
    category: config
    dps:
      - id: 6
        type: string
        name: option
        optional: true
        mapping:
          - dps_val: 00282800012e0081015c00000000
            value: night
          - dps_val: 010e0d0000000000000003e801f4
            value: reading
          - dps_val: 020e0d0000000000000003e803e8
            value: working
          - dps_val: 030e0d0000000000000001f401f4
            value: leisure
          - dps_val: 04464602007803e803e800000000464602007803e8000a00000000
            value: Soft
          - dps_val: "05464601000003e803e800000000464601007803e803e800000000\
              46460100f003e803e800000000464601003d03e803e80000000046460100ae\
              03e803e800000000464601011303e803e800000000"
            value: Colorful
          - dps_val: "06464601000003e803e800000000464601007803e803e800000000\
              46460100f003e803e800000000"
            value: Dazzling
          - dps_val: "07464602000003e803e800000000464602007803e803e800000000\
              46460200f003e803e800000000464602003d03e803e80000000046460200ae\
              03e803e800000000464602011303e803e800000000"
            value: Gorgeous
  - entity: time
    translation_key: timer
    category: config
    hidden: unavailable
    dps:
      - id: 7
        type: integer
        optional: true
        name: second
        range:
          min: 0
          max: 86400
      - id: 7
        type: integer
        optional: true
        name: available
        mapping:
          - dps_val: null
            value: false
          - value: true
  - entity: switch
    translation_key: do_not_disturb
    category: config
    hidden: unavailable
    dps:
      - id: 34
        type: boolean
        optional: true
        name: switch
      - id: 34
        type: boolean
        optional: true
        name: available
        mapping:
          - dps_val: null
            value: false
          - value: true
  - entity: text
    name: Power memory
    category: config
    hidden: true
    dps:
      - id: 33
        type: base64
        optional: true
        name: value
