name: Two outlet two USB smartplug
products:
  - id: cianx1tz1ifyvyqm
    name: Surge protector plug 2x2
primary_entity:
  entity: switch
  class: outlet
  name: Outlet 1
  dps:
    - id: 1
      name: switch
      type: boolean
secondary_entities:
  - entity: switch
    class: outlet
    name: Outlet 2
    dps:
      - id: 2
        name: switch
        type: boolean
  - entity: switch
    name: USB 1
    dps:
      - id: 7
        name: switch
        type: boolean
  - entity: switch
    name: USB 2
    dps:
      - id: 8
        name: switch
        type: boolean
  - entity: number
    name: Timer 1
    translation_key: timer
    category: config
    dps:
      - id: 9
        name: value
        type: integer
        unit: min
        range:
          min: 0
          max: 86400
        mapping:
          - scale: 60
            step: 60
  - entity: number
    name: Timer 2
    translation_key: timer
    category: config
    dps:
      - id: 10
        name: value
        type: integer
        unit: min
        range:
          min: 0
          max: 86400
        mapping:
          - scale: 60
            step: 60
  - entity: number
    name: Timer USB 1
    translation_key: timer
    category: config
    dps:
      - id: 15
        name: value
        type: integer
        unit: min
        range:
          min: 0
          max: 86400
        mapping:
          - scale: 60
            step: 60
  - entity: number
    name: Timer USB 2
    translation_key: timer
    category: config
    dps:
      - id: 16
        name: value
        type: integer
        unit: min
        range:
          min: 0
          max: 86400
        mapping:
          - scale: 60
            step: 60
