m027_curtain.yaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. name: M027 curtain
  2. entities:
  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: 101
  51. name: unknown_101
  52. type: boolean
  53. - entity: select
  54. name: Mode
  55. icon: "mdi:theme-light-dark"
  56. category: config
  57. dps:
  58. - id: 4
  59. name: option
  60. type: string
  61. mapping:
  62. - dps_val: morning
  63. value: Morning
  64. - dps_val: night
  65. value: Night
  66. - entity: sensor
  67. translation_key: time_remaining
  68. class: duration
  69. category: diagnostic
  70. dps:
  71. - id: 9
  72. name: sensor
  73. type: integer
  74. optional: true
  75. unit: s
  76. - entity: sensor
  77. name: Travel time
  78. icon: "mdi:hourglass"
  79. category: diagnostic
  80. dps:
  81. - id: 10
  82. name: sensor
  83. type: integer
  84. unit: ms
  85. - entity: binary_sensor
  86. class: problem
  87. category: diagnostic
  88. dps:
  89. - id: 12
  90. type: bitfield
  91. name: sensor
  92. mapping:
  93. - dps_val: 0
  94. value: false
  95. - value: true
  96. - id: 12
  97. name: fault_code
  98. type: bitfield