name: Simple curtain switch
products:
  - id: tuh2eatk4hsq336s
    manufacturer: Loratap
    model: SC500W-V1
  - id: hwbhrbadjynv7w70
    manufacturer: Zemismart
    model: ZM16L
entities:
  - entity: cover
    class: blind
    dps:
      - id: 1
        name: control
        type: string
        mapping:
          - conditions:
              - dps_val: ["1", "2", "3"]
                mapping:
                  - dps_val: "1"
                    value: open
                  - dps_val: "2"
                    value: close
                  - dps_val: "3"
                    value: stop
              - dps_val: ["open", "close", "stop", "continue"]
                mapping:
                  - dps_val: open
                    value: open
                  - dps_val: close
                    value: close
                  - dps_val: stop
                    value: stop
              - dps_val: ["ZZ", "FZ", "STOP"]
                mapping:
                  - dps_val: ZZ
                    value: open
                  - dps_val: FZ
                    value: close
                  - dps_val: STOP
                    value: stop
              - dps_val: null
                mapping:
                  - dps_val: open
                    value: open
                  - dps_val: close
                    value: close
                  - dps_val: stop
                    value: stop
