m027_curtain.yaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. mapping:
  32. - dps_val: opening
  33. constraint: current_position
  34. conditions:
  35. - dps_val: 100
  36. value: opened
  37. - dps_val: null
  38. value: opened
  39. - value: opening
  40. - dps_val: closing
  41. constraint: current_position
  42. conditions:
  43. - dps_val: 0
  44. value: closed
  45. - dps_val: null
  46. value: closed
  47. - value: closing
  48. - id: 12
  49. name: unknown_12
  50. type: integer
  51. - id: 101
  52. name: unknown_101
  53. type: boolean
  54. secondary_entities:
  55. - entity: select
  56. name: Mode
  57. icon: "mdi:theme-light-dark"
  58. category: config
  59. dps:
  60. - id: 4
  61. name: option
  62. type: string
  63. mapping:
  64. - dps_val: morning
  65. value: Morning
  66. - dps_val: night
  67. value: Night
  68. - entity: sensor
  69. name: Time remaining
  70. icon: "mdi:timer"
  71. category: diagnostic
  72. dps:
  73. - id: 9
  74. name: sensor
  75. type: integer
  76. optional: true
  77. unit: s
  78. - entity: sensor
  79. name: Travel time
  80. icon: "mdi:hourglass"
  81. category: diagnostic
  82. dps:
  83. - id: 10
  84. name: sensor
  85. type: integer
  86. unit: ms