name: Smart plug with USB ES-01
products:
  - id: hsoiigeykxh9m4hx
primary_entity:
  entity: switch
  class: outlet
  name: Switch 1
  dps:
    - id: 1
      type: boolean
      name: switch
secondary_entities:
  - entity: switch
    name: Switch 2
    class: outlet
    dps:
      - id: 2
        type: boolean
        name: switch
  - entity: switch
    name: Switch 3
    class: outlet
    dps:
      - id: 3
        type: boolean
        name: switch
  - entity: switch
    name: USB switch
    dps:
      - id: 4
        type: boolean
        name: switch
  - entity: number
    category: config
    name: Timer socket 1
    translation_key: timer
    dps:
      - id: 5
        name: value
        type: integer
        unit: min
        range:
          min: 0
          max: 86400
        mapping:
          - scale: 60
            step: 60
  - entity: number
    category: config
    name: Timer socket 2
    translation_key: timer
    dps:
      - id: 6
        name: value
        type: integer
        unit: min
        range:
          min: 0
          max: 86400
        mapping:
          - scale: 60
            step: 60
  - entity: number
    category: config
    name: Timer socket 3
    translation_key: timer
    dps:
      - id: 7
        name: value
        type: integer
        unit: min
        range:
          min: 0
          max: 86400
        mapping:
          - scale: 60
            step: 60
  - entity: number
    category: config
    name: USB timer
    translation_key: timer
    dps:
      - id: 8
        name: value
        type: integer
        unit: min
        range:
          min: 0
          max: 86400
        mapping:
          - scale: 60
            step: 60
