avatto_roller_blinds.yaml 2.7 KB

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