ble_solar_light.yaml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. name: Motion light
  2. products:
  3. - id: bt1raf68
  4. manufacturer: Smart Ape
  5. name: Solar garden light
  6. entities:
  7. - entity: light
  8. dps:
  9. - id: 1
  10. name: switch
  11. type: boolean
  12. - id: 2
  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: 3
  25. name: brightness
  26. type: integer
  27. range:
  28. min: 10
  29. max: 1000
  30. mapping:
  31. - constraint: standby
  32. conditions:
  33. - dps_val: true
  34. value_redirect: standby_brightness
  35. - id: 4
  36. name: color_temp
  37. type: integer
  38. range:
  39. min: 0
  40. max: 1000
  41. mapping:
  42. - target_range:
  43. min: 2700
  44. max: 6500
  45. - id: 5
  46. name: rgbhsv
  47. type: hex
  48. format:
  49. - name: h
  50. bytes: 2
  51. range:
  52. min: 0
  53. max: 360
  54. - name: s
  55. bytes: 2
  56. range:
  57. min: 0
  58. max: 1000
  59. - name: v
  60. bytes: 2
  61. range:
  62. min: 0
  63. max: 1000
  64. - id: 6
  65. name: scene_data
  66. type: hex
  67. - id: 8
  68. name: music_data
  69. type: hex
  70. optional: true
  71. - id: 59
  72. name: standby_brightness
  73. type: integer
  74. optional: true
  75. range:
  76. min: 0
  77. max: 1000
  78. hidden: true
  79. - id: 61
  80. name: standby
  81. type: boolean
  82. hidden: true
  83. optional: true
  84. - entity: time
  85. translation_key: timer
  86. category: config
  87. dps:
  88. - id: 7
  89. type: integer
  90. name: second
  91. range:
  92. min: 0
  93. max: 86400
  94. - entity: number
  95. translation_key: timer
  96. class: duration
  97. # 2025-07-20
  98. deprecated: time.timer
  99. category: config
  100. dps:
  101. - id: 7
  102. type: integer
  103. name: value
  104. unit: min
  105. range:
  106. min: 0
  107. max: 86400
  108. mapping:
  109. - scale: 60
  110. step: 60
  111. - entity: select
  112. name: mode
  113. icon: "mdi:lightbulb-auto"
  114. category: config
  115. dps:
  116. - id: 51
  117. type: string
  118. name: option
  119. mapping:
  120. - dps_val: auto
  121. value: auto
  122. - dps_val: manual
  123. value: manual
  124. - entity: event
  125. class: motion
  126. category: diagnostic
  127. dps:
  128. - id: 52
  129. type: string
  130. name: event
  131. optional: true
  132. mapping:
  133. - dps_val: pir
  134. value: detected
  135. - dps_val: none
  136. value: clear
  137. - value: null
  138. - entity: select
  139. name: Daylight cutoff
  140. icon: "mdi:contrast-box"
  141. category: config
  142. dps:
  143. - id: 53
  144. type: string
  145. name: option
  146. optional: true
  147. mapping:
  148. - dps_val: "2000lux"
  149. value: "Shade"
  150. - dps_val: "300lux"
  151. value: "Light Cloud"
  152. - dps_val: "50lux"
  153. value: "Dark Cloud"
  154. - dps_val: "10lux"
  155. value: "Sunset"
  156. - dps_val: "5lux"
  157. value: "Twilight"
  158. - entity: select
  159. name: PIR sensitivity
  160. icon: "mdi:motion-sensor"
  161. category: config
  162. dps:
  163. - id: 54
  164. type: string
  165. name: option
  166. optional: true
  167. mapping:
  168. - dps_val: low
  169. value: Low
  170. - dps_val: middle
  171. value: Medium
  172. - dps_val: high
  173. value: High
  174. - entity: number
  175. name: PIR delay
  176. icon: "mdi:camera-timer"
  177. class: duration
  178. category: config
  179. dps:
  180. - id: 55
  181. type: integer
  182. name: value
  183. optional: true
  184. range:
  185. min: 5
  186. max: 3600
  187. unit: s
  188. - entity: switch
  189. name: Motion detection
  190. icon: "mdi:motion-sensor"
  191. category: config
  192. dps:
  193. - id: 56
  194. type: boolean
  195. name: switch
  196. - entity: number
  197. name: Standby time
  198. category: config
  199. class: duration
  200. icon: "mdi:camera-timer"
  201. dps:
  202. - id: 58
  203. type: integer
  204. name: value
  205. unit: min
  206. optional: true
  207. range:
  208. min: 1
  209. max: 480
  210. - entity: switch
  211. name: Group sync
  212. category: config
  213. dps:
  214. - id: 60
  215. type: boolean
  216. name: switch
  217. - entity: switch
  218. name: Standby
  219. icon: "mdi:power-standby"
  220. category: config
  221. dps:
  222. - id: 61
  223. type: boolean
  224. name: switch
  225. optional: true
  226. mapping:
  227. - dps_val: null
  228. value: false
  229. - entity: sensor
  230. class: battery
  231. category: diagnostic
  232. dps:
  233. - id: 62
  234. type: string
  235. name: sensor
  236. unit: "%"
  237. mapping:
  238. - dps_val: low
  239. value: 20
  240. - dps_val: middle
  241. value: 50
  242. - dps_val: high
  243. value: 80