gw_motor_roller_blind.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. name: Roller blind
  2. products:
  3. - id: slrxhmozdm3qq9cl
  4. manufacturer: GW Motor
  5. model: Roller blind
  6. name: Sub-device roller blind (gateway)
  7. entities:
  8. - entity: cover
  9. class: blind
  10. dps:
  11. - id: 1
  12. name: control
  13. type: string
  14. mapping:
  15. - conditions:
  16. - dps_val: ["0", "1", "2"]
  17. mapping:
  18. - dps_val: "0"
  19. value: open
  20. - dps_val: "1"
  21. value: close
  22. - dps_val: "2"
  23. value: stop
  24. # set options when there are non during startup
  25. - dps_val: null
  26. mapping:
  27. - dps_val: open
  28. value: open
  29. - dps_val: close
  30. value: close
  31. - dps_val: stop
  32. value: stop
  33. - id: 2
  34. # this is percent_control in API Explorer but we'll use it to get the
  35. # last position set, as the device cannot report its current_position.
  36. # will be incorrect when manually opening / closing.
  37. name: current_position
  38. type: integer
  39. unit: "%"
  40. optional: true
  41. range:
  42. min: 0
  43. max: 100
  44. - id: 101
  45. name: position
  46. type: integer
  47. unit: "%"
  48. range:
  49. min: 0
  50. max: 100