loonas_curtain.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. 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