name: Smartplug with timer
products:
  # Original product id unknown: Mirabella Genio USB smartplug
  - id: PGEkBctAbtzKOZng
    manufacturer: Maxcio
    model: W-DE004
  - id: O0YnvNLlDWbJd4KC
    manufacturer: Hyleton
    model: "315"
entities:
  - entity: switch
    class: outlet
    dps:
      - id: 1
        type: boolean
        name: switch
  - entity: time
    translation_key: timer
    category: config
    dps:
      - id: 2
        type: integer
        name: second
        range:
          min: 0
          max: 86400
  - entity: number
    translation_key: timer
    # 2025-07-20
    deprecated: time.timer
    class: duration
    category: config
    dps:
      - id: 2
        type: integer
        name: value
        unit: min
        range:
          min: 0
          max: 86400
        mapping:
          - scale: 60
            step: 60
