avatto_roller_blinds.yaml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. name: Roller blinds
  2. products:
  3. - id: 3r8gc33pnqsxfe1g
  4. manufacturer: Quoya
  5. model: MC08
  6. name: Blinds motor
  7. entities:
  8. - entity: cover
  9. class: blind
  10. dps:
  11. - id: 1
  12. name: control
  13. type: string
  14. mapping:
  15. - dps_val: open
  16. value: open
  17. - dps_val: close
  18. value: close
  19. - dps_val: stop
  20. value: stop
  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. unit: "%"
  33. optional: true
  34. persist: false
  35. mapping:
  36. - invert: true
  37. range:
  38. min: 0
  39. max: 100
  40. - id: 7
  41. name: action
  42. type: string
  43. optional: true
  44. persist: false
  45. mapping:
  46. - dps_val: opening
  47. value: opening
  48. constraint: current_position
  49. conditions:
  50. - dps_val: 0
  51. value: opened
  52. - dps_val: null
  53. value: null
  54. - dps_val: closing
  55. value: closing
  56. constraint: current_position
  57. conditions:
  58. - dps_val: 100
  59. value: closed
  60. - dps_val: null
  61. value: null
  62. - entity: select
  63. translation_key: timer
  64. category: config
  65. dps:
  66. - id: 8
  67. name: option
  68. type: string
  69. mapping:
  70. - dps_val: cancel
  71. value: cancel
  72. - dps_val: "1"
  73. value: "1h"
  74. - dps_val: "2"
  75. value: "2h"
  76. - dps_val: "3"
  77. value: "3h"
  78. - dps_val: "4"
  79. value: "4h"
  80. - entity: sensor
  81. translation_key: time_remaining
  82. class: duration
  83. category: diagnostic
  84. dps:
  85. - id: 9
  86. name: sensor
  87. type: integer
  88. optional: true
  89. unit: s
  90. - entity: sensor
  91. name: Travel time
  92. icon: "mdi:hourglass"
  93. category: diagnostic
  94. dps:
  95. - id: 11
  96. name: sensor
  97. type: integer
  98. unit: ms
  99. - entity: select
  100. name: Direction
  101. icon: "mdi:swap-vertical"
  102. category: config
  103. dps:
  104. - id: 5
  105. type: boolean
  106. name: option
  107. mapping:
  108. - dps_val: false
  109. value: Clockwise
  110. - dps_val: true
  111. value: Anti-clockwise
  112. - entity: binary_sensor
  113. class: problem
  114. category: diagnostic
  115. dps:
  116. - id: 10
  117. type: bitfield
  118. name: sensor
  119. optional: true
  120. mapping:
  121. - dps_val: 0
  122. value: false
  123. - value: true
  124. - id: 10
  125. type: bitfield
  126. optional: true
  127. name: fault_code