loonas_curtain.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. optional: true
  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: 2
  20. name: position
  21. type: integer
  22. range:
  23. min: 0
  24. max: 100
  25. mapping:
  26. - invert: true
  27. - id: 3
  28. name: current_position
  29. type: integer
  30. range:
  31. min: 0
  32. max: 100
  33. mapping:
  34. - invert: true
  35. - id: 12
  36. name: fault_code
  37. type: bitfield
  38. optional: true
  39. secondary_entities:
  40. - entity: switch
  41. name: Reverse
  42. category: config
  43. icon: "mdi:arrow-u-down-left"
  44. dps:
  45. - id: 5
  46. type: string
  47. name: switch
  48. mapping:
  49. - dps_val: back
  50. value: true
  51. - dps_val: forward
  52. value: false
  53. - entity: binary_sensor
  54. name: Fault
  55. class: problem
  56. category: diagnostic
  57. dps:
  58. - id: 12
  59. type: boolean
  60. name: sensor
  61. optional: true
  62. persist: false
  63. mapping:
  64. - dps_val: 0
  65. value: false
  66. - dps_val: null
  67. value: false
  68. - value: true