name: Curtain
products:
  - id: 8kzqqzu4
    manufacturer: Loratap
    model: SC500ZB-V2
  - id: v7ooovn9oamttmre
    manufacturer: Loratap
entities:
  - entity: cover
    class: shutter
    dps:
      - id: 1
        name: control
        type: string
        mapping:
          - dps_val: "open"
            value: open
          - dps_val: "close"
            value: close
          - dps_val: "stop"
            value: stop
      - id: 2
        name: position
        type: integer
        unit: "%"
        range:
          min: 0
          max: 100
      - id: 14
        name: light_mode
        type: string
        optional: true
  - entity: switch
    category: config
    name: Reverse motor direction
    icon: "mdi:arrow-u-down-left"
    dps:
      - id: 8
        type: string
        name: switch
        mapping:
          - dps_val: "forward"
            value: false
          - dps_val: "back"
            value: true
  - entity: select
    name: Calibration
    category: config
    icon: "mdi:toggle-switch"
    dps:
      - id: 3
        name: option
        type: string
        mapping:
          - dps_val: "start"
            value: "On"
          - dps_val: "end"
            value: "Off"
