name: Timer switch
products:
  - id: ae0y7quogjcnzery
    manufacturer: Minoston
    model: nhT06-WIFI
entities:
  - entity: switch
    dps:
      - id: 1
        type: boolean
        name: switch
  - entity: time
    translation_key: timer
    category: config
    dps:
      - id: 7
        type: integer
        name: second
        range:
          min: 0
          max: 86400
  - entity: time
    name: Preset 1 time
    translation_key: timer
    category: config
    dps:
      - id: 101
        type: integer
        name: second
        range:
          min: 0
          max: 86400
  - entity: time
    name: Preset 2 time
    translation_key: timer
    category: config
    dps:
      - id: 102
        type: integer
        name: second
        range:
          min: 0
          max: 86400
  - entity: time
    name: Preset 3 time
    translation_key: timer
    category: config
    dps:
      - id: 103
        type: integer
        name: second
        range:
          min: 0
          max: 86400
  - entity: time
    name: Preset 4 time
    translation_key: timer
    category: config
    dps:
      - id: 104
        type: integer
        name: second
        range:
          min: 0
          max: 86400
  - entity: time
    name: Preset 5 time
    translation_key: timer
    category: config
    dps:
      - id: 105
        type: integer
        name: second
        range:
          min: 0
          max: 86400
  - entity: time
    name: Preset 6 time
    translation_key: timer
    category: config
    dps:
      - id: 106
        type: integer
        name: second
        range:
          min: 0
          max: 86400
  - entity: light
    translation_key: indicator
    category: config
    dps:
      - id: 107
        name: brightness
        type: integer
        range:
          min: 0
          max: 100
  - entity: sensor
    name: Active timer
    class: enum
    category: diagnostic
    dps:
      - id: 108
        type: integer
        name: sensor
        mapping:
          - dps_val: 0
            value: None
          - dps_val: 1
            value: Preset 1
          - dps_val: 2
            value: Preset 2
          - dps_val: 3
            value: Preset 3
          - dps_val: 4
            value: Preset 4
          - dps_val: 5
            value: Preset 5
          - dps_val: 6
            value: Preset 6
  - entity: select
    name: Power indicator
    icon: "mdi:led-on"
    category: config
    dps:
      - id: 109
        type: string
        name: option
        mapping:
          - dps_val: "on"
            value: Solid
          - dps_val: flicker
            value: Blink
  - entity: select
    name: Timer indicator
    icon: "mdi:led-on"
    category: config
    dps:
      - id: 110
        type: string
        name: option
        mapping:
          - dps_val: "on"
            value: Solid
          - dps_val: flicker
            value: Blink
  - entity: switch
    name: Override
    dps:
      - id: 111
        type: boolean
        name: switch
