zemismart_curtain.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. name: Fault
  52. class: problem
  53. category: diagnostic
  54. dps:
  55. - id: 12
  56. type: boolean
  57. name: sensor
  58. optional: true
  59. persist: false
  60. mapping:
  61. - dps_val: 0
  62. value: false
  63. - dps_val: null
  64. value: false
  65. - value: true