pir_spotlight.yaml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. name: PIR Spotlight
  2. products:
  3. - id: reldobj3ny6fbgvw
  4. name: WiFi Duo LED Light WFD 3050 P
  5. - id: 2twfjfhdvygxxqtq
  6. name: Nedis SmartLife Outdoor Floodlight
  7. primary_entity:
  8. entity: light
  9. dps:
  10. - id: 20
  11. type: boolean
  12. name: switch
  13. - id: 21
  14. type: string
  15. name: work_mode
  16. - id: 22
  17. name: brightness
  18. type: integer
  19. range:
  20. min: 10
  21. max: 1000
  22. mapping:
  23. - scale: 3.92
  24. - id: 23
  25. name: color_temp
  26. type: integer
  27. optional: true
  28. range:
  29. min: 0
  30. max: 1000
  31. mapping:
  32. - target_range:
  33. min: 2700
  34. max: 6500
  35. secondary_entities:
  36. - entity: number
  37. name: Timer
  38. category: config
  39. icon: "mdi:timer"
  40. dps:
  41. - id: 26
  42. name: value
  43. type: integer
  44. optional: true
  45. range:
  46. min: 0
  47. max: 86400
  48. unit: min
  49. mapping:
  50. - scale: 60
  51. step: 60
  52. - dps_val: null
  53. - entity: switch
  54. name: Manual mode
  55. category: config
  56. dps:
  57. - id: 51
  58. type: string
  59. name: switch
  60. mapping:
  61. - dps_val: auto
  62. value: false
  63. - dps_val: manual
  64. value: true
  65. optional: true
  66. force: true
  67. - entity: switch
  68. name: PIR enabled
  69. category: config
  70. dps:
  71. - id: 56
  72. type: boolean
  73. name: switch
  74. optional: true
  75. force: true
  76. - entity: event
  77. class: motion
  78. dps:
  79. - id: 52
  80. type: string
  81. name: event
  82. mapping:
  83. - dps_val: pir
  84. value: detected
  85. - dps_val: none
  86. value: clear
  87. - entity: binary_sensor
  88. class: motion
  89. deprecated: event_motion
  90. dps:
  91. - id: 52
  92. type: string
  93. name: sensor
  94. mapping:
  95. - dps_val: "pir"
  96. value: true
  97. - value: false
  98. optional: true
  99. - entity: select
  100. name: Motion distance
  101. category: config
  102. dps:
  103. - id: 54
  104. type: string
  105. name: option
  106. mapping:
  107. - dps_val: "high"
  108. value: "Far"
  109. - dps_val: "low"
  110. value: "Near"
  111. - dps_val: "middle"
  112. value: "Medium"
  113. optional: true
  114. force: true
  115. - entity: number
  116. name: Full light duration
  117. category: config
  118. icon: "mdi:timer"
  119. dps:
  120. - id: 55
  121. name: value
  122. type: integer
  123. range:
  124. min: 5
  125. max: 3600
  126. unit: sec
  127. mapping:
  128. - scale: 1
  129. - dps_val: null
  130. optional: true
  131. force: true
  132. - entity: number
  133. name: Standby delay
  134. category: config
  135. dps:
  136. - id: 58
  137. name: value
  138. type: integer
  139. range:
  140. min: 1
  141. max: 480
  142. unit: min
  143. mapping:
  144. - scale: 1
  145. - dps_val: null
  146. optional: true
  147. force: true
  148. - entity: number
  149. name: Standby bright
  150. category: config
  151. dps:
  152. - id: 59
  153. name: value
  154. type: integer
  155. range:
  156. min: 0
  157. max: 1000
  158. unit: min
  159. mapping:
  160. - scale: 1
  161. - dps_val: null
  162. optional: true
  163. force: true
  164. - entity: select
  165. name: Ambient light sensor
  166. category: config
  167. dps:
  168. - id: 53
  169. type: string
  170. name: option
  171. mapping:
  172. - dps_val: 10lux
  173. value: 10lux
  174. - dps_val: 2000lux
  175. value: 2000lux
  176. - dps_val: 300lux
  177. value: 300lux
  178. - dps_val: 50lux
  179. value: 50lux
  180. - dps_val: 10lux
  181. value: 10lux
  182. - dps_val: 5lux
  183. value: 5lux
  184. - dps_val: now
  185. value: Now
  186. optional: true
  187. force: true