zemismart_roller_shade_zm25r2.yaml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. name: Roller shade
  2. products:
  3. - id: 8nuvcigdwbth6dj7
  4. manufacturer: Zemismart
  5. model: ZM25R2
  6. entities:
  7. - entity: cover
  8. class: shade
  9. dps:
  10. - id: 1
  11. name: control
  12. type: string
  13. mapping:
  14. - dps_val: open
  15. value: open
  16. - dps_val: close
  17. value: close
  18. - dps_val: stop
  19. value: stop
  20. - dps_val: continue
  21. value: continue
  22. - id: 2
  23. name: position
  24. type: integer
  25. optional: true
  26. range:
  27. min: 0
  28. max: 100
  29. mapping:
  30. - invert: true
  31. - id: 3
  32. name: current_position
  33. type: integer
  34. range:
  35. min: 0
  36. max: 100
  37. mapping:
  38. - invert: true
  39. - id: 5
  40. name: control_back
  41. type: string
  42. mapping:
  43. - dps_val: forward
  44. value: forward
  45. - dps_val: back
  46. value: back
  47. - id: 7
  48. name: unreliable_action
  49. type: string
  50. mapping:
  51. - dps_val: opening
  52. value: opening
  53. constraint: current_position
  54. conditions:
  55. - dps_val: 0
  56. value: opened
  57. - dps_val: closing
  58. value: closing
  59. constraint: current_position
  60. conditions:
  61. - dps_val: 100
  62. value: closed
  63. - entity: select
  64. name: Mode
  65. icon: "mdi:theme-light-dark"
  66. category: config
  67. dps:
  68. - id: 4
  69. name: option
  70. type: string
  71. optional: true
  72. mapping:
  73. - dps_val: morning
  74. value: Morning
  75. - dps_val: night
  76. value: Night
  77. - entity: binary_sensor
  78. class: problem
  79. category: diagnostic
  80. dps:
  81. - id: 12
  82. type: bitfield
  83. name: sensor
  84. optional: true
  85. mapping:
  86. - dps_val: 0
  87. value: false
  88. - dps_val: null
  89. value: false
  90. - value: true
  91. - id: 12
  92. name: fault_code
  93. type: bitfield
  94. optional: true
  95. - entity: sensor
  96. name: Travel time
  97. icon: "mdi:hourglass"
  98. category: diagnostic
  99. dps:
  100. - id: 10
  101. name: sensor
  102. type: integer
  103. optional: true
  104. unit: ms
  105. - entity: select
  106. name: Click control
  107. icon: "mdi:theme-light-dark"
  108. category: config
  109. dps:
  110. - id: 20
  111. name: option
  112. type: string
  113. optional: true
  114. mapping:
  115. - dps_val: continuous
  116. value: Continuous
  117. - dps_val: Intermittently
  118. value: Intermittent
  119. - entity: button
  120. name: Remote pairing
  121. icon: "mdi:remote"
  122. category: config
  123. dps:
  124. - id: 101
  125. type: boolean
  126. name: button