smartmi_air_circulator_fan.yaml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. # Smartmi Air Circulator Fan
  2. # Category: fs
  3. # Product ID (PID): ld6lwruyddlfx7a2
  4. # Tested with Tuya Local
  5. name: Circulating fan
  6. products:
  7. - id: ld6lwruyddlfx7a2
  8. manufacturer: Smartmi
  9. model: ZLBPKQXHS02ZM
  10. entities:
  11. # -------------------------------------------------------
  12. # Fan
  13. # -------------------------------------------------------
  14. - entity: fan
  15. translation_key: fan_with_presets
  16. dps:
  17. - id: 1
  18. name: switch
  19. type: boolean
  20. - id: 2
  21. name: preset_mode
  22. type: string
  23. mapping:
  24. - dps_val: normal
  25. value: normal
  26. - dps_val: nature
  27. value: nature
  28. - dps_val: smart
  29. value: smart
  30. - id: 3
  31. name: speed
  32. type: integer
  33. range:
  34. min: 1
  35. max: 4
  36. # -------------------------------------------------------
  37. # Timer
  38. # -------------------------------------------------------
  39. - entity: select
  40. translation_key: timer
  41. category: config
  42. dps:
  43. - id: 22
  44. name: option
  45. type: string
  46. mapping:
  47. - dps_val: cancel
  48. value: cancel
  49. - dps_val: "1h"
  50. value: 1h
  51. - dps_val: "2h"
  52. value: 2h
  53. - dps_val: "3h"
  54. value: 3h
  55. - dps_val: "4h"
  56. value: 4h
  57. - dps_val: "5h"
  58. value: 5h
  59. - dps_val: "6h"
  60. value: 6h
  61. - dps_val: "7h"
  62. value: 7h
  63. - dps_val: "8h"
  64. value: 8h
  65. # -------------------------------------------------------
  66. # Oscillation
  67. # -------------------------------------------------------
  68. - entity: switch
  69. name: Vertical oscillation
  70. dps:
  71. - id: 4
  72. name: switch
  73. type: boolean
  74. - entity: switch
  75. name: Horizontal oscillation
  76. dps:
  77. - id: 5
  78. name: switch
  79. type: boolean
  80. # -------------------------------------------------------
  81. # Angle
  82. # -------------------------------------------------------
  83. - entity: select
  84. name: Vertical angle
  85. dps:
  86. - id: 6
  87. name: option
  88. type: string
  89. mapping:
  90. - dps_val: "30"
  91. value: 30°
  92. - dps_val: "60"
  93. value: 60°
  94. - dps_val: "90"
  95. value: 90°
  96. - entity: select
  97. name: Horizontal angle
  98. dps:
  99. - id: 7
  100. name: option
  101. type: string
  102. mapping:
  103. - dps_val: "30"
  104. value: 30°
  105. - dps_val: "60"
  106. value: 60°
  107. - dps_val: "90"
  108. value: 90°
  109. - dps_val: "120"
  110. value: 120°
  111. # -------------------------------------------------------
  112. # Misc
  113. # -------------------------------------------------------
  114. - entity: switch
  115. translation_key: sound
  116. category: config
  117. dps:
  118. - id: 13
  119. name: switch
  120. type: boolean
  121. - entity: lock
  122. translation_key: child_lock
  123. category: config
  124. dps:
  125. - id: 14
  126. name: lock
  127. type: boolean
  128. - entity: light
  129. translation_key: indicator
  130. category: config
  131. dps:
  132. - id: 15
  133. name: switch
  134. type: boolean