name: Grid Connect USB charger with power socket
primary_entity:
  entity: switch
  class: outlet
  dps:
    - id: 1
      type: boolean
      name: switch
secondary_entities:
  - entity: switch
    name: USB
    dps:
      - id: 2
        type: boolean
        name: switch
  - entity: number
    name: Outlet timer
    translation_key: timer
    category: config
    dps:
      - id: 9
        type: integer
        name: value
        range:
          min: 0
          max: 86400
        mapping:
          - scale: 60
            step: 60
        unit: mi
  - entity: number
    name: USB timer
    translation_key: timer
    category: config
    dps:
      - id: 10
        type: integer
        name: value
        range:
          min: 0
          max: 86400
        mapping:
          - scale: 60
            step: 60
        unit: min
  - entity: select
    translation_key: initial_state
    category: config
    dps:
      - id: 38
        type: string
        name: option
        mapping:
          - dps_val: power_off
            value: "off"
          - dps_val: power_on
            value: "on"
          - dps_val: last
            value: memory
  - entity: lock
    translation_key: child_lock
    category: config
    dps:
      - id: 41
        type: boolean
        name: lock
  - entity: switch
    name: Auto-off
    category: config
    icon: "mdi:camera-timer"
    dps:
      - id: 44
        type: boolean
        name: switch
