name: Dual dimmer
products:
  - id: qga0e955v5hmg21x
    manufacturer: Treatlife
    name: Dimmer with two sockets
entities:
  - entity: light
    name: Light 1
    category: config
    dps:
      - id: 1
        type: boolean
        name: switch
      - id: 2
        name: brightness
        type: integer
        range:
          min: 10
          max: 1000
      - id: 3
        name: min_brightness
        type: integer
      - id: 101
        name: away_program
        type: string
        optional: true
      - id: 102
        name: sleep_program
        type: string
        optional: true
      - id: 103
        name: awake_program
        type: string
        optional: true
  - entity: light
    name: Light 2
    dps:
      - id: 7
        type: boolean
        name: switch
      - id: 8
        name: brightness
        type: integer
        range:
          min: 0
          max: 1000
      - id: 9
        name: min_brightness
        type: integer
  - entity: select
    name: Light 1 type
    icon: "mdi:lightbulb"
    category: config
    dps:
      - id: 4
        type: string
        name: option
        mapping:
          - dps_val: led
            value: LED
          - dps_val: incandescent
            value: Incandescent
          - dps_val: halogen
            value: Halogen
  - entity: select
    name: Light 2 type
    icon: "mdi:lightbulb"
    category: config
    dps:
      - id: 10
        type: string
        name: option
        mapping:
          - dps_val: led
            value: LED
          - dps_val: incandescent
            value: Incandescent
          - dps_val: halogen
            value: Halogen
  - entity: time
    category: config
    translation_key: timer_x
    translation_placeholders:
      x: "1"
    dps:
      - id: 6
        type: integer
        name: second
        range:
          min: 0
          max: 86400
  - entity: time
    category: config
    translation_key: timer_x
    translation_placeholders:
      x: "2"
    dps:
      - id: 12
        type: integer
        name: second
        range:
          min: 0
          max: 86400
  - entity: select
    translation_key: light_mode
    category: config
    dps:
      - id: 21
        type: string
        name: option
        mapping:
          - dps_val: none
            value: "off"
          - dps_val: relay
            value: state
          - dps_val: pos
            value: locator
