m515_curtain_motor.yaml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. name: Curtain motor
  2. products:
  3. - id: t6ief6k56sapz1ey
  4. name: M515EGWT v2
  5. primary_entity:
  6. entity: cover
  7. class: curtain
  8. dps:
  9. - id: 1
  10. name: control
  11. type: string
  12. mapping:
  13. - dps_val: open
  14. value: open
  15. - dps_val: stop
  16. value: stop
  17. - dps_val: close
  18. value: close
  19. - id: 2
  20. name: position
  21. type: integer
  22. range:
  23. min: 0
  24. max: 100
  25. - id: 7
  26. name: action
  27. type: string
  28. persist: false
  29. optional: true
  30. mapping:
  31. - dps_val: opening
  32. value: opening
  33. - dps_val: closing
  34. value: closing
  35. - id: 12
  36. name: fault_code
  37. type: bitfield
  38. optional: true
  39. secondary_entities:
  40. - entity: switch
  41. name: Reversed
  42. icon: "mdi:arrow-u-left-bottom"
  43. category: config
  44. dps:
  45. - id: 5
  46. type: boolean
  47. name: switch
  48. optional: true
  49. mapping:
  50. - dps_val: null
  51. value: false
  52. hidden: true
  53. - entity: binary_sensor
  54. name: Fault
  55. class: problem
  56. category: diagnostic
  57. dps:
  58. - id: 12
  59. type: bitfield
  60. name: sensor
  61. optional: true
  62. mapping:
  63. - dps_val: 0
  64. value: false
  65. - dps_val: null
  66. value: false
  67. - value: true
  68. - entity: select
  69. name: Border setting
  70. icon: "mdi:border-bottom-variant"
  71. category: config
  72. dps:
  73. - id: 16
  74. type: string
  75. name: option
  76. mapping:
  77. - dps_val: up
  78. value: Top
  79. - dps_val: down
  80. value: Bottom
  81. - dps_val: up_delete
  82. value: Clear top
  83. - dps_val: down_delete
  84. value: Clear bottom
  85. - dps_val: remove_top_bottom
  86. value: Clear all
  87. - entity: number
  88. name: Best position
  89. category: config
  90. icon: "mdi:roller-shade"
  91. dps:
  92. - id: 19
  93. type: integer
  94. name: value
  95. optional: true
  96. unit: "%"
  97. range:
  98. min: 0
  99. max: 100