zemismart_curtain.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. name: Zemismart 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. range:
  20. min: 0
  21. max: 100
  22. mapping:
  23. - invert: true
  24. - id: 3
  25. name: current_position
  26. type: integer
  27. range:
  28. min: 0
  29. max: 100
  30. mapping:
  31. - invert: true
  32. - id: 7
  33. name: work_state
  34. type: string
  35. optional: true
  36. # seems intended to match action, but doesn't change in observation
  37. - id: 12
  38. name: fault_code
  39. type: bitfield
  40. optional: true
  41. secondary_entities:
  42. - entity: switch
  43. name: Reverse
  44. category: config
  45. icon: "mdi:arrow-u-down-left"
  46. dps:
  47. - id: 5
  48. type: boolean
  49. name: switch
  50. - entity: binary_sensor
  51. class: problem
  52. category: diagnostic
  53. dps:
  54. - id: 12
  55. type: boolean
  56. name: sensor
  57. optional: true
  58. persist: false
  59. mapping:
  60. - dps_val: 0
  61. value: false
  62. - dps_val: null
  63. value: false
  64. - value: true