ble_solar_light.yaml 4.7 KB

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