name: Simple switch with timer
products:
  - id: r15JnoGqWPM4PPtl
    manufacturer: Teckin
    model: SP21
  - id: 5bvnmoqjth5nd4de
    manufacturer: Teckin
    model: SP21/SP22/SP27
entities:
  - entity: switch
    dps:
      - id: 1
        name: switch
        type: boolean
  - entity: time
    category: config
    translation_key: timer
    dps:
      - id: 11
        name: second
        type: integer
        range:
          min: 0
          max: 86400
  - entity: number
    category: config
    class: duration
    translation_key: timer
    # 2025-07-20
    deprecated: time.timer
    dps:
      - id: 11
        name: value
        type: integer
        unit: min
        range:
          min: 0
          max: 86400
        mapping:
          - scale: 60
            step: 60
