name: Window shade
products:
  - id: hldq12vsaqalcfer
    manufacturer: Graywind
    name: Hardwired blackout
entities:
  - entity: cover
    class: shade
    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
        range:
          min: 0
          max: 100
  - entity: select
    name: Motor direction
    category: config
    icon: "mdi:sign-direction"
    dps:
      - id: 5
        name: option
        type: string
        mapping:
          - dps_val: forward
            value: Forward
          - dps_val: back
            value: Back
  - entity: binary_sensor
    class: problem
    category: diagnostic
    dps:
      - id: 12
        type: bitfield
        optional: true
        name: sensor
        mapping:
          - dps_val: null
            value: false
          - dps_val: 0
            value: false
          - value: true
      - id: 12
        type: bitfield
        optional: true
        name: fault_code
