name: Quad switch
products:
  - id: mwiiltjyanw48oxm
    name: Moes MS-104D
primary_entity:
  entity: switch
  name: Switch 1
  dps:
    - id: 1
      type: boolean
      name: switch
    - id: 44
      type: string
      name: inching
    - id: 48
      type: string
      name: interlock
      optional: true
secondary_entities:
  - entity: switch
    name: Switch 2
    dps:
      - id: 2
        type: boolean
        name: switch
  - entity: switch
    name: Switch 3
    dps:
      - id: 3
        type: boolean
        name: switch
  - entity: switch
    name: Switch 4
    dps:
      - id: 4
        type: boolean
        name: switch
  - entity: number
    name: Timer 1
    category: config
    translation_key: timer
    dps:
      - id: 9
        type: integer
        name: value
        unit: min
        range:
          min: 0
          max: 86400
        mapping:
          - scale: 60
            step: 60
      - id: 42
        type: string
        name: random_timer
      - id: 43
        type: string
        name: cycle_timer
  - entity: number
    name: Timer 2
    category: config
    translation_key: timer
    dps:
      - id: 10
        type: integer
        name: value
        unit: min
        range:
          min: 0
          max: 86400
        mapping:
          - scale: 60
            step: 60
  - entity: number
    name: Timer 3
    category: config
    translation_key: timer
    dps:
      - id: 11
        type: integer
        name: value
        unit: min
        range:
          min: 0
          max: 86400
        mapping:
          - scale: 60
            step: 60
  - entity: number
    name: Timer 4
    category: config
    translation_key: timer
    dps:
      - id: 12
        type: integer
        name: value
        unit: min
        range:
          min: 0
          max: 86400
        mapping:
          - scale: 60
            step: 60
  - entity: select
    translation_key: initial_state
    category: config
    dps:
      - id: 38
        type: string
        name: option
        mapping:
          - dps_val: "off"
            value: "off"
          - dps_val: "on"
            value: "on"
          - dps_val: memory
            value: memory
  - entity: select
    name: Switch type
    icon: "mdi:toggle-switch"
    category: config
    dps:
      - id: 47
        type: string
        name: option
        mapping:
          - dps_val: flip
            value: Flip
          - dps_val: sync
            value: Synchronised
          - dps_val: button
            value: Button
