keyun_rgb_ceilingfan.yaml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. name: Ceiling fan
  2. products:
  3. - id: lonfamz9k72cpjgq
  4. name: Keyun MKCFE002
  5. primary_entity:
  6. entity: fan
  7. translation_only_key: fan_with_presets
  8. dps:
  9. - id: 60
  10. type: boolean
  11. name: switch
  12. - id: 61
  13. type: string
  14. name: preset_mode
  15. mapping:
  16. - dps_val: fresh
  17. value: fresh
  18. - dps_val: nature
  19. value: nature
  20. - id: 62
  21. type: integer
  22. name: speed
  23. range:
  24. min: 1
  25. max: 100
  26. - id: 63
  27. type: string
  28. name: direction
  29. - id: 106
  30. type: boolean
  31. name: oscillate
  32. secondary_entities:
  33. - entity: light
  34. dps:
  35. - id: 20
  36. type: boolean
  37. name: switch
  38. - id: 21
  39. name: color_mode
  40. type: string
  41. mapping:
  42. - dps_val: white
  43. value: color_temp
  44. - dps_val: colour
  45. value: hs
  46. - dps_val: scene
  47. value: Scene
  48. - dps_val: music
  49. value: Music
  50. - id: 22
  51. name: brightness
  52. type: integer
  53. range:
  54. min: 10
  55. max: 1000
  56. - id: 23
  57. name: color_temp
  58. type: integer
  59. range:
  60. min: 0
  61. max: 1000
  62. mapping:
  63. - target_range:
  64. min: 3000
  65. max: 6000
  66. - id: 24
  67. name: rgbhsv
  68. type: hex
  69. format:
  70. - name: h
  71. bytes: 2
  72. range:
  73. min: 0
  74. max: 360
  75. - name: s
  76. bytes: 2
  77. range:
  78. min: 0
  79. max: 1000
  80. - name: v
  81. bytes: 2
  82. range:
  83. min: 0
  84. max: 1000
  85. - id: 25
  86. type: hex
  87. name: scene_data
  88. - id: 28
  89. type: string
  90. optional: true
  91. name: control_data
  92. - id: 33
  93. type: string
  94. optional: true
  95. name: power_memory
  96. - id: 35
  97. type: string
  98. optional: true
  99. name: switch_gradient
  100. - id: 51
  101. type: string
  102. optional: true
  103. name: mix_rgbcw
  104. - id: 121
  105. type: string
  106. optional: true
  107. name: music_data
  108. - entity: switch
  109. name: Do not disturb
  110. category: config
  111. dps:
  112. - id: 34
  113. type: boolean
  114. name: switch
  115. - entity: sensor
  116. name: Fan timer
  117. class: duration
  118. category: diagnostic
  119. dps:
  120. - id: 64
  121. type: integer
  122. name: sensor
  123. unit: min
  124. - entity: switch
  125. name: Beep
  126. icon: "mdi:volume-high"
  127. category: config
  128. dps:
  129. - id: 103
  130. type: boolean
  131. name: switch
  132. - entity: light
  133. name: White
  134. category: config
  135. dps:
  136. - id: 107
  137. type: boolean
  138. name: switch
  139. - entity: light
  140. name: Color
  141. category: config
  142. dps:
  143. - id: 108
  144. type: boolean
  145. name: switch
  146. - entity: number
  147. translation_key: timer
  148. category: config
  149. dps:
  150. - id: 112
  151. type: integer
  152. name: value
  153. optional: true
  154. unit: min
  155. range:
  156. min: 0
  157. max: 86400
  158. mapping:
  159. - scale: 60
  160. step: 60
  161. - entity: switch
  162. name: Main switch
  163. category: config
  164. dps:
  165. - id: 119
  166. type: boolean
  167. name: switch