avatto_curtain_duallights.yaml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. name: Curtain and lights
  2. products:
  3. - id: n76sxga6lyfujuac
  4. name: Avatto SYS-CL02
  5. primary_entity:
  6. entity: cover
  7. class: curtain
  8. dps:
  9. - id: 1
  10. name: control
  11. type: string
  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. unit: "%"
  23. range:
  24. min: 0
  25. max: 100
  26. mapping:
  27. - step: 10
  28. secondary_entities:
  29. - entity: light
  30. name: Light 1
  31. dps:
  32. - id: 101
  33. type: boolean
  34. name: switch
  35. - entity: light
  36. name: Light 2
  37. dps:
  38. - id: 102
  39. type: boolean
  40. name: switch
  41. - entity: select
  42. name: Calibration
  43. icon: "mdi:curtains"
  44. category: config
  45. dps:
  46. - id: 3
  47. type: string
  48. name: option
  49. optional: true
  50. mapping:
  51. - dps_val: start
  52. value: Start
  53. - dps_val: end
  54. value: End
  55. - entity: light
  56. translation_key: backlight
  57. category: config
  58. dps:
  59. - id: 7
  60. type: boolean
  61. name: switch
  62. - entity: select
  63. name: Direction
  64. icon: "mdi:arrow-u-down-left"
  65. category: config
  66. dps:
  67. - id: 8
  68. type: string
  69. name: option
  70. mapping:
  71. - dps_val: forward
  72. value: Forward
  73. - dps_val: back
  74. value: Back
  75. - entity: number
  76. name: Travel time
  77. category: config
  78. icon: "mdi:timer"
  79. dps:
  80. - id: 10
  81. type: integer
  82. name: value
  83. unit: s
  84. range:
  85. min: 10
  86. max: 120
  87. - entity: select
  88. name: Motor connection
  89. icon: "mdi:cogs"
  90. category: config
  91. dps:
  92. - id: 12
  93. type: string
  94. optional: true
  95. name: option
  96. mapping:
  97. - dps_val: strong_power
  98. value: Direct
  99. - dps_val: dry_contact
  100. value: Via relay
  101. - entity: number
  102. name: Light 1 timer
  103. category: config
  104. translation_key: timer
  105. dps:
  106. - id: 103
  107. type: integer
  108. optional: true
  109. name: value
  110. unit: min
  111. range:
  112. min: 0
  113. max: 86400
  114. mapping:
  115. - scale: 60
  116. step: 60
  117. - entity: number
  118. name: Light 2 timer
  119. category: config
  120. translation_key: timer
  121. dps:
  122. - id: 104
  123. type: integer
  124. optional: true
  125. name: value
  126. unit: min
  127. range:
  128. min: 0
  129. max: 86400
  130. mapping:
  131. - scale: 60
  132. step: 60