m027_curtain.yaml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. value: opening
  36. constraint: current_position
  37. conditions:
  38. - dps_val: 100
  39. value: opened
  40. - dps_val: null
  41. value: opened
  42. - dps_val: closing
  43. value: closing
  44. constraint: current_position
  45. conditions:
  46. - dps_val: 0
  47. value: closed
  48. - dps_val: null
  49. value: closed
  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. translation_key: time_remaining
  72. class: duration
  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. class: problem
  91. category: diagnostic
  92. dps:
  93. - id: 12
  94. type: bitfield
  95. name: sensor
  96. mapping:
  97. - dps_val: 0
  98. value: false
  99. - value: true