dongguan_electric_curtain.yaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. name: Curtain robot
  2. products:
  3. - id: kcy0x4pi
  4. name: Dongguan LY1678-2
  5. primary_entity:
  6. entity: cover
  7. class: curtain
  8. dps:
  9. - id: 1
  10. name: control
  11. type: string
  12. mapping:
  13. - dps_val: open
  14. value: open
  15. - dps_val: close
  16. value: close
  17. - dps_val: stop
  18. value: stop
  19. - id: 3
  20. name: current_position
  21. type: integer
  22. unit: "%"
  23. range:
  24. min: 0
  25. max: 100
  26. mapping:
  27. - invert: true
  28. optional: true
  29. persist: false
  30. - id: 7
  31. name: action
  32. type: string
  33. mapping:
  34. - dps_val: opening
  35. value: opening
  36. constraint: current_position
  37. conditions:
  38. - dps_val: 0
  39. value: opened
  40. - dps_val: closing
  41. value: closing
  42. constraint: current_position
  43. conditions:
  44. - dps_val: 100
  45. value: closed
  46. - dps_val: null
  47. value: closed
  48. - id: 12
  49. name: fault_code
  50. type: bitfield
  51. secondary_entities:
  52. - entity: select
  53. category: config
  54. name: Closed position
  55. icon: "mdi:arrow-u-down-left"
  56. dps:
  57. - id: 101
  58. type: string
  59. name: option
  60. mapping:
  61. - dps_val: "left"
  62. value: "left"
  63. - dps_val: "right"
  64. value: "right"
  65. - entity: sensor
  66. class: temperature
  67. dps:
  68. - id: 103
  69. name: sensor
  70. type: integer
  71. unit: C
  72. class: measurement
  73. - entity: sensor
  74. class: illuminance
  75. dps:
  76. - id: 104
  77. name: sensor
  78. type: integer
  79. unit: lx
  80. class: measurement
  81. - entity: sensor
  82. class: battery
  83. category: diagnostic
  84. dps:
  85. - id: 13
  86. type: integer
  87. name: sensor
  88. unit: "%"