name: Quad powerstrip
products:
  - id: key5nck4tavy43jp
    manufacturer: Xystec
    model: NX-4686-919 4xUSB
  - id: ckg60n4x6qakegxo
    manufacturer: Xystec
    model: NX-4986-919 4xUSB
  - id: fn2jtjtvkegj2oll
    manufacturer: Powersav
    model: AHR-083
  - id: nflvklbkgbbxegxj
    manufacturer: LSC Smart Connect
entities:
  - entity: switch
    translation_key: outlet_x
    translation_placeholders:
      x: "1"
    class: outlet
    dps:
      - id: 1
        type: boolean
        name: switch
  - entity: switch
    translation_key: outlet_x
    translation_placeholders:
      x: "2"
    class: outlet
    dps:
      - id: 2
        type: boolean
        name: switch
  - entity: switch
    translation_key: outlet_x
    translation_placeholders:
      x: "3"
    class: outlet
    dps:
      - id: 3
        type: boolean
        name: switch
  - entity: switch
    translation_key: outlet_x
    translation_placeholders:
      x: "4"
    class: outlet
    dps:
      - id: 4
        type: boolean
        name: switch
  - entity: time
    category: config
    translation_key: timer_x
    translation_placeholders:
      x: "1"
    dps:
      - id: 9
        type: integer
        name: second
        range:
          min: 0
          max: 86400
  - entity: time
    category: config
    translation_key: timer_x
    translation_placeholders:
      x: "2"
    dps:
      - id: 10
        type: integer
        name: second
        range:
          min: 0
          max: 86400
  - entity: time
    category: config
    translation_key: timer_x
    translation_placeholders:
      x: "3"
    dps:
      - id: 11
        type: integer
        name: second
        range:
          min: 0
          max: 86400
  - entity: time
    category: config
    translation_key: timer_x
    translation_placeholders:
      x: "4"
    dps:
      - id: 12
        type: integer
        name: second
        range:
          min: 0
          max: 86400
  - entity: select
    translation_key: initial_state
    category: config
    hidden: unavailable
    dps:
      - id: 38
        type: string
        optional: true
        name: available
        mapping:
          - dps_val: null
            value: false
          - value: true
      - id: 38
        type: string
        name: option
        optional: true
        mapping:
          - conditions:
              - dps_val: ["memory", "on", "off"]
                mapping:
                  - dps_val: "on"
                    value: "on"
                  - dps_val: "off"
                    value: "off"
                  - dps_val: memory
                    value: memory
              - dps_val: ["power_off", "power_on", "last"]
                mapping:
                  - dps_val: power_on
                    value: "on"
                  - dps_val: power_off
                    value: "off"
                  - dps_val: last
                    value: memory
              - dps_val: ["0", "1", "2"]
                mapping:
                  - dps_val: "0"
                    value: "off"
                  - dps_val: "1"
                    value: "on"
                  - dps_val: "2"
                    value: memory
              - dps_val: null
                mapping:
                  - dps_val: "on"
                    value: "on"
                  - dps_val: "off"
                    value: "off"
                  - dps_val: memory
                    value: memory
  - entity: select
    translation_key: light_mode
    category: config
    hidden: unavailable
    dps:
      - id: 40
        type: string
        optional: true
        name: available
        mapping:
          - dps_val: null
            value: false
          - value: true
      - id: 40
        type: string
        optional: true
        name: option
        mapping:
          - dps_val: relay
            value: state
          - dps_val: pos
            value: locator
          - dps_val: none
            value: "off"
  - entity: lock
    translation_key: child_lock
    category: config
    hidden: unavailable
    dps:
      - id: 41
        type: boolean
        optional: true
        name: lock
      - id: 41
        type: boolean
        optional: true
        name: available
        mapping:
          - dps_val: null
            value: false
          - value: true
  - entity: text
    translation_key: schedule
    category: config
    hidden: true
    dps:
      - id: 42
        type: string
        optional: true
        name: value
  - entity: text
    name: Random schedule
    category: config
    icon: "mdi:island"
    hidden: true
    dps:
      - id: 43
        type: string
        optional: true
        name: value
  - entity: text
    name: Inching
    category: config
    icon: "mdi:toggle-switch"
    hidden: true
    dps:
      - id: 44
        type: string
        optional: true
        name: value
