loonas_curtain.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. name: Loonas smart curtain
  2. products:
  3. - id: wraaecjqfiirj8go
  4. primary_entity:
  5. entity: cover
  6. class: curtain
  7. dps:
  8. - id: 1
  9. name: control
  10. type: string
  11. mapping:
  12. - dps_val: open
  13. value: open
  14. - dps_val: close
  15. value: close
  16. - dps_val: stop
  17. value: stop
  18. - id: 2
  19. name: position
  20. type: integer
  21. range:
  22. min: 0
  23. max: 100
  24. mapping:
  25. - invert: true
  26. - id: 3
  27. name: current_position
  28. type: integer
  29. range:
  30. min: 0
  31. max: 100
  32. mapping:
  33. - invert: true
  34. - id: 12
  35. name: fault_code
  36. type: bitfield
  37. optional: true
  38. secondary_entities:
  39. - entity: switch
  40. name: Reverse
  41. category: config
  42. icon: "mdi:arrow-u-down-left"
  43. dps:
  44. - id: 5
  45. type: string
  46. name: switch
  47. mapping:
  48. - dps_val: back
  49. value: true
  50. - dps_val: forward
  51. value: false
  52. - entity: binary_sensor
  53. name: Fault
  54. class: problem
  55. category: diagnostic
  56. dps:
  57. - id: 12
  58. type: boolean
  59. name: sensor
  60. optional: true
  61. persist: false
  62. mapping:
  63. - dps_val: 0
  64. value: false
  65. - dps_val: null
  66. value: false
  67. - value: true