ble_solar_light.yaml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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. 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