ble_solar_light.yaml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  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: select
  95. name: mode
  96. icon: "mdi:lightbulb-auto"
  97. category: config
  98. dps:
  99. - id: 51
  100. type: string
  101. name: option
  102. mapping:
  103. - dps_val: auto
  104. value: auto
  105. - dps_val: manual
  106. value: manual
  107. - entity: event
  108. class: motion
  109. category: diagnostic
  110. dps:
  111. - id: 52
  112. type: string
  113. name: event
  114. optional: true
  115. mapping:
  116. - dps_val: pir
  117. value: detected
  118. - dps_val: none
  119. value: clear
  120. - value: null
  121. - entity: select
  122. name: Daylight cutoff
  123. icon: "mdi:contrast-box"
  124. category: config
  125. dps:
  126. - id: 53
  127. type: string
  128. name: option
  129. optional: true
  130. mapping:
  131. - dps_val: "2000lux"
  132. value: "Shade"
  133. - dps_val: "300lux"
  134. value: "Light Cloud"
  135. - dps_val: "50lux"
  136. value: "Dark Cloud"
  137. - dps_val: "10lux"
  138. value: "Sunset"
  139. - dps_val: "5lux"
  140. value: "Twilight"
  141. - entity: select
  142. name: PIR sensitivity
  143. icon: "mdi:motion-sensor"
  144. category: config
  145. dps:
  146. - id: 54
  147. type: string
  148. name: option
  149. optional: true
  150. mapping:
  151. - dps_val: low
  152. value: Low
  153. - dps_val: middle
  154. value: Medium
  155. - dps_val: high
  156. value: High
  157. - entity: number
  158. name: PIR delay
  159. icon: "mdi:camera-timer"
  160. class: duration
  161. category: config
  162. dps:
  163. - id: 55
  164. type: integer
  165. name: value
  166. optional: true
  167. range:
  168. min: 5
  169. max: 3600
  170. unit: s
  171. - entity: switch
  172. name: Motion detection
  173. icon: "mdi:motion-sensor"
  174. category: config
  175. dps:
  176. - id: 56
  177. type: boolean
  178. name: switch
  179. - entity: number
  180. name: Standby time
  181. category: config
  182. class: duration
  183. icon: "mdi:camera-timer"
  184. dps:
  185. - id: 58
  186. type: integer
  187. name: value
  188. unit: min
  189. optional: true
  190. range:
  191. min: 1
  192. max: 480
  193. - entity: switch
  194. name: Group sync
  195. category: config
  196. dps:
  197. - id: 60
  198. type: boolean
  199. name: switch
  200. - entity: switch
  201. name: Standby
  202. icon: "mdi:power-standby"
  203. category: config
  204. dps:
  205. - id: 61
  206. type: boolean
  207. name: switch
  208. optional: true
  209. mapping:
  210. - dps_val: null
  211. value: false
  212. - entity: sensor
  213. class: battery
  214. category: diagnostic
  215. dps:
  216. - id: 62
  217. type: string
  218. name: sensor
  219. unit: "%"
  220. mapping:
  221. - dps_val: low
  222. value: 20
  223. - dps_val: middle
  224. value: 50
  225. - dps_val: high
  226. value: 80