name: Single Switch With Backlight
products:
  - id: gbdzignerqxddcuj
primary_entity:
  entity: switch
  dps:
    - id: 1
      name: switch
      type: boolean
secondary_entities:
  - entity: number
    translation_key: timer
    category: config
    dps:
      - id: 7
        name: value
        type: integer
        range:
          min: 0
          max: 86400
        mapping:
          - scale: 60
            step: 60
        unit: min
  - entity: select
    category: config
    translation_key: initial_state
    dps:
      - id: 14
        name: option
        type: string
        mapping:
          - dps_val: last
            value: memory
          - dps_val: power_on
            value: "on"
          - dps_val: power_off
            value: "off"
  - entity: select
    category: config
    name: "Backlight Mode"
    icon: "mdi:television-ambient-light"
    dps:
      - id: 15
        name: option
        type: string
        mapping:
          - dps_val: relay
            value: "Indicate On/Off"
          - dps_val: pos
            value: "Indicate Location"
          - dps_val: none
            value: "Off"
  - entity: light
    translation_key: backlight
    category: config
    dps:
      - id: 16
        name: switch
        type: boolean
