keyun_rgb_ceilingfan.yaml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. name: Ceiling fan
  2. products:
  3. - id: lonfamz9k72cpjgq
  4. manufacturer: Keyun
  5. model: MKCFE002
  6. entities:
  7. - entity: fan
  8. translation_only_key: fan_with_presets
  9. dps:
  10. - id: 60
  11. type: boolean
  12. name: switch
  13. - id: 61
  14. type: string
  15. name: preset_mode
  16. mapping:
  17. - dps_val: fresh
  18. value: fresh
  19. - dps_val: nature
  20. value: nature
  21. - id: 62
  22. type: integer
  23. name: speed
  24. range:
  25. min: 1
  26. max: 100
  27. - id: 63
  28. type: string
  29. name: direction
  30. - id: 106
  31. type: boolean
  32. name: oscillate
  33. - entity: switch
  34. name: Lights
  35. icon: "mdi:lightbulb-multiple"
  36. dps:
  37. - id: 20
  38. type: boolean
  39. name: switch
  40. - entity: light
  41. dps:
  42. - id: 20
  43. type: boolean
  44. name: available
  45. - id: 51
  46. type: base64
  47. optional: true
  48. mask: "000100000000000000000000"
  49. name: switch
  50. mapping:
  51. - dps_val: null
  52. value_mirror: available
  53. - id: 21
  54. name: work_mode
  55. type: string
  56. mapping:
  57. - dps_val: white
  58. value: color_temp
  59. - dps_val: colour
  60. value: hs
  61. - dps_val: scene
  62. value: Scene
  63. - dps_val: music
  64. value: Music
  65. - id: 22
  66. name: std_brightness
  67. type: integer
  68. range:
  69. min: 10
  70. max: 1000
  71. - id: 51
  72. type: base64
  73. optional: true
  74. mask: "0000000000000000FFFF0000"
  75. name: brightness
  76. mapping:
  77. - dps_val: null
  78. value_mirror: std_brightness
  79. range:
  80. min: 10
  81. max: 1000
  82. - id: 23
  83. name: std_color_temp
  84. type: integer
  85. range:
  86. min: 0
  87. max: 1000
  88. mapping:
  89. - target_range:
  90. min: 3000
  91. max: 6000
  92. - id: 51
  93. type: base64
  94. optional: true
  95. mask: "00000000000000000000FFFF"
  96. name: color_temp
  97. mapping:
  98. - dps_val: null
  99. value_mirror: std_color_temp
  100. - target_range:
  101. min: 3000
  102. max: 6000
  103. range:
  104. min: 0
  105. max: 1000
  106. - entity: light
  107. translation_key: backlight
  108. dps:
  109. - id: 20
  110. type: boolean
  111. name: available
  112. - id: 51
  113. type: base64
  114. optional: true
  115. mask: "000200000000000000000000"
  116. name: switch
  117. mapping:
  118. - dps_val: null
  119. value: false
  120. hidden: true
  121. - id: 24
  122. name: std_rgbhsv
  123. type: hex
  124. format:
  125. - name: h
  126. bytes: 2
  127. range:
  128. min: 0
  129. max: 360
  130. - name: s
  131. bytes: 2
  132. range:
  133. min: 0
  134. max: 1000
  135. - name: v
  136. bytes: 2
  137. range:
  138. min: 0
  139. max: 1000
  140. - id: 51
  141. type: base64
  142. optional: true
  143. force: true
  144. name: rgbhsv
  145. format:
  146. - name: sw
  147. bytes: 2
  148. - name: h
  149. bytes: 2
  150. range:
  151. min: 0
  152. max: 360
  153. - name: s
  154. bytes: 2
  155. range:
  156. min: 0
  157. max: 1000
  158. - name: v
  159. bytes: 2
  160. range:
  161. min: 0
  162. max: 1000
  163. - name: wb
  164. bytes: 2
  165. - name: wc
  166. bytes: 2
  167. - entity: text
  168. translation_key: scene
  169. category: config
  170. icon: "mdi:palette"
  171. hidden: true
  172. dps:
  173. - id: 35
  174. type: hex
  175. name: value
  176. - entity: text
  177. name: Light control
  178. category: config
  179. icon: "mdi:cogs"
  180. hidden: true
  181. dps:
  182. - id: 28
  183. type: string
  184. name: value
  185. optional: true
  186. - entity: text
  187. name: Power memory
  188. category: config
  189. icon: "mdi:power-settings"
  190. hidden: true
  191. dps:
  192. - id: 33
  193. type: string
  194. optional: true
  195. name: value
  196. - entity: text
  197. name: Switch gradient
  198. category: config
  199. icon: "mdi:gradient-horizontal"
  200. hidden: true
  201. dps:
  202. - id: 35
  203. type: string
  204. optional: true
  205. name: value
  206. - entity: text
  207. name: Mix RGBCW
  208. category: config
  209. icon: "mdi:lightbulb"
  210. hidden: true
  211. dps:
  212. - id: 51
  213. type: base64
  214. optional: true
  215. name: value
  216. - entity: text
  217. name: Music
  218. category: config
  219. icon: "mdi:music"
  220. hidden: true
  221. dps:
  222. - id: 121
  223. type: string
  224. optional: true
  225. name: value
  226. - entity: switch
  227. translation_key: do_not_disturb
  228. category: config
  229. dps:
  230. - id: 34
  231. type: boolean
  232. name: switch
  233. - entity: sensor
  234. name: Fan timer
  235. class: duration
  236. category: diagnostic
  237. dps:
  238. - id: 64
  239. type: integer
  240. name: sensor
  241. unit: min
  242. - entity: switch
  243. name: Beep
  244. icon: "mdi:volume-high"
  245. category: config
  246. dps:
  247. - id: 103
  248. type: boolean
  249. name: switch
  250. - entity: light
  251. name: White
  252. category: config
  253. dps:
  254. - id: 107
  255. type: boolean
  256. name: switch
  257. - entity: light
  258. name: Color
  259. category: config
  260. dps:
  261. - id: 108
  262. type: boolean
  263. name: switch
  264. - entity: time
  265. translation_key: timer
  266. category: config
  267. dps:
  268. - id: 112
  269. type: integer
  270. name: second
  271. optional: true
  272. range:
  273. min: 0
  274. max: 86400
  275. - entity: switch
  276. name: Main switch
  277. category: config
  278. dps:
  279. - id: 119
  280. type: boolean
  281. name: switch