m027_curtain.yaml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. name: M027 curtain
  2. primary_entity:
  3. entity: cover
  4. class: curtain
  5. dps:
  6. - id: 1
  7. name: control
  8. type: string
  9. mapping:
  10. - dps_val: open
  11. value: open
  12. - dps_val: close
  13. value: close
  14. - dps_val: stop
  15. value: stop
  16. - id: 2
  17. name: position
  18. type: integer
  19. unit: "%"
  20. range:
  21. min: 0
  22. max: 100
  23. - id: 3
  24. name: current_position
  25. type: integer
  26. unit: "%"
  27. optional: true
  28. - id: 7
  29. name: action
  30. type: string
  31. optional: true
  32. persist: false
  33. mapping:
  34. - dps_val: opening
  35. constraint: current_position
  36. conditions:
  37. - dps_val: 100
  38. value: opened
  39. - dps_val: null
  40. value: opened
  41. - value: opening
  42. - dps_val: closing
  43. constraint: current_position
  44. conditions:
  45. - dps_val: 0
  46. value: closed
  47. - dps_val: null
  48. value: closed
  49. - value: closing
  50. - id: 12
  51. name: fault_code
  52. type: bitfield
  53. - id: 101
  54. name: unknown_101
  55. type: boolean
  56. secondary_entities:
  57. - entity: select
  58. name: Mode
  59. icon: "mdi:theme-light-dark"
  60. category: config
  61. dps:
  62. - id: 4
  63. name: option
  64. type: string
  65. mapping:
  66. - dps_val: morning
  67. value: Morning
  68. - dps_val: night
  69. value: Night
  70. - entity: sensor
  71. name: Time remaining
  72. icon: "mdi:timer"
  73. category: diagnostic
  74. dps:
  75. - id: 9
  76. name: sensor
  77. type: integer
  78. optional: true
  79. unit: s
  80. - entity: sensor
  81. name: Travel time
  82. icon: "mdi:hourglass"
  83. category: diagnostic
  84. dps:
  85. - id: 10
  86. name: sensor
  87. type: integer
  88. unit: ms
  89. - entity: binary_sensor
  90. name: Fault
  91. class: problem
  92. category: diagnostic
  93. dps:
  94. - id: 12
  95. type: bitfield
  96. name: sensor
  97. mapping:
  98. - dps_val: 0
  99. value: false
  100. - value: true