name: Control hub
products:
  - id: z1fcxdrpiazyjaky
    manufacturer: Moes
    model: CCP-S01-EU-WH-EN
    name: Touchscreen control panel IR and Bluetooth hub
entities:
  - entity: switch
    translation_key: switch_x
    translation_placeholders:
      x: "1"
    dps:
      - id: 16
        type: boolean
        name: switch
        # up channel is defined as read-only, down_channel as write only.
        # this seems wrong, but they are in an undocumented "raw" format,
        # so anyway difficult to support
      - id: 1
        type: string
        optional: true
        name: up_channel
      - id: 2
        type: string
        optional: true
        name: down_channel
  - entity: switch
    translation_key: switch_x
    translation_placeholders:
      x: "2"
    dps:
      - id: 17
        type: boolean
        name: switch
  - entity: switch
    translation_key: switch_x
    translation_placeholders:
      x: "3"
    dps:
      - id: 3
        type: boolean
        name: switch
  - entity: light
    class: backlight
    category: config
    dps:
      - id: 36
        type: boolean
        optional: true
        name: switch
  - entity: select
    translation_key: light_mode
    category: config
    dps:
      - id: 37
        type: string
        name: option
        mapping:
          - dps_val: none
            value: "off"
          - dps_val: relay
            value: state
          - dps_val: pos
            value: locator
  - 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: Initial state 1
    translation_key: initial_state
    category: config
    dps:
      - id: 39
        type: string
        name: option
        mapping:
          - dps_val: "off"
            value: "off"
          - dps_val: "on"
            value: "on"
          - dps_val: memory
            value: memory
  - entity: select
    name: Initial state 2
    translation_key: initial_state
    category: config
    dps:
      - id: 40
        type: string
        name: option
        mapping:
          - dps_val: "off"
            value: "off"
          - dps_val: "on"
            value: "on"
          - dps_val: memory
            value: memory
  - entity: select
    name: Initial state 3
    translation_key: initial_state
    category: config
    dps:
      - id: 41
        type: string
        name: option
        mapping:
          - dps_val: "off"
            value: "off"
          - dps_val: "on"
            value: "on"
          - dps_val: memory
            value: memory
  - entity: remote
    dps:
      - id: 201
        type: string
        optional: true
        name: send
      - id: 202
        type: string
        optional: true
        name: receive
  - entity: infrared
    dps:
      - id: 201
        type: string
        optional: true
        name: send
  - entity: number
    name: Voice volume
    category: config
    icon: "mdi:volume-high"
    dps:
      - id: 203
        type: integer
        optional: true
        name: value
        unit: "%"
        range:
          min: 0
          max: 100
  - entity: switch
    name: Mic enable
    category: config
    dps:
      - id: 204
        type: boolean
        optional: true
        name: switch
  - entity: button
    name: Voice play
    category: config
    dps:
      - id: 205
        type: boolean
        name: button
        optional: true
      - id: 207
        type: string
        optional: true
        name: alarm_clock
      - id: 208
        type: string
        optional: true
        name: control_group
  - entity: button
    name: Voice Bluetooth play
    category: config
    dps:
      - id: 206
        type: boolean
        name: button
        optional: true
