sherko_curtain.yaml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. name: Curtain motor
  2. products:
  3. - id: h2wipnagcunsar5r
  4. name: SHerko curtain motor
  5. primary_entity:
  6. entity: cover
  7. class: curtain
  8. dps:
  9. - id: 1
  10. type: string
  11. name: control
  12. mapping:
  13. - dps_val: open
  14. value: open
  15. - dps_val: close
  16. value: close
  17. - dps_val: stop
  18. value: stop
  19. # - dps_val: continue
  20. # value: continue
  21. - id: 2
  22. type: integer
  23. name: position
  24. unit: "%"
  25. range:
  26. min: 0
  27. max: 100
  28. - id: 3
  29. type: integer
  30. name: current_position
  31. unit: "%"
  32. optional: true
  33. - id: 7
  34. type: string
  35. name: action
  36. mapping:
  37. - dps_val: opening
  38. constraint: current_position
  39. conditions:
  40. - dps_val: 100
  41. value: opened
  42. - dps_val: null
  43. value: opened
  44. - value: opening
  45. - dps_val: closing
  46. constraint: current_position
  47. conditions:
  48. - dps_val: 0
  49. value: closed
  50. - dps_val: null
  51. value: closed
  52. - value: closing
  53. secondary_entities:
  54. - entity: switch
  55. category: config
  56. name: Reverse Motor Direction
  57. icon: "mdi:arrow-u-down-left"
  58. dps:
  59. - id: 101
  60. type: boolean
  61. name: switch
  62. - entity: switch
  63. category: config
  64. name: Auto Power
  65. icon: "mdi:flash-auto"
  66. dps:
  67. - id: 6
  68. type: boolean
  69. name: switch