zemismart_roller_shade.yaml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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. constraint: current_position
  43. conditions:
  44. - dps_val: 0
  45. value: opened
  46. - value: opening
  47. - dps_val: closing
  48. constraint: current_position
  49. conditions:
  50. - dps_val: 100
  51. value: closed
  52. - value: closing
  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. name: Fault
  85. class: problem
  86. category: diagnostic
  87. dps:
  88. - id: 12
  89. type: bitfield
  90. name: sensor
  91. mapping:
  92. - dps_val: 0
  93. value: false
  94. - value: true
  95. - entity: select
  96. name: Motor mode
  97. icon: "mdi:cog-transfer"
  98. category: config
  99. dps:
  100. - id: 106
  101. type: string
  102. name: option
  103. mapping:
  104. - dps_val: contiuation
  105. value: Auto
  106. - dps_val: point
  107. value: Manual
  108. - entity: button
  109. name: Upper limit reset
  110. icon: "mdi:arrow-collapse-up"
  111. category: config
  112. dps:
  113. - id: 103
  114. type: boolean
  115. name: button
  116. - entity: button
  117. name: Intermediate limit reset
  118. icon: "mdi:format-vertical-align-center"
  119. category: config
  120. dps:
  121. - id: 104
  122. type: boolean
  123. name: button
  124. - entity: button
  125. name: Lower limit reset
  126. icon: "mdi:arrow-collapse-down"
  127. category: config
  128. dps:
  129. - id: 105
  130. type: boolean
  131. name: button
  132. - entity: button
  133. name: Remote pairing
  134. icon: "mdi:remote"
  135. category: config
  136. dps:
  137. - id: 101
  138. type: boolean
  139. name: button
  140. optional: true
  141. - entity: button
  142. name: All limits reset
  143. icon: "mdi:refresh"
  144. category: config
  145. dps:
  146. - id: 102
  147. type: boolean
  148. name: button
  149. optional: true