ligency_fl15b1p_fanlight.yaml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. name: Ceiling fan
  2. # products:
  3. # - id: UNKNOWN
  4. # manufacturer: Ligency
  5. # model: LI-FL15B1PUS2502
  6. entities:
  7. - entity: light
  8. dps:
  9. - id: 20
  10. type: boolean
  11. name: switch
  12. - id: 21
  13. name: color_mode
  14. type: string
  15. mapping:
  16. - dps_val: white
  17. value: color_temp
  18. - dps_val: colour
  19. value: hs
  20. - dps_val: scene
  21. value: Scene
  22. - dps_val: music
  23. value: Music
  24. - id: 22
  25. name: brightness
  26. type: integer
  27. range:
  28. min: 10
  29. max: 1000
  30. - id: 23
  31. name: color_temp
  32. type: integer
  33. range:
  34. min: 0
  35. max: 1000
  36. mapping:
  37. - target_range:
  38. min: 2700
  39. max: 6500
  40. - id: 24
  41. name: rgbhsv
  42. type: hex
  43. format:
  44. - name: h
  45. bytes: 2
  46. range:
  47. min: 0
  48. max: 360
  49. - name: s
  50. bytes: 2
  51. range:
  52. min: 0
  53. max: 1000
  54. - name: v
  55. bytes: 2
  56. range:
  57. min: 0
  58. max: 1000
  59. - entity: text
  60. name: Scene
  61. category: config
  62. icon: "mdi:palette"
  63. hidden: true
  64. dps:
  65. - id: 25
  66. type: hex
  67. optional: true
  68. name: value
  69. - entity: time
  70. translation_key: timer
  71. name: Light timer
  72. category: config
  73. dps:
  74. - id: 26
  75. type: integer
  76. name: second
  77. range:
  78. min: 0
  79. max: 86400
  80. - entity: text
  81. name: Music
  82. category: config
  83. icon: "mdi:music"
  84. hidden: true
  85. dps:
  86. - id: 27
  87. type: string
  88. optional: true
  89. name: value
  90. - entity: text
  91. name: Light control
  92. category: config
  93. icon: "mdi:tune"
  94. hidden: true
  95. dps:
  96. - id: 28
  97. type: string
  98. optional: true
  99. name: value
  100. - entity: text
  101. name: Debug
  102. category: config
  103. icon: "mdi:spider-thread"
  104. hidden: true
  105. dps:
  106. - id: 29
  107. type: string
  108. optional: true
  109. name: value
  110. - entity: text
  111. name: Sleep settings
  112. category: config
  113. icon: "mdi:lightbulb-night"
  114. hidden: true
  115. dps:
  116. - id: 31
  117. type: base64
  118. optional: true
  119. name: value
  120. - entity: text
  121. name: Wake settings
  122. category: config
  123. icon: "mdi:weather-sunset-up"
  124. hidden: true
  125. dps:
  126. - id: 32
  127. type: base64
  128. optional: true
  129. name: value
  130. - entity: text
  131. name: Initial settings
  132. category: config
  133. icon: "mdi:lightbulb-question"
  134. hidden: true
  135. dps:
  136. - id: 33
  137. type: base64
  138. optional: true
  139. name: value
  140. - entity: switch
  141. translation_key: do_not_disturb
  142. category: config
  143. dps:
  144. - id: 34
  145. type: boolean
  146. name: switch
  147. - entity: text
  148. name: Light switch gradient
  149. category: config
  150. icon: "mdi:gradient-horizontal"
  151. hidden: true
  152. dps:
  153. - id: 35
  154. type: base64
  155. optional: true
  156. name: value
  157. - entity: text
  158. name: Mix light scene
  159. category: config
  160. icon: "mdi:palette"
  161. hidden: true
  162. dps:
  163. - id: 36
  164. type: base64
  165. optional: true
  166. name: value
  167. - entity: text
  168. name: Mix RGBCW
  169. category: config
  170. icon: "mdi:lightbulb-on-outline"
  171. hidden: true
  172. dps:
  173. - id: 51
  174. type: base64
  175. optional: true
  176. name: value
  177. - entity: text
  178. name: Segment dimming
  179. category: config
  180. icon: "mdi:led-strip"
  181. hidden: true
  182. dps:
  183. - id: 52
  184. type: base64
  185. optional: true
  186. name: value
  187. - entity: light
  188. translation_key: nightlight
  189. category: config
  190. dps:
  191. - id: 53
  192. type: boolean
  193. optional: true
  194. name: switch
  195. - entity: switch
  196. name: Fan beep
  197. category: config
  198. dps:
  199. - id: 101
  200. type: boolean
  201. name: switch
  202. - entity: binary_sensor
  203. class: problem
  204. category: diagnostic
  205. dps:
  206. - id: 102
  207. type: bitfield
  208. optional: true
  209. name: sensor
  210. mapping:
  211. - dps_val: 0
  212. value: false
  213. - value: true
  214. - id: 102
  215. type: bitfield
  216. optional: true
  217. name: fault_code
  218. - entity: number
  219. name: Fan timer
  220. translation_key: timer
  221. class: duration
  222. category: config
  223. dps:
  224. - id: 103
  225. type: integer
  226. name: value
  227. unit: min
  228. range:
  229. min: 0
  230. max: 540
  231. - entity: fan
  232. translation_key: fan_with_presets
  233. dps:
  234. - id: 107
  235. type: boolean
  236. name: switch
  237. - id: 106
  238. type: string
  239. name: preset_mode
  240. mapping:
  241. - dps_val: normal
  242. value: normal
  243. - dps_val: nature
  244. value: nature
  245. - dps_val: sleep
  246. value: sleep
  247. - id: 105
  248. type: integer
  249. name: speed
  250. range:
  251. min: 1
  252. max: 6
  253. - id: 104
  254. type: string
  255. name: direction
  256. - entity: text
  257. name: Schedule
  258. category: config
  259. icon: "mdi:calendar-clock"
  260. hidden: true
  261. dps:
  262. - id: 209
  263. type: base64
  264. optional: true
  265. name: value
  266. - entity: text
  267. name: Randomized schedule
  268. category: config
  269. icon: "mdi:island"
  270. hidden: true
  271. dps:
  272. - id: 210
  273. type: base64
  274. optional: true
  275. name: value