ble_solar_light.yaml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. name: Solar garden light
  2. products:
  3. - id: bt1raf68
  4. name: Smart Ape solar garden light
  5. primary_entity:
  6. entity: light
  7. dps:
  8. - id: 1
  9. name: switch
  10. type: boolean
  11. - id: 2
  12. name: color_mode
  13. type: string
  14. mapping:
  15. - dps_val: white
  16. value: color_temp
  17. - dps_val: colour
  18. value: hs
  19. - dps_val: scene
  20. value: Scene
  21. - dps_val: music
  22. value: Music
  23. - id: 3
  24. name: brightness
  25. type: integer
  26. range:
  27. min: 10
  28. max: 1000
  29. mapping:
  30. - constraint: standby
  31. conditions:
  32. - dps_val: true
  33. value_redirect: standby_brightness
  34. - id: 4
  35. name: color_temp
  36. type: integer
  37. range:
  38. min: 0
  39. max: 1000
  40. mapping:
  41. - target_range:
  42. min: 2700
  43. max: 6500
  44. - id: 5
  45. name: rgbhsv
  46. type: hex
  47. format:
  48. - name: h
  49. bytes: 2
  50. range:
  51. min: 0
  52. max: 360
  53. - name: s
  54. bytes: 2
  55. range:
  56. min: 0
  57. max: 1000
  58. - name: v
  59. bytes: 2
  60. range:
  61. min: 0
  62. max: 1000
  63. - id: 6
  64. name: scene_data
  65. type: hex
  66. - id: 8
  67. name: music_data
  68. type: hex
  69. optional: true
  70. - id: 59
  71. name: standby_brightness
  72. type: integer
  73. optional: true
  74. range:
  75. min: 0
  76. max: 1000
  77. hidden: true
  78. - id: 61
  79. name: standby
  80. type: boolean
  81. hidden: true
  82. optional: true
  83. secondary_entities:
  84. - entity: number
  85. translation_key: timer
  86. category: config
  87. dps:
  88. - id: 7
  89. type: integer
  90. name: value
  91. unit: min
  92. range:
  93. min: 0
  94. max: 86400
  95. mapping:
  96. - scale: 60
  97. step: 60
  98. - entity: select
  99. name: Device mode
  100. icon: "mdi:lightbulb-auto"
  101. category: config
  102. dps:
  103. - id: 51
  104. type: string
  105. name: option
  106. mapping:
  107. - dps_val: auto
  108. value: Auto
  109. - dps_val: manual
  110. value: Manual
  111. - entity: event
  112. class: motion
  113. category: diagnostic
  114. dps:
  115. - id: 52
  116. type: string
  117. name: event
  118. optional: true
  119. mapping:
  120. - dps_val: pir
  121. value: detected
  122. - dps_val: none
  123. value: clear
  124. - value: null
  125. - entity: binary_sensor
  126. class: motion
  127. deprecated: event_motion
  128. category: diagnostic
  129. dps:
  130. - id: 52
  131. type: string
  132. name: sensor
  133. optional: true
  134. mapping:
  135. - dps_val: pir
  136. value: true
  137. - value: false
  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. category: config
  178. dps:
  179. - id: 55
  180. type: integer
  181. name: value
  182. optional: true
  183. range:
  184. min: 5
  185. max: 3600
  186. unit: s
  187. - entity: switch
  188. name: Motion detection
  189. icon: "mdi:motion-sensor"
  190. category: config
  191. dps:
  192. - id: 56
  193. type: boolean
  194. name: switch
  195. - entity: number
  196. name: Standby time
  197. category: config
  198. icon: "mdi:camera-timer"
  199. dps:
  200. - id: 58
  201. type: integer
  202. name: value
  203. unit: min
  204. optional: true
  205. range:
  206. min: 1
  207. max: 480
  208. - entity: switch
  209. name: Group sync
  210. category: config
  211. dps:
  212. - id: 60
  213. type: boolean
  214. name: switch
  215. - entity: switch
  216. name: Standby
  217. icon: "mdi:power-standby"
  218. category: config
  219. dps:
  220. - id: 61
  221. type: boolean
  222. name: switch
  223. optional: true
  224. mapping:
  225. - dps_val: null
  226. value: false
  227. - entity: sensor
  228. class: battery
  229. category: diagnostic
  230. dps:
  231. - id: 62
  232. type: string
  233. name: sensor
  234. unit: "%"
  235. mapping:
  236. - dps_val: low
  237. value: 20
  238. - dps_val: middle
  239. value: 50
  240. - dps_val: high
  241. value: 80