m027_curtain.yaml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. - id: 7
  28. name: action
  29. type: string
  30. mapping:
  31. - dps_val: opening
  32. constraint: current_position
  33. conditions:
  34. - dps_val: 100
  35. value: opened
  36. - value: opening
  37. - dps_val: closing
  38. constraint: current_position
  39. conditions:
  40. - dps_val: 0
  41. value: closed
  42. - value: closing
  43. secondary_entities:
  44. - entity: select
  45. name: Mode
  46. icon: "mdi:theme-light-dark"
  47. category: config
  48. dps:
  49. - id: 4
  50. name: option
  51. type: string
  52. mapping:
  53. - dps_val: morning
  54. value: Morning
  55. - dps_val: night
  56. value: Night
  57. - entity: sensor
  58. name: Time Remaining
  59. icon: "mdi:timer"
  60. category: diagnostic
  61. dps:
  62. - id: 9
  63. name: sensor
  64. type: integer
  65. unit: s
  66. - entity: sensor
  67. name: Travel Time
  68. icon: "mdi:hourglass"
  69. category: diagnostic
  70. dps:
  71. - id: 10
  72. name: sensor
  73. type: integer
  74. unit: ms