zemismart_roller_shade.yaml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. name: Roller shade
  2. products:
  3. - id: jzmy5ut0vishwscm
  4. name: Zemismart ZM25TQ
  5. primary_entity:
  6. entity: cover
  7. class: shade
  8. dps:
  9. - id: 1
  10. name: control
  11. type: string
  12. mapping:
  13. - dps_val: open
  14. value: open
  15. - dps_val: close
  16. value: close
  17. - dps_val: stop
  18. value: stop
  19. - dps_val: continue
  20. value: continue
  21. - id: 2
  22. name: position
  23. type: integer
  24. range:
  25. min: 0
  26. max: 100
  27. mapping:
  28. - invert: true
  29. - id: 3
  30. name: current_position
  31. type: integer
  32. range:
  33. min: 0
  34. max: 100
  35. mapping:
  36. - invert: true
  37. - id: 7
  38. name: unreliable_action
  39. type: string
  40. mapping:
  41. - dps_val: opening
  42. value: opening
  43. constraint: current_position
  44. conditions:
  45. - dps_val: 0
  46. value: opened
  47. - dps_val: closing
  48. value: closing
  49. constraint: current_position
  50. conditions:
  51. - dps_val: 100
  52. value: closed
  53. - id: 12
  54. name: fault_code
  55. type: bitfield
  56. secondary_entities:
  57. - entity: select
  58. name: Direction
  59. icon: "mdi:swap-horizontal"
  60. category: config
  61. dps:
  62. - id: 5
  63. type: string
  64. name: option
  65. mapping:
  66. - dps_val: forward
  67. value: Forward
  68. - dps_val: back
  69. value: Reverse
  70. - entity: sensor
  71. name: Situation
  72. class: enum
  73. category: diagnostic
  74. dps:
  75. - id: 11
  76. type: string
  77. name: sensor
  78. mapping:
  79. - dps_val: fully_open
  80. value: Fully open
  81. - dps_val: fully_close
  82. value: Fully closed
  83. - entity: binary_sensor
  84. class: problem
  85. category: diagnostic
  86. dps:
  87. - id: 12
  88. type: bitfield
  89. name: sensor
  90. mapping:
  91. - dps_val: 0
  92. value: false
  93. - value: true
  94. - entity: select
  95. name: Motor mode
  96. icon: "mdi:cog-transfer"
  97. category: config
  98. dps:
  99. - id: 106
  100. type: string
  101. name: option
  102. mapping:
  103. - dps_val: contiuation
  104. value: Auto
  105. - dps_val: point
  106. value: Manual
  107. - entity: button
  108. name: Upper limit reset
  109. icon: "mdi:arrow-collapse-up"
  110. category: config
  111. dps:
  112. - id: 103
  113. type: boolean
  114. name: button
  115. - entity: button
  116. name: Intermediate limit reset
  117. icon: "mdi:format-vertical-align-center"
  118. category: config
  119. dps:
  120. - id: 104
  121. type: boolean
  122. name: button
  123. - entity: button
  124. name: Lower limit reset
  125. icon: "mdi:arrow-collapse-down"
  126. category: config
  127. dps:
  128. - id: 105
  129. type: boolean
  130. name: button
  131. - entity: button
  132. name: Remote pairing
  133. icon: "mdi:remote"
  134. category: config
  135. dps:
  136. - id: 101
  137. type: boolean
  138. name: button
  139. optional: true
  140. - entity: button
  141. name: All limits reset
  142. class: restart
  143. category: config
  144. dps:
  145. - id: 102
  146. type: boolean
  147. name: button
  148. optional: true